jl777 8 years ago
parent
commit
b88d07da51
  1. 16
      iguana/iguana_notary.c
  2. 2
      includes/iguana_apideclares.h

16
iguana/iguana_notary.c

@ -1183,4 +1183,20 @@ TWO_STRINGS(iguana,dpow,symbol,pubkey)
return(clonestr("{\"result\":\"success\"}"));
}
TWO_STRINGS(zcash,passthru,function,hex)
{
if ( (coin= iguana_coinfind("ZEC")) != 0 || coin->chain->serverport[0] == 0 )
{
return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,function,hex));
} else return(clonestr("{\"error\":\"ZEC not active, start in bitcoind mode\"}"));
}
TWO_STRINGS(komodo,passthru,function,hex)
{
if ( (coin= iguana_coinfind("KMD")) != 0 || coin->chain->serverport[0] == 0 )
{
return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,function,hex));
} else return(clonestr("{\"error\":\"KMD not active, start in bitcoind mode\"}"));
}
#include "../includes/iguana_apiundefs.h"

2
includes/iguana_apideclares.h

@ -14,6 +14,8 @@
******************************************************************************/
TWO_STRINGS(iguana,dpow,symbol,pubkey);
TWO_STRINGS(zcash,passthru,function,hex);
TWO_STRINGS(komodo,passthru,function,hex);
#ifdef INCLUDE_PAX
ZERO_ARGS(pax,start);

Loading…
Cancel
Save