Skip to content

Commit

Permalink
Merge PR #885 from 'nodech/wallet-lockup'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Feb 28, 2024
2 parents 5f94317 + 4fa9c79 commit f749f5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/wallet/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class WalletNode extends Node {
wipeNoReally: this.config.bool('wipe-no-really'),
spv: this.config.bool('spv'),
walletMigrate: this.config.uint('migrate'),
icannlockup: this.config.bool('icannlockup', false),
icannlockup: this.config.bool('icannlockup', true),
migrateNoRescan: this.config.bool('migrate-no-rescan', false),
preloadAll: this.config.bool('preload-all', false)
});
Expand Down
2 changes: 1 addition & 1 deletion lib/wallet/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Plugin extends EventEmitter {
wipeNoReally: this.config.bool('wipe-no-really'),
spv: node.spv,
walletMigrate: this.config.uint('migrate'),
icannlockup: this.config.bool('icannlockup', false),
icannlockup: this.config.bool('icannlockup', true),
migrateNoRescan: this.config.bool('migrate-no-rescan', false),
preloadAll: this.config.bool('preload-all', false)
});
Expand Down
2 changes: 1 addition & 1 deletion lib/wallet/walletdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2578,7 +2578,7 @@ class WalletOptions {
this.spv = false;
this.wipeNoReally = false;
this.walletMigrate = -1;
this.icannlockup = false;
this.icannlockup = true;
this.migrateNoRescan = false;
this.preloadAll = false;

Expand Down
4 changes: 4 additions & 0 deletions test/chain-icann-lockup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ describe('BIP9 - ICANN lockup (integration)', function() {
node = new FullNode({
memory: true,
network: network.type,
// We don't want wallet to check lockup names for this test.
walletIcannlockup: false,
plugins: [require('../lib/wallet/plugin')]
});

Expand Down Expand Up @@ -617,6 +619,8 @@ describe('BIP9 - ICANN lockup (integration)', function() {
node = new FullNode({
memory: true,
network: network.type,
// We don't want wallet to check lockup names for this test.
walletIcannlockup: false,
plugins: [require('../lib/wallet/plugin')]
});

Expand Down

0 comments on commit f749f5c

Please sign in to comment.