diff options
| author | Suhas Daftuar <[email protected]> | 2016-06-30 11:22:31 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2016-06-30 11:24:32 -0400 |
| commit | 6dd4bc289c71f622ac561f6f9651546b9ec4fa3e (patch) | |
| tree | 52ba0383e80b30d7c0f1590f8f4d301929c64cf6 /src/miner.h | |
| parent | CreateNewBlock: add support for size-accounting to addPackageTxs (diff) | |
| download | discoin-6dd4bc289c71f622ac561f6f9651546b9ec4fa3e.tar.xz discoin-6dd4bc289c71f622ac561f6f9651546b9ec4fa3e.zip | |
Exclude witness transactions in addPackageTxs() pre-segwit activation
Diffstat (limited to 'src/miner.h')
| -rw-r--r-- | src/miner.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/miner.h b/src/miner.h index bc4da63da..9fab55611 100644 --- a/src/miner.h +++ b/src/miner.h @@ -192,8 +192,11 @@ private: void onlyUnconfirmed(CTxMemPool::setEntries& testSet); /** Test if a new package would "fit" in the block */ bool TestPackage(uint64_t packageSize, int64_t packageSigOpsCost); - /** Test if a set of transactions are all final */ - bool TestPackageFinalityAndSerializedSize(const CTxMemPool::setEntries& package); + /** Perform checks on each transaction in a package: + * locktime, premature-witness, 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. */ bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx); |