diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-26 16:19:35 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-26 16:20:01 +0200 |
commit | ffb32acfab33a58c32e0249a22dd56e39c82d417 (patch) | |
tree | b82c2b4e648ba20b269b0843b277deda307f01ee /src/txmempool.h | |
parent | f40d193c18a1bd5c310b60f0a89d4a6634d0a27a (diff) | |
parent | 2a72d4591f5adf25fcb4d0433b390ba6c37f57a9 (diff) | |
download | bitcoin-ffb32acfab33a58c32e0249a22dd56e39c82d417.tar.xz |
Merge pull request #1583
2a72d45 JSON-RPC method: prioritisetransaction <txid> <priority delta> <priority tx fee> (Luke Dashjr)
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index b2915aa842..f7dbb126a0 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -71,6 +71,7 @@ public: mutable CCriticalSection cs; std::map<uint256, CTxMemPoolEntry> mapTx; std::map<COutPoint, CInPoint> mapNextTx; + std::map<uint256, std::pair<double, int64_t> > mapDeltas; CTxMemPool(); ~CTxMemPool(); @@ -95,6 +96,11 @@ public: unsigned int GetTransactionsUpdated() const; void AddTransactionsUpdated(unsigned int n); + /** Affect CreateNewBlock prioritisation of transactions */ + void PrioritiseTransaction(const uint256 hash, const std::string strHash, double dPriorityDelta, int64_t nFeeDelta); + void ApplyDeltas(const uint256 hash, double &dPriorityDelta, int64_t &nFeeDelta); + void ClearPrioritisation(const uint256 hash); + unsigned long size() { LOCK(cs); |