elements/src/wallet/test
Ava Chow efbf4e71ce
Merge bitcoin/bitcoin#29523: Wallet: Add max_tx_weight to transaction funding options (take 2)
734076c6de [wallet, rpc]: add `max_tx_weight` to tx funding options (ismaelsadeeq)
b6fc5043c1 [wallet]: update the data type of `change_output_size`, `change_spend_size` and `tx_noinputs_size` to `int` (ismaelsadeeq)
baab0d2d43 [doc]: update reason for deducting change output weight (ismaelsadeeq)
7f61d31a5c [refactor]: update coin selection algorithms input parameter `max_weight` name (ismaelsadeeq)

Pull request description:

  This PR taken over from #29264

  The PR added an option `max_tx_weight` to transaction funding RPC's that ensures the resulting transaction weight does not exceed the specified `max_tx_weight` limit.

  If `max_tx_weight` is not given `MAX_STANDARD_TX_WEIGHT` is used as the max threshold.

  This PR addressed outstanding review comments in #29264

  For more context and rationale behind this PR see https://delvingbitcoin.org/t/lightning-transactions-with-v3-and-ephemeral-anchors/418/11?u=instagibbs

ACKs for top commit:
  achow101:
    ACK 734076c6de
  furszy:
    utACK 734076c6de
  rkrux:
    reACK [734076c](https://github.com/bitcoin/bitcoin/pull/29523/commits/734076c6de1781f957c8bc3bf7ed6951920cfcf6)

Tree-SHA512: 013501aa443d239ee2ac01bccfc5296490c27b4edebe5cfca6b96c842375e895e5cfeb5424e82e359be581460f8be92095855763a62779a18ccd5bdfdd7ddce7
2024-07-17 18:27:59 -04:00
..
fuzz Merge bitcoin/bitcoin#29523: Wallet: Add max_tx_weight to transaction funding options (take 2) 2024-07-17 18:27:59 -04:00
coinselector_tests.cpp [refactor]: update coin selection algorithms input parameter max_weight name 2024-06-27 12:37:33 +01:00
db_tests.cpp Merge bitcoin/bitcoin#26606: wallet: Implement independent BDB parser 2024-05-21 10:05:09 +01:00
feebumper_tests.cpp Use Txid in COutpoint 2023-11-21 13:15:44 +00:00
group_outputs_tests.cpp refactor: Add LIFETIMEBOUND to all (w)txid getters 2023-10-27 13:01:42 +02:00
init_test_fixture.cpp refactor: Replace string chain name constants with ChainTypes 2023-05-09 15:49:14 +02:00
init_test_fixture.h refactor: Replace string chain name constants with ChainTypes 2023-05-09 15:49:14 +02:00
init_tests.cpp move-only: Extract common/args and common/config.cpp from util/system 2023-04-19 10:48:30 +02:00
ismine_tests.cpp refactor: share and use GenerateRandomKey helper 2023-12-23 13:26:00 +01:00
psbt_wallet_tests.cpp util: add TransactionError includes and namespace declarations 2024-05-16 10:16:08 -05:00
rpc_util_tests.cpp refactor: move Boost datetime usage to wallet 2022-10-01 11:41:53 +01:00
scriptpubkeyman_tests.cpp Rename script/standard.{cpp/h} to script/solver.{cpp/h} 2023-08-14 17:39:49 -04:00
spend_tests.cpp refactor: Drop util::Result operator= 2024-04-25 16:08:24 -04:00
util.cpp wallet: implement BerkeleyROBatch 2024-05-13 23:01:37 -04:00
util.h tidy: modernize-use-equals-default 2024-07-08 11:12:01 +02:00
wallet_crypto_tests.cpp Move random test util code from setup_common to random 2023-02-06 12:26:04 -08:00
wallet_test_fixture.cpp Merge bitcoin/bitcoin#26715: Introduce MockableDatabase for wallet unit tests 2023-05-15 11:39:43 +01:00
wallet_test_fixture.h refactor: Replace string chain name constants with ChainTypes 2023-05-09 15:49:14 +02:00
wallet_tests.cpp Merge bitcoin/bitcoin#30115: rpc: avoid copying into UniValue 2024-05-23 10:53:37 -04:00
wallet_transaction_tests.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
walletdb_tests.cpp Remove unused CDataStream 2023-11-30 11:27:54 +01:00
walletload_tests.cpp descriptor: Be able to get the pubkeys involved in a descriptor 2024-02-20 11:20:58 -05:00