elements/src/wallet/test
Ava Chow 33adc7521c
Merge bitcoin/bitcoin#30765: refactor: Allow CScript's operator<< to accept spans, not just vectors
5e190cd11f Replace CScript _hex_v_u8 appends with _hex (Lőrinc)
cac846c2fb Allow CScript's operator<< to accept spans, not just vectors (Lőrinc)
c78d8ff4cb prevector: avoid GCC bogus warnings in insert method (Lőrinc)

Pull request description:

  Split out of https://github.com/bitcoin/bitcoin/pull/30377#discussion_r1722326803.

  Replace `_hex_v_u8` for `CScript` appends to `_hex`, to skip vector conversion before serializing to the `prevector` in `CScript`.

  To enable both `unsigned char` and `std::byte` values, I've extracted the existing serialization to append the size & data in separate private methods to clarify that it does more than just a simple data insertion.

  There were also discussion on eliminating the operators here completely to obviate when we're serializing fixed-size collections as raw bytes, and when we're prefixing them with their size - should also be done in a separate PR.

ACKs for top commit:
  achow101:
    ACK 5e190cd11f
  ryanofsky:
    Code review ACK 5e190cd11f. Looks good!
  hodlinator:
    re-ACK 5e190cd11f

Tree-SHA512: 27a646629e017b2a05416d5eb964dda8b25b900d466221eff7bfa1339ded443e1c5c4cf8ff20cb3bba915a2603787a9fa6f6ec12bc0b9415d9eb07b57289192b
2024-09-20 15:16:53 -04:00
..
fuzz fuzz: Don't compile BDB-specific code on MSVC in wallet_bdb_parser.cpp 2024-09-06 12:19:27 +01:00
CMakeLists.txt cmake: Add wallet functionality 2024-08-16 19:27:40 +01: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 Replace CScript _hex_v_u8 appends with _hex 2024-09-11 17:41:27 +02:00
psbt_wallet_tests.cpp refactor: Hand-replace some ParseHex -> ""_hex 2024-08-28 19:11:59 +02: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 Merge bitcoin/bitcoin#22838: descriptors: Be able to specify change and receiving in a single descriptor string 2024-08-28 15:56:15 +01:00
util.h tidy: modernize-use-equals-default 2024-07-08 11:12:01 +02:00
wallet_crypto_tests.cpp scripted-diff: Replace ParseHex[<std::byte>]("str") -> "str"_hex[_u8] 2024-08-28 19:11:59 +02: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 test: remove wallet context from write_wallet_settings_concurrently 2024-09-05 20:32:20 +01: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