[wallet, rpc]: add max_tx_weight to tx funding options

This allows a transaction's weight to be bound under a certain
weight if possible and desired. This can be beneficial for future
RBF attempts, or whenever a more restricted spend topology is
desired.

Co-authored-by: Greg Sanders <gsanders87@gmail.com>
This commit is contained in:
ismaelsadeeqandGreg Sanders committed 2024-06-27 15:31:21 +01:00
1 parent b6fc5043c1
commit 734076c6de
9 files changed
+119 -17

No files matched your search

@@ -48,6 +48,7 @@ from .util import assert_equal
MAX_BLOCK_SIGOPS = 20000
MAX_BLOCK_SIGOPS_WEIGHT = MAX_BLOCK_SIGOPS * WITNESS_SCALE_FACTOR
MAX_STANDARD_TX_WEIGHT = 400000
# Genesis block time (regtest)
TIME_GENESIS_BLOCK = 1296688602