aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_tests.cpp
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-12-12 15:03:23 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-12-12 15:20:38 -0300
commit37c75c58202f89b752500f76c872d7f8caf6bdb3 (patch)
tree8992cd7b761c63a5654dd5219a4e05f5e717bb96 /src/wallet/test/wallet_tests.cpp
parenta7484be65f7617d77aff92ecf6f5fb26015d27a8 (diff)
downloadbitcoin-37c75c58202f89b752500f76c872d7f8caf6bdb3.tar.xz
test: wallet, fix change position out of range error
Since #25273, the behavior of 'inserting change at a random position' is instructed by passing std::nullopt instead of -1. Also, added missing documentation about the meaning of 'change_pos=std::nullopt' inside 'CWallet::CreateTransaction()'
Diffstat (limited to 'src/wallet/test/wallet_tests.cpp')
-rw-r--r--src/wallet/test/wallet_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp
index 3d1cbe36a8..1c5ca1483f 100644
--- a/src/wallet/test/wallet_tests.cpp
+++ b/src/wallet/test/wallet_tests.cpp
@@ -558,7 +558,7 @@ public:
CTransactionRef tx;
CCoinControl dummy;
{
- auto res = CreateTransaction(*wallet, {recipient}, std::nullopt, dummy);
+ auto res = CreateTransaction(*wallet, {recipient}, /*change_pos=*/std::nullopt, dummy);
BOOST_CHECK(res);
tx = res->tx;
}