Add TestMemPoolEntryHelper::FromTx version for CTransaction

This commit is contained in:
Matt Corallo
2016-04-25 17:04:13 -07:00
parent 85ad31ede7
commit f4f8f14adc
2 changed files with 6 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ struct TestMemPoolEntryHelper
hadNoDependencies(false), spendsCoinbase(false), sigOpCount(1) { }
CTxMemPoolEntry FromTx(CMutableTransaction &tx, CTxMemPool *pool = NULL);
CTxMemPoolEntry FromTx(CTransaction &tx, CTxMemPool *pool = NULL);
// Change the default value
TestMemPoolEntryHelper &Fee(CAmount _fee) { nFee = _fee; return *this; }