Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
| Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | |||||
| private: | private: | ||||
| // utility functions | // utility functions | ||||
| /** Clear the block's state and prepare for assembling a new block */ | /** Clear the block's state and prepare for assembling a new block */ | ||||
| void resetBlock(); | void resetBlock(); | ||||
| /** Add a tx to the block */ | /** Add a tx to the block */ | ||||
| void AddToBlock(CTxMemPool::txiter iter); | void AddToBlock(CTxMemPool::txiter iter); | ||||
| /** Add current UTXO commitment to the coinbase if available */ | |||||
| void AddUtxoCommitment(CMutableTransaction &coinbase); | |||||
| // Methods for how to add transactions to a block. | // Methods for how to add transactions to a block. | ||||
| /** Add transactions based on tx "priority" */ | /** Add transactions based on tx "priority" */ | ||||
| void addPriorityTxs(); | void addPriorityTxs(); | ||||
| /** Add transactions based on feerate including unconfirmed ancestors | /** Add transactions based on feerate including unconfirmed ancestors | ||||
| * Increments nPackagesSelected / nDescendantsUpdated with corresponding | * Increments nPackagesSelected / nDescendantsUpdated with corresponding | ||||
| * statistics from the package selection (for logging statistics). */ | * statistics from the package selection (for logging statistics). */ | ||||
| void addPackageTxs(int &nPackagesSelected, int &nDescendantsUpdated); | void addPackageTxs(int &nPackagesSelected, int &nDescendantsUpdated); | ||||
| Show All 39 Lines | |||||