From 474aefcde6b27e253b509d1a01cfe4a1e6570c57 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sun, 28 Jan 2018 13:14:54 +0100 Subject: [PATCH] Fix typos Zcash: Only the typos we have. (cherry picked from commit bitcoin/bitcoin@1340eda3b7b6ca2789d6ec65dad72ee4c3844661) --- src/sync.cpp | 4 ++-- src/wallet/test/wallet_tests.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sync.cpp b/src/sync.cpp index 204d21a8e..f4efcf296 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -26,8 +26,8 @@ void PrintLockContention(const char* pszName, const char* pszFile, int nLine) // // Early deadlock detection. // Problem being solved: -// Thread 1 locks A, then B, then C -// Thread 2 locks D, then C, then A +// Thread 1 locks A, then B, then C +// Thread 2 locks D, then C, then A // --> may result in deadlock between the two threads, depending on when they run. // Solution implemented here: // Keep track of pairs of locks: (A before B), (A before C), etc. diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index cd01b771d..1101a6c89 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests) // we can't make 3 cents of mature coins BOOST_CHECK(!CWallet::SelectCoinsMinConf( 3 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet)); - // we can make 3 cents of new coins + // we can make 3 cents of new coins BOOST_CHECK( CWallet::SelectCoinsMinConf( 3 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 3 * CENT);