wallet: remove watchOnly check from wallet.fund

This commit is contained in:
Nodar Chkuaselidze 2018-03-29 10:54:53 -07:00 committed by Christopher Jeffrey
parent 8c609c6e9e
commit 339dd50bf1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);