aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/txmempool.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-10-24 11:36:30 +0200
committerMacroFake <falke.marco@gmail.com>2022-10-24 11:33:33 +0200
commitfa2d01470a9f1a91f35ed8013635ac47dabd868b (patch)
tree6369302f63b120bbc296a256ba4e0c958fc581a5 /src/test/util/txmempool.cpp
parent3db23fd821e0a08e246a60c198676be42de5bcd6 (diff)
test: Use type-safe NodeSeconds for TestMemPoolEntryHelper
Diffstat (limited to 'src/test/util/txmempool.cpp')
-rw-r--r--src/test/util/txmempool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/util/txmempool.cpp b/src/test/util/txmempool.cpp
index 12cc1a4a3d..1873cf5ec8 100644
--- a/src/test/util/txmempool.cpp
+++ b/src/test/util/txmempool.cpp
@@ -34,6 +34,5 @@ CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CMutableTransaction& tx) co
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransactionRef& tx) const
{
- return CTxMemPoolEntry(tx, nFee, nTime, nHeight,
- spendsCoinbase, sigOpCost, lp);
+ return CTxMemPoolEntry{tx, nFee, TicksSinceEpoch<std::chrono::seconds>(time), nHeight, spendsCoinbase, sigOpCost, lp};
}