Skip to content

Commit da5080d

Browse files
committed
Fix wallet addresses on regtest
1 parent cf46a23 commit da5080d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node/src/rpc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,14 @@ impl WalletManager {
380380

381381
// Use testnet in the wallet if regtest is specified to work around
382382
// a bug in bdk comparing regtest descriptors
383+
// TODO: might have been fixed already?
383384
ExtendedNetwork::Regtest => {
384385
genesis_hash = Some(
385386
bdk::bitcoin::constants::genesis_block(Regtest)
386387
.header
387388
.block_hash(),
388389
);
389-
Network::Testnet
390+
Network::Regtest
390391
}
391392
ExtendedNetwork::Signet => {
392393
genesis_hash = Some(

0 commit comments

Comments
 (0)