diff --git a/lib/bcoin/ldb.js b/lib/bcoin/ldb.js index 61eb310e..d4b86c0a 100644 --- a/lib/bcoin/ldb.js +++ b/lib/bcoin/ldb.js @@ -36,8 +36,8 @@ function ldb(options) { return new LowlevelUp(options.location, { // LevelDB and others - createIfMissing: true, - errorIfExists: false, + createIfMissing: options.createIfMissing !== false, + errorIfExists: options.errorIfExists === true, compression: options.compression !== false, cacheSize: options.cacheSize || (8 << 20), writeBufferSize: options.writeBufferSize || (4 << 20),