HomePhabricator

[Chronik] Bridge `calc_fee` and `default_max_raw_tx_fee_rate_per_kb` to Rust

Description

[Chronik] Bridge calc_fee and default_max_raw_tx_fee_rate_per_kb to Rust

Summary: sendrawtransaction uses these to calculate the maximum fee. By bridging them we can use the same calculation in QueryBroadcast::broadcast_txs, see D15370.

Test Plan: ninja test_bitcoin && ./src/test/test_bitcoin -t chronikbridge_tests

Reviewers: PiRK, #bitcoin_abc

Reviewed By: PiRK, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15409

Details

Provenance
tobias_ruckAuthored on Feb 8 2024, 14:53
tobias_ruckPushed on Feb 9 2024, 11:33
Reviewer
Restricted Project
Differential Revision
D15409: [Chronik] Bridge `calc_fee` and `default_max_raw_tx_fee_rate_per_kb` to Rust
Parents
rABCcf768d54a248: remove dependency to OpenSSL when building without BIP70 support
Branches
Unknown
Tags
Unknown