From 8370c8d5bbdd6d4fda059e01e9dae185743652f0 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Thu, 1 Nov 2018 22:53:10 +0800 Subject: [PATCH] seg fault fix --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 3561130bc..a28629528 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 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.