Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | private: | ||||
TestForBlockResult TestForBlock(CTxMemPool::txiter iter); | TestForBlockResult TestForBlock(CTxMemPool::txiter iter); | ||||
/** Test if tx still has unconfirmed parents not yet in block */ | /** Test if tx still has unconfirmed parents not yet in block */ | ||||
bool isStillDependent(CTxMemPool::txiter iter); | bool isStillDependent(CTxMemPool::txiter iter); | ||||
// helper functions for addPackageTxs() | // helper functions for addPackageTxs() | ||||
/** Remove confirmed (inBlock) entries from given set */ | /** Remove confirmed (inBlock) entries from given set */ | ||||
void onlyUnconfirmed(CTxMemPool::setEntries &testSet); | void onlyUnconfirmed(CTxMemPool::setEntries &testSet); | ||||
/** Test if a new package would "fit" in the block */ | /** Test if a new package would "fit" in the block */ | ||||
bool TestPackage(uint64_t packageSize, int64_t packageSigOpsCost); | bool TestPackage(uint64_t packageSize, int64_t packageSigOpsCost) const; | ||||
/** Perform checks on each transaction in a package: | /** Perform checks on each transaction in a package: | ||||
* locktime, serialized size (if necessary) | * locktime, serialized size (if necessary) | ||||
* These checks should always succeed, and they're here | * These checks should always succeed, and they're here | ||||
* only as an extra check in case of suboptimal node configuration */ | * only as an extra check in case of suboptimal node configuration */ | ||||
bool TestPackageTransactions(const CTxMemPool::setEntries &package); | bool TestPackageTransactions(const CTxMemPool::setEntries &package); | ||||
/** Return true if given transaction from mapTx has already been evaluated, | /** Return true if given transaction from mapTx has already been evaluated, | ||||
* or if the transaction's cached data in mapTx is incorrect. */ | * or if the transaction's cached data in mapTx is incorrect. */ | ||||
bool SkipMapTxEntry(CTxMemPool::txiter it, | bool SkipMapTxEntry(CTxMemPool::txiter it, | ||||
Show All 20 Lines |