Skip to content

Commit a6741ce

Browse files
authored
Merge pull request #4142 from stacks-network/feat/set-maxburn-sendrawtx
fix: set maxburncap to 1BTC in sendrawtransaction (new in Bitcoin 25.0)
2 parents ad493ad + 1fbfa9a commit a6741ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clarity/src/vm/functions/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ macro_rules! switch_on_global_epoch {
6464
};
6565
}
6666

67-
use crate::vm::ClarityVersion;
68-
6967
use super::errors::InterpreterError;
68+
use crate::vm::ClarityVersion;
7069

7170
mod arithmetic;
7271
mod assets;

testnet/stacks-node/src/burnchains/bitcoin_regtest_controller.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,8 @@ impl BitcoinRPCRequest {
23502350
pub fn send_raw_transaction(config: &Config, tx: String) -> RPCResult<()> {
23512351
let payload = BitcoinRPCRequest {
23522352
method: "sendrawtransaction".to_string(),
2353-
params: vec![tx.into()],
2353+
// set maxfee (as uncapped) and maxburncap (new in bitcoin 25)
2354+
params: vec![tx.into(), 0.into(), 1_000_000.into()],
23542355
id: "stacks".to_string(),
23552356
jsonrpc: "2.0".to_string(),
23562357
};

0 commit comments

Comments
 (0)