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:
Antoine Poinsot 2023-10-08 12:31:41 +02:00
parent 19491d1d00
commit e072e896c7
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -652,10 +652,7 @@ impl BitcoinD {
}
let res = self.make_fallible_node_request(
"loadwallet",
&params!(
Json::String(self.watchonly_wallet_path.clone()),
Json::Bool(true), // load_on_startup
),
&params!(Json::String(self.watchonly_wallet_path.clone()),),
);
match res {
Err(BitcoindError::Server(jsonrpc::Error::Rpc(ref e))) => {