Ensure bool is allocated for later assignment(s)

This commit is contained in:
lbrynaut 2018-07-14 17:04:08 -05:00 committed by Umpei Kay Kurokawa
parent 84542d98d1
commit 30c65694b9
3 changed files with 5 additions and 12 deletions

View file

@ -360,13 +360,7 @@ function build_lbrycrd() {
LDFLAGS="${LDFLAGS}" \
CPPFLAGS="${CPPFLAGS}" >> "${LBRYCRD_LOG}" 2>&1
background make "${LBRYCRD_LOG}" "Waiting for lbrycrd to finish building"
# Looking into this error on OS X
## tests don't work on OSX. Should definitely figure out why
## that is but, for now, not letting that stop the rest
## of the build
#if [ "${OS_NAME}" = "linux" ]; then
src/test/test_lbrycrd
#fi
src/test/test_lbrycrd
strip src/lbrycrdd
strip src/lbrycrd-cli
strip src/lbrycrd-tx

View file

@ -84,9 +84,9 @@ void AddToMempool(CMutableTransaction& tx)
//BOOST_CHECK(CheckSequenceLocks(tx, STANDARD_LOCKTIME_VERIFY_FLAGS, &lp));
//mempool.addUnchecked(tx.GetHash(), CTxMemPoolEntry(tx, 0, GetTime(), 111.1, chainActive.Height(), mempool.HasNoInputsOf(tx), 10000000000, false, nSigOps, lp));
CValidationState state;
bool *fMissingInputs;
bool fMissingInputs;
CFeeRate txFeeRate = CFeeRate(0);
BOOST_CHECK(AcceptToMemoryPool(mempool, state, tx, false, fMissingInputs, &txFeeRate));
BOOST_CHECK(AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, &txFeeRate));
//TestMemPoolEntryHelper entry;
//entry.nFee = 11;
//entry.dPriority = 111.0;

View file

@ -200,10 +200,9 @@ struct ClaimTrieChainFixture{
}
CValidationState state;
bool *fMissingInputs;
bool fMissingInputs;
CFeeRate txFeeRate = CFeeRate(0);
BOOST_CHECK(AcceptToMemoryPool(mempool, state, tx, false, fMissingInputs, &txFeeRate));
BOOST_CHECK(AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, &txFeeRate));
}
//spend a bid into some non claimtrie related unspent