From 076a9ee19bb4c8285a28f96746ea2f3bb295a602 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Aug 2018 20:24:50 -1100 Subject: [PATCH] -MGNX exception --- src/cc/CCtx.cpp | 2 +- src/komodo_bitcoind.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index 7b42690ea..2c3001c10 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -266,7 +266,7 @@ int64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,int64_t total,int3 { txid = out.tx->GetHash(); vout = out.i; - if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.vout.size() > 0 && tx.vout[vout].scriptPubKey.IsPayToCryptoCondition() == 0 ) + if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.vout.size() > 0 && vout < tx.vout.size() && tx.vout[vout].scriptPubKey.IsPayToCryptoCondition() == 0 ) { if ( mtx.vin.size() > 0 ) { diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index ac76958c4..bd5505c1c 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1535,8 +1535,6 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height) return(-1); } } - if ( strcmp(ASSETCHAINS_SYMBOL,"MGNX") == 0 && height < 13000 ) - return(0); if ( ASSETCHAINS_STAKED != 0 && height >= 2 ) // must PoS or have at least 16x better PoW { if ( (is_PoSblock= komodo_is_PoSblock(slowflag,height,pblock,bnTarget,bhash)) == 0 )