bitcoind: don't set load_on_startup when loading watchonly wallet
This was necessary to transition wallets that were created without this flag, but since v2 they are always created with it so this is redundant: it'd unnecessarily try to update the flag over and over again on bitcoind's side, always with the same value.
This commit is contained in:
parent
19491d1d00
commit
e072e896c7
@ -652,10 +652,7 @@ impl BitcoinD {
|
||||
}
|
||||
let res = self.make_fallible_node_request(
|
||||
"loadwallet",
|
||||
¶ms!(
|
||||
Json::String(self.watchonly_wallet_path.clone()),
|
||||
Json::Bool(true), // load_on_startup
|
||||
),
|
||||
¶ms!(Json::String(self.watchonly_wallet_path.clone()),),
|
||||
);
|
||||
match res {
|
||||
Err(BitcoindError::Server(jsonrpc::Error::Rpc(ref e))) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user