From ced7c949e8648b727c05adccdc2a977f129ca2cd Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 30 Oct 2016 23:24:41 -0700 Subject: Add AcceptToMemoryPoolWithTime function --- src/main.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index 3eab9b89da..5a3af52fed 100644 --- a/src/main.h +++ b/src/main.h @@ -291,6 +291,10 @@ void PruneAndFlush(); bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree, bool* pfMissingInputs, bool fOverrideMempoolLimit=false, const CAmount nAbsurdFee=0); +/** (try to) add transaction to memory pool with a specified acceptance time **/ +bool AcceptToMemoryPoolWithTime(CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree, + bool* pfMissingInputs, int64_t nAcceptTime, bool fOverrideMempoolLimit=false, const CAmount nAbsurdFee=0); + /** Convert CValidationState to a human-readable message for logging */ std::string FormatStateMessage(const CValidationState &state); -- cgit v1.2.3 From 3f78562df5e86a2a0a21812047fc3a7db8cee988 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 30 Oct 2016 23:53:38 -0700 Subject: Add DumpMempool and LoadMempool --- src/main.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index 5a3af52fed..4c6af95142 100644 --- a/src/main.h +++ b/src/main.h @@ -533,6 +533,12 @@ static const unsigned int REJECT_ALREADY_KNOWN = 0x101; /** Transaction conflicts with a transaction already known */ static const unsigned int REJECT_CONFLICT = 0x102; +/** Dump the mempool to disk. */ +void DumpMempool(); + +/** Load the mempool from disk. */ +bool LoadMempool(); + // The following things handle network-processing logic // (and should be moved to a separate file) -- cgit v1.2.3