diff --git a/src/txmempool.h b/src/txmempool.h --- a/src/txmempool.h +++ b/src/txmempool.h @@ -889,6 +889,9 @@ const std::chrono::seconds time; const Amount feeDelta; const unsigned height; + TxInfo(const std::chrono::seconds &time_, Amount feeDelta_, + unsigned height_) noexcept + : time(time_), feeDelta(feeDelta_), height(height_) {} }; using TxInfoMap = std::unordered_map; diff --git a/src/txmempool.cpp b/src/txmempool.cpp --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -1295,9 +1295,8 @@ vtx.push_back(e.GetSharedTx()); // save entry time, feeDelta, and height for use in // updateMempoolForReorg() - txInfo.try_emplace(e.GetTx().GetId(), - TxInfo{e.GetTime(), e.GetModifiedFee() - e.GetFee(), - e.GetHeight()}); + txInfo.try_emplace(e.GetTx().GetId(), e.GetTime(), + e.GetModifiedFee() - e.GetFee(), e.GetHeight()); // Notify all observers of this (possibly temporary) removal. This is // necessary for tracking the transactions that are removed from the // mempool during a reorg and can't be added back due to missing parent.