diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index a321e41ff..f336a88e6 100755 --- a/iguana/iguana_notary.c +++ b/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" diff --git a/includes/iguana_apideclares.h b/includes/iguana_apideclares.h index c9380cf20..71af392cc 100755 --- a/includes/iguana_apideclares.h +++ b/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);