@@ -94,7 +94,7 @@ pub const DEFAULT_MAX_TX_COUNT: usize = 100_000_000;
9494/// the bitcoin core version.
9595/// See https://github.com/bitcoin/bitcoin/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/src/rpc/net.cpp#L627
9696/// and https://github.com/bitcoin/bitcoin/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/src/clientversion.h#L33-L37
97- pub const BITCOIN_CORE_VERSION_23 : usize = 230_000 ;
97+ pub const BITCOIN_CORE_VERSION_26 : usize = 260_000 ;
9898const NOT_IN_MEMPOOL_ERROR_CODE : i32 = BitcoinRpcError :: RpcInvalidAddressOrKey as i32 ;
9999
100100// Time to sleep before retry on startup.
@@ -293,7 +293,7 @@ async fn connect(rpc: &Client, connection_timeout: Duration) -> Result<Network,
293293 info ! ( "Connected to {}" , chain) ;
294294 info ! ( "Bitcoin version {}" , version) ;
295295
296- if version >= BITCOIN_CORE_VERSION_23 {
296+ if version >= BITCOIN_CORE_VERSION_26 {
297297 return Err ( Error :: IncompatibleVersion ( version) )
298298 }
299299
@@ -1003,7 +1003,9 @@ impl BitcoinCoreApi for BitcoinCore {
10031003 } else {
10041004 info ! ( "Creating wallet {wallet_name}..." ) ;
10051005 // wallet does not exist, create
1006- let result = self . rpc . create_wallet ( wallet_name, None , None , None , None ) ?;
1006+ let result = self
1007+ . rpc
1008+ . create_wallet ( wallet_name, None , None , None , None , Some ( false ) ) ?;
10071009 if let Some ( warning) = result. warning {
10081010 if !warning. is_empty ( ) {
10091011 warn ! ( "Received warning while creating wallet {wallet_name}: {warning}" ) ;
0 commit comments