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._onFlush(function() {
|
||||
try {
|
||||
if (!bcoin.fs)
|
||||
self.ramdisk.truncate(size);
|
||||
else
|
||||
fs.ftruncateSync(self.fd, size);
|
||||
if (!bcoin.fs)
|
||||
self.ramdisk.truncate(size);
|
||||
else
|
||||
fs.ftruncateSync(self.fd, size);
|
||||
} catch (e) {
|
||||
self.size = osize;
|
||||
self.highest = ohighest;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user