diff --git a/lib/mempool/mempool.js b/lib/mempool/mempool.js index d2469b0b..1a975a07 100644 --- a/lib/mempool/mempool.js +++ b/lib/mempool/mempool.js @@ -10,7 +10,6 @@ const assert = require('assert'); const path = require('path'); const EventEmitter = require('events'); const bdb = require('bdb'); -const {encoding} = require('bufio'); const {RollingFilter} = require('bfilter'); const common = require('../blockchain/common'); const consensus = require('../protocol/consensus'); diff --git a/lib/wallet/account.js b/lib/wallet/account.js index feb9be56..d50f7fa2 100644 --- a/lib/wallet/account.js +++ b/lib/wallet/account.js @@ -14,7 +14,6 @@ const common = require('./common'); const Script = require('../script/script'); const WalletKey = require('./walletkey'); const {HDPublicKey} = require('../hd/hd'); -const {encoding} = bio; /** * Account diff --git a/migrate/walletdb6to7.js b/migrate/walletdb6to7.js index 16bafb64..ff7a954f 100644 --- a/migrate/walletdb6to7.js +++ b/migrate/walletdb6to7.js @@ -492,7 +492,7 @@ async function updateAccount(wid, acct) { const type = br.readU8(); const m = br.readU8(); const n = br.readU8(); - const accountIndex = br.readU32(); + br.readU32(); // accountIndex const receiveDepth = br.readU32(); const changeDepth = br.readU32(); const nestedDepth = br.readU32(); diff --git a/test/wallet-test.js b/test/wallet-test.js index c0e3fe6d..818530b2 100644 --- a/test/wallet-test.js +++ b/test/wallet-test.js @@ -1499,7 +1499,7 @@ describe('Wallet', function() { }); it('should remove a wallet', async () => { - const wallet = await wdb.create({ + await wdb.create({ id: 'alice100' }); assert(await wdb.get('alice100'));