From 339dd50bf11867c1b9f27f9d6b92d9cfd02ea039 Mon Sep 17 00:00:00 2001 From: Nodar Chkuaselidze Date: Thu, 29 Mar 2018 10:54:53 -0700 Subject: [PATCH] wallet: remove watchOnly check from wallet.fund --- lib/wallet/wallet.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index aa2ef288..1d0cea24 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -1101,9 +1101,6 @@ class Wallet extends EventEmitter { if (!options) options = {}; - if (this.watchOnly) - throw new Error('Cannot fund from watch-only wallet.'); - const acct = options.account || 0; const change = await this.changeAddress(acct);