From 2fe65b37f5529b0dfa43712aab62406e63bccea7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 21 Oct 2016 16:17:26 -0300 Subject: [PATCH] test --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 290f64ac6..a4c9ce722 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1042,6 +1042,7 @@ CAmount GetMinRelayFee(const CTransaction& tx, unsigned int nBytes, bool fAllowF bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree, bool* pfMissingInputs, bool fRejectAbsurdFee) { + uint32_t blocktime = (uint32_t)time(NULL); AssertLockHeld(cs_main); if (pfMissingInputs) *pfMissingInputs = false; @@ -1132,7 +1133,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa // Bring the best block into scope view.GetBestBlock(); - nValueIn = view.GetValueIn(tx); + nValueIn = view.GetValueIn(tx,blocktime); // we have all inputs cached now, so switch back to dummy, so we don't need to keep lock on mempool view.SetBackend(dummy);