test
This commit is contained in:
12
src/komodo.h
12
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 <stdint.h>
|
||||
#include <stdio.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;
|
||||
|
||||
Reference in New Issue
Block a user