Skip to content

Commit

Permalink
wallet-http: create account: remove unused 'watch-only'
Browse files Browse the repository at this point in the history
When a new account is created, it inherits its `watch-only`ness from the wallet that contains it. By removing this check, user will get "unrecognized option" error if they try to create an account with `watch-only`. Otherwise the parameter is just ignored and could cause user confusion.
  • Loading branch information
pinheadmz authored Nov 21, 2018
1 parent f97e3f3 commit 5b40199
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/wallet/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ class HTTP extends Server {
const options = {
name: valid.str('account'),
witness: valid.bool('witness'),
watchOnly: valid.bool('watchOnly'),
type: valid.str('type'),
m: valid.u32('m'),
n: valid.u32('n'),
Expand Down

0 comments on commit 5b40199

Please sign in to comment.