From 27bf3c5ef351e7009c9c1b57fbb95d11aeaeeb41 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 Nov 2016 18:33:56 -0300 Subject: [PATCH] test --- src/komodo.h | 12 +++++++----- src/komodo_gateway.h | 7 ++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index f1fa4a1ed..819aefd11 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -16,11 +16,13 @@ #ifndef H_KOMODO_H #define H_KOMODO_H -// Todo: handle reorg: clear all entries above reorged height -// error check redeems -// net balance limiter -// REVS and non-fiat chains -// verify: interest payment, ratification +// Todo: +// 1. error check fiat redeem amounts +// 2. net balance limiter, activate dPoW for all fiats +// 3. REVS and non-fiat chains +// 4. verify: interest payment, ratification, reorgs +// 5. automate notarization fee payouts +// 6. automated distribution of test REVS snapshot #include #include diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 2a49991c8..fdb4251f2 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -160,9 +160,10 @@ int32_t komodo_issued_opreturn(uint8_t *shortflagp,char *base,uint256 *txids,uin return(n); } -int32_t komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char *symbol,int32_t tokomodo) +int32_t komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char *base,int32_t tokomodo) { - struct pax_transaction *pax,*tmp; uint8_t *script,opcode,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1; + struct pax_transaction *pax,*tmp; char symbol[16]; uint8_t *script,opcode,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1; + strcpy(symbol,base); PENDING_KOMODO_TX = 0; if ( tokomodo == 0 ) opcode = 'I'; @@ -214,7 +215,7 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,cha if ( shortflag != 0 ) data[len++] = '-'; if ( tokomodo != 0 ) - strcpy(symbol,"KMD"); + strcpy(symbol,(char *)"KMD"); for (i=0; symbol[i]!=0; i++) data[len++] = symbol[i]; data[len++] = 0;