diff --git a/src/miner.h b/src/miner.h --- a/src/miner.h +++ b/src/miner.h @@ -185,9 +185,11 @@ // 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 + /** + * Add transactions based on feerate including unconfirmed ancestors. * 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); /** Enum for the results from TestForBlock */ @@ -208,13 +210,17 @@ void onlyUnconfirmed(CTxMemPool::setEntries &testSet); /** Test if a new package would "fit" in the block */ bool TestPackage(uint64_t packageSize, int64_t packageSigOpsCost) const; - /** Perform checks on each transaction in a package: - * locktime, serialized size (if necessary) - * These checks should always succeed, and they're here - * only as an extra check in case of suboptimal node configuration */ + /** + * Perform checks on each transaction in a package: + * locktime, serialized size (if necessary). These checks should always + * succeed, and they're here only as an extra check in case of suboptimal + * node configuration. + */ bool TestPackageTransactions(const CTxMemPool::setEntries &package); - /** Return true if given transaction from mapTx has already been evaluated, - * or if the transaction's cached data in mapTx is incorrect. */ + /** + * Return true if given transaction from mapTx has already been evaluated, + * or if the transaction's cached data in mapTx is incorrect. + */ bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx); @@ -222,9 +228,11 @@ void SortForBlock(const CTxMemPool::setEntries &package, CTxMemPool::txiter entry, std::vector &sortedEntries); - /** Add descendants of given transactions to mapModifiedTx with ancestor - * state updated assuming given transactions are inBlock. Returns number - * of updated descendants. */ + /** + * Add descendants of given transactions to mapModifiedTx with ancestor + * state updated assuming given transactions are inBlock. Returns number of + * updated descendants. + */ int UpdatePackagesForAdded(const CTxMemPool::setEntries &alreadyAdded, indexed_modified_transaction_set &mapModifiedTx); };