aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-12-01 16:32:42 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-12-01 16:26:11 +0100
commitfa37e798b2660d8e44e31c944a257b55aeef5de2 (patch)
tree455970a259a24dc9ea06bfa886c8a03c6f7a84cf /src/wallet/wallet.cpp
parente7507f333bc93047d0baadea4fde19f770dacb56 (diff)
wallet: Replace confusing getAdjustedTime() with GetTime()
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index e4c3822305..b2051e85cb 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -915,7 +915,7 @@ CWalletTx* CWallet::AddToWallet(CTransactionRef tx, const TxState& state, const
bool fInsertedNew = ret.second;
bool fUpdated = update_wtx && update_wtx(wtx, fInsertedNew);
if (fInsertedNew) {
- wtx.nTimeReceived = chain().getAdjustedTime();
+ wtx.nTimeReceived = GetTime();
wtx.nOrderPos = IncOrderPosNext(&batch);
wtx.m_it_wtxOrdered = wtxOrdered.insert(std::make_pair(wtx.nOrderPos, &wtx));
wtx.nTimeSmart = ComputeTimeSmart(wtx, rescanning_old_block);
@@ -1286,7 +1286,6 @@ void CWallet::updatedBlockTip()
m_best_block_time = GetTime();
}
-
void CWallet::BlockUntilSyncedToCurrentChain() const {
AssertLockNotHeld(cs_wallet);
// Skip the queue-draining stuff if we know we're caught up with