diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 9f056baee..640d32109 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -277,6 +277,13 @@ TWO_STRINGS(komodo,passthru,function,hex) else return(clonestr("{\"error\":\"KMD not active, start in bitcoind mode\"}")); } +THREE_STRINGS(iguana,passthru,asset,function,hex) +{ + if ( asset != 0 && (coin= iguana_coinfind(asset)) != 0 ) + return(dpow_passthru(coin,function,hex)); + else return(clonestr("{\"error\":\"assetchain not active, start in bitcoind mode\"}")); +} + STRING_ARG(dpow,pending,fiat) { struct dpow_info *dp; char base[64]; int32_t i; diff --git a/includes/iguana_apideclares.h b/includes/iguana_apideclares.h index ac0bc0277..fe267a9d5 100755 --- a/includes/iguana_apideclares.h +++ b/includes/iguana_apideclares.h @@ -18,6 +18,7 @@ TWO_STRINGS(iguana,dpow,symbol,pubkey); STRING_ARG(dpow,active,maskhex); TWOINTS_AND_ARRAY(dpow,ratify,minsigs,timestamp,ratified); ZERO_ARGS(dpow,cancelratify); +THREE_STRINGS(iguana,passthru,asset,function,hex); TWO_STRINGS(zcash,passthru,function,hex); TWO_STRINGS(komodo,passthru,function,hex);