diff options
| author | Alex Morcos <[email protected]> | 2017-01-19 13:58:42 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2017-02-27 11:23:50 -0500 |
| commit | 272b25a6a99057fdcd5db5bce70b49625e973080 (patch) | |
| tree | e196f5d34afcd9745b9f87bef339e32f52247a65 /src/miner.h | |
| parent | [rpc] Remove estimatepriority and estimatesmartpriority. (diff) | |
| download | discoin-272b25a6a99057fdcd5db5bce70b49625e973080.tar.xz discoin-272b25a6a99057fdcd5db5bce70b49625e973080.zip | |
[mining] Remove -blockprioritysize.
Remove ability of mining code to fill part of a block with transactions sorted by coin age.
Diffstat (limited to 'src/miner.h')
| -rw-r--r-- | src/miner.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/miner.h b/src/miner.h index 3ba92b16b..625ffe97f 100644 --- a/src/miner.h +++ b/src/miner.h @@ -158,10 +158,6 @@ private: int64_t nLockTimeCutoff; const CChainParams& chainparams; - // Variables used for addPriorityTxs - int lastFewTxs; - bool blockFinished; - public: BlockAssembler(const CChainParams& chainparams); /** Construct a new block template with coinbase to scriptPubKeyIn */ @@ -175,17 +171,9 @@ private: void AddToBlock(CTxMemPool::txiter iter); // Methods for how to add transactions to a block. - /** Add transactions based on tx "priority" */ - void addPriorityTxs(); /** Add transactions based on feerate including unconfirmed ancestors */ void addPackageTxs(); - // helper function for addPriorityTxs - /** Test if tx will still "fit" in the block */ - bool TestForBlock(CTxMemPool::txiter iter); - /** Test if tx still has unconfirmed parents not yet in block */ - bool isStillDependent(CTxMemPool::txiter iter); - // helper functions for addPackageTxs() /** Remove confirmed (inBlock) entries from given set */ void onlyUnconfirmed(CTxMemPool::setEntries& testSet); |