From 054a81ed8d59c96a4943e1ee8b5551f6be9512a6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Oct 2016 19:17:42 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index d9505d3fe..1cdb49dc9 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -145,7 +145,7 @@ void komodo_gateway_deposits(CMutableTransaction *txNew) int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above block is valid pax pricing { - int32_t i,j,n,opretlen,offset=1; uint256 hash,txids[64]; uint8_t shortflag; char base[16]; uint16_t vouts[64]; uint8_t *script; struct pax_transaction *pax,space; + int32_t i,j,n,num,opretlen,offset=1; uint256 hash,txids[64]; uint8_t shortflag; char base[16]; uint16_t vouts[64]; uint8_t *script; struct pax_transaction *pax,space; n = block.vtx[0].vout.size(); script = (uint8_t *)block.vtx[0].vout[n-1].scriptPubKey.data(); if ( n <= 2 || script[0] != 0x6a ) @@ -158,7 +158,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { for (i=1; ifiatoshis != block.vtx[0].vout[i].nValue ) + if ( (pax= komodo_paxfind(&space,txids[i-1],vouts[i-1])) == 0 || pax->fiatoshis != block.vtx[0].vout[i].nValue ) break; } if ( i != n-1 )