From 95db8239e9dd410ea283cd3fe1ab13c3ad4c5a7b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Oct 2016 16:19:34 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 4 ++-- src/komodo_utils.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 87a74e5f5..f010c5649 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -210,10 +210,10 @@ int32_t komodo_check_deposit(const CBlock& block) // verify above block is valid const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int32_t opretlen,uint256 txid,uint16_t vout) { uint8_t rmd160[20],addrtype,shortflag,pubkey33[33]; int32_t i,j,n,len,tokomodo=0; char base[4],coinaddr[64],destaddr[64]; uint256 txids[64]; uint16_t vouts[64]; int64_t fiatoshis,checktoshis; const char *typestr = "unknown"; + tokomodo = (komodo_is_issuer() == 0); for (i=0; i %s ",dstr(fiatoshis),shortflag!=0?'-':'+',base,coinaddr); - tokomodo = (komodo_is_issuer() == 0); + printf(" DEPOSIT.[%c] tokomodo.%d %.8f %c%s -> %s ",opretbuf[0],tokomodo,dstr(fiatoshis),shortflag!=0?'-':'+',base,coinaddr); if ( opretbuf[0] == ((tokomodo == 0) ? 'D' : 'W') ) { if ( opretlen == 34 ) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index d6452b93c..420d1c228 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -802,7 +802,7 @@ int32_t komodo_baseid(char *origbase) int32_t komodo_is_issuer() { - if ( ASSETCHAINS_SYMBOL[0] != 0 && COINBASE_MATURITY == 1 ) + if ( ASSETCHAINS_SYMBOL[0] != 0 && COINBASE_MATURITY < 10 ) return(1); else return(0); }