seg fault fix

This commit is contained in:
blackjok3r
2018-11-01 22:53:10 +08:00
parent fac4fbdee4
commit 8370c8d5bb

View File

@@ -4253,13 +4253,14 @@ bool CheckBlock(int32_t *futureblockp,int32_t height,CBlockIndex *pindex,const C
BOOST_FOREACH(const CTxMemPoolEntry& e, mempool.mapTx) {
const CTransaction &tx = e.GetTx();
const uint256 &hash = tx.GetHash();
int txsize = tx.vjoinsplit.size();
if ( tx.vjoinsplit.size() == 0 ) {
tmpmempool.addUnchecked(hash,e,!IsInitialBlockDownload());
list<CTransaction> removed;
mempool.remove(tx, removed, false);
} else {
// is a z-tx so leave it alone!
fprintf(stderr, "tx vjoinsplit size: %ld\n",tx.vjoinsplit.size());
fprintf(stderr, "tx vjoinsplit size: %d\n",txsize;
}
}
// add all the txs in the block to the empty mempool.