seg fault fix
This commit is contained in:
@@ -4253,13 +4253,14 @@ bool CheckBlock(int32_t *futureblockp,int32_t height,CBlockIndex *pindex,const C
|
|||||||
BOOST_FOREACH(const CTxMemPoolEntry& e, mempool.mapTx) {
|
BOOST_FOREACH(const CTxMemPoolEntry& e, mempool.mapTx) {
|
||||||
const CTransaction &tx = e.GetTx();
|
const CTransaction &tx = e.GetTx();
|
||||||
const uint256 &hash = tx.GetHash();
|
const uint256 &hash = tx.GetHash();
|
||||||
|
int txsize = tx.vjoinsplit.size();
|
||||||
if ( tx.vjoinsplit.size() == 0 ) {
|
if ( tx.vjoinsplit.size() == 0 ) {
|
||||||
tmpmempool.addUnchecked(hash,e,!IsInitialBlockDownload());
|
tmpmempool.addUnchecked(hash,e,!IsInitialBlockDownload());
|
||||||
list<CTransaction> removed;
|
list<CTransaction> removed;
|
||||||
mempool.remove(tx, removed, false);
|
mempool.remove(tx, removed, false);
|
||||||
} else {
|
} else {
|
||||||
// is a z-tx so leave it alone!
|
// 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.
|
// add all the txs in the block to the empty mempool.
|
||||||
|
|||||||
Reference in New Issue
Block a user