diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index d19450447..0a48fe92e 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -1092,8 +1092,17 @@ void iguana_dPoWupdate(struct supernet_info *myinfo) TWO_STRINGS(iguana,dpow,symbol,pubkey) { + char *retstr; if ( myinfo->NOTARY.RELAYID < 0 ) - return(clonestr("{\"error\":\"must be running as notary node\"}")); + { + if ( (retstr= basilisk_addrelay_info(myinfo,0,(uint32_t)calc_ipbits(myinfo->ipaddr),myinfo->myaddr.persistent)) != 0 ) + { + printf("addrelay.(%s)\n",retstr); + free(retstr); + } + if ( myinfo->NOTARY.RELAYID < 0 ) + return(clonestr("{\"error\":\"must be running as notary node\"}")); + } if ( myinfo->DPOW.symbol[0] != 0 ) return(clonestr("{\"error\":\"cant dPoW more than one coin at a time\"}")); if ( pubkey == 0 || pubkey[0] == 0 || is_hexstr(pubkey,0) != 66 )