Fix typos
Zcash: Only the typos we have. (cherry picked from commit bitcoin/bitcoin@1340eda3b7)
This commit is contained in:
parent
f1c166d3db
commit
474aefcde6
|
@ -26,8 +26,8 @@ void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
|
||||||
//
|
//
|
||||||
// Early deadlock detection.
|
// Early deadlock detection.
|
||||||
// Problem being solved:
|
// Problem being solved:
|
||||||
// Thread 1 locks A, then B, then C
|
// Thread 1 locks A, then B, then C
|
||||||
// Thread 2 locks D, then C, then A
|
// Thread 2 locks D, then C, then A
|
||||||
// --> may result in deadlock between the two threads, depending on when they run.
|
// --> may result in deadlock between the two threads, depending on when they run.
|
||||||
// Solution implemented here:
|
// Solution implemented here:
|
||||||
// Keep track of pairs of locks: (A before B), (A before C), etc.
|
// Keep track of pairs of locks: (A before B), (A before C), etc.
|
||||||
|
|
|
@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
|
||||||
// we can't make 3 cents of mature coins
|
// we can't make 3 cents of mature coins
|
||||||
BOOST_CHECK(!CWallet::SelectCoinsMinConf( 3 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet));
|
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( CWallet::SelectCoinsMinConf( 3 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet));
|
||||||
BOOST_CHECK_EQUAL(nValueRet, 3 * CENT);
|
BOOST_CHECK_EQUAL(nValueRet, 3 * CENT);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue