From feefa2d3201c11adb6957bb8bf7b2508ae0d3a07 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 5 Jul 2018 05:52:44 -1100 Subject: [PATCH] Vins == 1 check for staking utxo --- src/komodo_bitcoind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index cfa4c7c33..6aadde9b8 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1250,7 +1250,7 @@ int32_t komodo_is_PoSblock(int32_t slowflag,int32_t height,CBlock *pblock,arith_ txn_count = pblock->vtx.size(); if ( ASSETCHAINS_STAKED == 100 && height < 1000 ) return(1); - if ( txn_count > 1 && pblock->vtx[txn_count-1].vout.size() == 1 ) + if ( txn_count > 1 && pblock->vtx[txn_count-1].vin.size() == 1 && pblock->vtx[txn_count-1].vout.size() == 1 ) { if ( prevtime == 0 ) {