@@ -74,7 +74,7 @@ pub const DEFAULT_MAX_TX_COUNT: usize = 100_000_000;
7474/// the bitcoin core version.
7575/// See https://github.com/bitcoin/bitcoin/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/src/rpc/net.cpp#L627
7676/// and https://github.com/bitcoin/bitcoin/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/src/clientversion.h#L33-L37
77- pub const BITCOIN_CORE_VERSION_23 : usize = 230_000 ;
77+ pub const BITCOIN_CORE_VERSION_26 : usize = 260_000 ;
7878const NOT_IN_MEMPOOL_ERROR_CODE : i32 = BitcoinRpcError :: RpcInvalidAddressOrKey as i32 ;
7979
8080// Time to sleep before retry on startup.
@@ -283,7 +283,7 @@ async fn connect(rpc: &Client, connection_timeout: Duration) -> Result<Network,
283283 info ! ( "Connected to {}" , chain) ;
284284 info ! ( "Bitcoin version {}" , version) ;
285285
286- if version >= BITCOIN_CORE_VERSION_23 {
286+ if version >= BITCOIN_CORE_VERSION_26 {
287287 return Err ( Error :: IncompatibleVersion ( version) )
288288 }
289289
@@ -1052,7 +1052,9 @@ impl BitcoinCoreApi for BitcoinCore {
10521052 } else {
10531053 info ! ( "Creating wallet {wallet_name}..." ) ;
10541054 // wallet does not exist, create
1055- let result = self . rpc . create_wallet ( wallet_name, None , None , None , None ) ?;
1055+ let result = self
1056+ . rpc
1057+ . create_wallet ( wallet_name, None , None , None , None , Some ( false ) ) ?;
10561058 if let Some ( warning) = result. warning {
10571059 if !warning. is_empty ( ) {
10581060 warn ! ( "Received warning while creating wallet {wallet_name}: {warning}" ) ;
0 commit comments