From 4fa9c79ebf2add6bc4acc2154b966be76057d4e1 Mon Sep 17 00:00:00 2001 From: Nodari Chkuaselidze Date: Tue, 16 Jan 2024 15:41:21 +0400 Subject: [PATCH] wallet: set icannlockup to true for wallets. --- lib/wallet/node.js | 2 +- lib/wallet/plugin.js | 2 +- lib/wallet/walletdb.js | 2 +- test/chain-icann-lockup-test.js | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/wallet/node.js b/lib/wallet/node.js index 818e4c00a..53707c661 100644 --- a/lib/wallet/node.js +++ b/lib/wallet/node.js @@ -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) }); diff --git a/lib/wallet/plugin.js b/lib/wallet/plugin.js index 632026dbc..2864166b5 100644 --- a/lib/wallet/plugin.js +++ b/lib/wallet/plugin.js @@ -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) }); diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index bf349cdd0..790087b41 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -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; diff --git a/test/chain-icann-lockup-test.js b/test/chain-icann-lockup-test.js index c168afcb1..52bfc1c30 100644 --- a/test/chain-icann-lockup-test.js +++ b/test/chain-icann-lockup-test.js @@ -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')] }); @@ -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')] });