diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-09-18 13:31:59 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-09-23 08:00:14 -0400 |
commit | faec689bed7a5b66e2a7675853d10205b933cec8 (patch) | |
tree | b21dc3595c97b2c8018a801667701ce16ab63780 /src/txmempool.cpp | |
parent | faaa1f01daba94b021ca77515266a16d27f0364e (diff) |
txmempool: Make entry time type-safe (std::chrono)
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 9257cff718..835b8d63bd 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -917,7 +917,8 @@ void CTxMemPool::RemoveStaged(setEntries &stage, bool updateDescendants, MemPool } } -int CTxMemPool::Expire(int64_t time) { +int CTxMemPool::Expire(std::chrono::seconds time) +{ AssertLockHeld(cs); indexed_transaction_set::index<entry_time>::type::iterator it = mapTx.get<entry_time>().begin(); setEntries toremove; |