From d6a84bcbe1b4774e9d45b9ffe53b9b4043f96a27 Mon Sep 17 00:00:00 2001 From: fuyangpengqi <995764973@qq.com> Date: Thu, 18 Apr 2024 21:20:27 +0800 Subject: [PATCH] chore: remove redundant words Signed-off-by: fuyangpengqi <995764973@qq.com> --- doc/developer-notes.md | 2 +- qa/rpc-tests/auxpow.py | 2 +- qa/rpc-tests/test_framework/mininode.py | 2 +- src/qt/walletmodel.cpp | 2 +- src/txmempool.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 2cea300b8..20f1dd6ed 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -264,7 +264,7 @@ General C++ - Assertions should not have side-effects - - *Rationale*: Even though the source code is set to to refuse to compile + - *Rationale*: Even though the source code is set to refuse to compile with assertions disabled, having side-effects in assertions is unexpected and makes the code harder to understand diff --git a/qa/rpc-tests/auxpow.py b/qa/rpc-tests/auxpow.py index 31228a730..754577c51 100755 --- a/qa/rpc-tests/auxpow.py +++ b/qa/rpc-tests/auxpow.py @@ -61,7 +61,7 @@ class AuxPOWTest (BitcoinTestFramework): raise ex self.sync_all() - # 5. mine blocks until we're in in auxpow era + # 5. mine blocks until we're in auxpow era self.nodes[1].generate(self.AUXPOW_START - self.DIGISHIELD_START) self.sync_all() diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py index 94d9d65d5..c9bea59a8 100755 --- a/qa/rpc-tests/test_framework/mininode.py +++ b/qa/rpc-tests/test_framework/mininode.py @@ -63,7 +63,7 @@ mininode_socket_map = dict() # One lock for synchronizing all data access between the networking thread (see # NetworkThread below) and the thread running the test logic. For simplicity, -# NodeConn acquires this lock whenever delivering a message to to a NodeConnCB, +# NodeConn acquires this lock whenever delivering a message to a NodeConnCB, # and whenever adding anything to the send buffer (in send_message()). This # lock should be acquired in the thread running the test logic to synchronize # access to any data shared with the NodeConnCB or NodeConn. diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 593a0fd52..380291d85 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -342,7 +342,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran transaction_array.append(&(ssTx[0]), ssTx.size()); } - // Add addresses / update labels that we've sent to to the address book, + // Add addresses / update labels that we've sent to the address book, // and emit coinsSent signal for each recipient Q_FOREACH(const SendCoinsRecipient &rcp, transaction.getRecipients()) { diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 49de7befa..80688d005 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -135,7 +135,7 @@ void CTxMemPool::UpdateTransactionsFromBlock(const std::vector &vHashes // accounted for in the state of their ancestors) std::set setAlreadyIncluded(vHashesToUpdate.begin(), vHashesToUpdate.end()); - // Iterate in reverse, so that whenever we are looking at at a transaction + // Iterate in reverse, so that whenever we are looking at a transaction // we are sure that all in-mempool descendants have already been processed. // This maximizes the benefit of the descendant cache and guarantees that // setMemPoolChildren will be updated, an assumption made in