File tree 1 file changed +5
-5
lines changed
testnet/stacks-node/src/burnchains
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -744,11 +744,6 @@ impl BitcoinRegtestController {
744
744
utxos_to_exclude : Option < UTXOSet > ,
745
745
block_height : u64 ,
746
746
) -> Option < UTXOSet > {
747
- // if mock mining, do not even bother requesting UTXOs
748
- if self . config . get_node_config ( false ) . mock_mining {
749
- return None ;
750
- }
751
-
752
747
let pubk = if self . config . miner . segwit && epoch_id >= StacksEpochId :: Epoch21 {
753
748
let mut p = * public_key;
754
749
p. set_compressed ( true ) ;
@@ -1693,6 +1688,11 @@ impl BitcoinRegtestController {
1693
1688
// in RBF, you have to consume the same UTXOs
1694
1689
utxos
1695
1690
} else {
1691
+ // if mock mining, do not even bother requesting UTXOs
1692
+ if self . config . node . mock_mining {
1693
+ return Err ( BurnchainControllerError :: NoUTXOs ) ;
1694
+ }
1695
+
1696
1696
// Fetch some UTXOs
1697
1697
let addr = self . get_miner_address ( epoch_id, public_key) ;
1698
1698
match self . get_utxos (
You can’t perform that action at this time.
0 commit comments