test
This commit is contained in:
12
src/komodo.h
12
src/komodo.h
@@ -16,11 +16,13 @@
|
|||||||
#ifndef H_KOMODO_H
|
#ifndef H_KOMODO_H
|
||||||
#define H_KOMODO_H
|
#define H_KOMODO_H
|
||||||
|
|
||||||
// Todo: handle reorg: clear all entries above reorged height
|
// Todo:
|
||||||
// error check redeems
|
// 1. error check fiat redeem amounts
|
||||||
// net balance limiter
|
// 2. net balance limiter, activate dPoW for all fiats
|
||||||
// REVS and non-fiat chains
|
// 3. REVS and non-fiat chains
|
||||||
// verify: interest payment, ratification
|
// 4. verify: interest payment, ratification, reorgs
|
||||||
|
// 5. automate notarization fee payouts
|
||||||
|
// 6. automated distribution of test REVS snapshot
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -160,9 +160,10 @@ int32_t komodo_issued_opreturn(uint8_t *shortflagp,char *base,uint256 *txids,uin
|
|||||||
return(n);
|
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;
|
PENDING_KOMODO_TX = 0;
|
||||||
if ( tokomodo == 0 )
|
if ( tokomodo == 0 )
|
||||||
opcode = 'I';
|
opcode = 'I';
|
||||||
@@ -214,7 +215,7 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,cha
|
|||||||
if ( shortflag != 0 )
|
if ( shortflag != 0 )
|
||||||
data[len++] = '-';
|
data[len++] = '-';
|
||||||
if ( tokomodo != 0 )
|
if ( tokomodo != 0 )
|
||||||
strcpy(symbol,"KMD");
|
strcpy(symbol,(char *)"KMD");
|
||||||
for (i=0; symbol[i]!=0; i++)
|
for (i=0; symbol[i]!=0; i++)
|
||||||
data[len++] = symbol[i];
|
data[len++] = symbol[i];
|
||||||
data[len++] = 0;
|
data[len++] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user