whitespace
This commit is contained in:
parent
5a79637039
commit
56f68983d3
@ -464,10 +464,10 @@ ChainDB.prototype.resetHeightSync = function resetHeightSync(height) {
|
|||||||
// This will be synchronous 99% of the time.
|
// This will be synchronous 99% of the time.
|
||||||
this._onFlush(function() {
|
this._onFlush(function() {
|
||||||
try {
|
try {
|
||||||
if (!bcoin.fs)
|
if (!bcoin.fs)
|
||||||
self.ramdisk.truncate(size);
|
self.ramdisk.truncate(size);
|
||||||
else
|
else
|
||||||
fs.ftruncateSync(self.fd, size);
|
fs.ftruncateSync(self.fd, size);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
self.size = osize;
|
self.size = osize;
|
||||||
self.highest = ohighest;
|
self.highest = ohighest;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user