From 2ad557a4ca07f78ec707ade9b9a0848f9e42a982 Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 7 Dec 2018 13:41:45 +0100 Subject: [PATCH] Fix hanging of oracles --- src/cc/CCtx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index 9315faa9a..27d796ba0 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -69,8 +69,8 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran { if ( GetTransaction(mtx.vin[i].prevout.hash,vintx,hashBlock,false) != 0 ) { - if ( vintx.vout[utxovout].scriptPubKey.IsPayToCryptoCondition() == 0 ) - if (ccvins==0) normalvins++; + if ( vintx.vout[mtx.vin[i].prevout.n].scriptPubKey.IsPayToCryptoCondition() == 0 && ccvins==0) + normalvins++; else ccvins++; } }