diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-10-30 23:24:41 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-10-30 23:24:41 -0700 |
commit | ced7c949e8648b727c05adccdc2a977f129ca2cd (patch) | |
tree | d6c2131d358cdbc678015c5e9fce70ef944dfa1a /src/main.h | |
parent | c3efb586223c0459cdb47913375c2df805be925e (diff) |
Add AcceptToMemoryPoolWithTime function
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |