From a528f1bd779f4ccdd64a3e4b28f60da76ce4a739 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sun, 16 Dec 2018 15:52:32 +0800 Subject: [PATCH] Don't add z-tx to the mempool on block validation. Causes needless slowdowns and error messages. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a2314f644..3a8c4502e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4705,7 +4705,7 @@ bool CheckBlock(int32_t *futureblockp,int32_t height,CBlockIndex *pindex,const C CValidationState state; CTransaction Tx; const CTransaction &tx = (CTransaction)block.vtx[i]; - if (tx.IsCoinBase() || ((i == (block.vtx.size() - 1)) && (ASSETCHAINS_STAKED && komodo_isPoS((CBlock *)&block) != 0))) + if (tx.IsCoinBase() || tx.vjoinsplit.size() != 0 || ((i == (block.vtx.size() - 1)) && (ASSETCHAINS_STAKED && komodo_isPoS((CBlock *)&block) != 0))) continue; Tx = tx; if ( myAddtomempool(Tx, &state) == false ) // happens with out of order tx in block on resync