aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-02-23 08:10:42 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2018-02-23 08:10:42 +0100
commit2736c9e05ebd71f2eeab490de7f9fba9ea8b4169 (patch)
tree2288814a29ae4c38f18fdd8e594e82541879db47 /src/wallet
parentaae64a21ba25ca86fe2bbb581681dc20d613fb44 (diff)
downloadbitcoin-2736c9e05ebd71f2eeab490de7f9fba9ea8b4169.tar.xz
Avoid unintentional unsigned integer wraparounds in tests
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/test/accounting_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/test/accounting_tests.cpp b/src/wallet/test/accounting_tests.cpp
index cafd69d075..e6510cc214 100644
--- a/src/wallet/test/accounting_tests.cpp
+++ b/src/wallet/test/accounting_tests.cpp
@@ -82,7 +82,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade)
wtx.mapValue["comment"] = "y";
{
CMutableTransaction tx(*wtx.tx);
- --tx.nLockTime; // Just to change the hash :)
+ ++tx.nLockTime; // Just to change the hash :)
wtx.SetTx(MakeTransactionRef(std::move(tx)));
}
pwalletMain->AddToWallet(wtx);
@@ -92,7 +92,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade)
wtx.mapValue["comment"] = "x";
{
CMutableTransaction tx(*wtx.tx);
- --tx.nLockTime; // Just to change the hash :)
+ ++tx.nLockTime; // Just to change the hash :)
wtx.SetTx(MakeTransactionRef(std::move(tx)));
}
pwalletMain->AddToWallet(wtx);