File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,11 @@ TestChain100Setup::~TestChain100Setup()
126
126
127
127
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx (CMutableTransaction &tx, CTxMemPool *pool) {
128
128
CTransaction txn (tx);
129
- bool hasNoDependencies = pool ? pool->HasNoInputsOf (tx) : hadNoDependencies;
129
+ return FromTx (txn, pool);
130
+ }
131
+
132
+ CTxMemPoolEntry TestMemPoolEntryHelper::FromTx (CTransaction &txn, CTxMemPool *pool) {
133
+ bool hasNoDependencies = pool ? pool->HasNoInputsOf (txn) : hadNoDependencies;
130
134
// Hack to assume either its completely dependent on other mempool txs or not at all
131
135
CAmount inChainValue = hasNoDependencies ? txn.GetValueOut () : 0 ;
132
136
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ struct TestMemPoolEntryHelper
78
78
hadNoDependencies (false ), spendsCoinbase(false ), sigOpCount(1 ) { }
79
79
80
80
CTxMemPoolEntry FromTx (CMutableTransaction &tx, CTxMemPool *pool = NULL );
81
+ CTxMemPoolEntry FromTx (CTransaction &tx, CTxMemPool *pool = NULL );
81
82
82
83
// Change the default value
83
84
TestMemPoolEntryHelper &Fee (CAmount _fee) { nFee = _fee; return *this ; }
You can’t perform that action at this time.
0 commit comments