jl777 8 years ago
parent
commit
31478232d5
  1. 1
      iguana/iguana_notary.c
  2. 1
      iguana/m_notary

1
iguana/iguana_notary.c

@ -225,6 +225,7 @@ TWO_STRINGS(iguana,dpow,symbol,pubkey)
return(clonestr("{\"error\":\"cant dPoW same coin again\"}"));
}
decode_hex(dp->minerkey33,33,pubkey);
printf("DPOW with pubkey.(%s)\n",pubkey);
if ( bitcoin_pubkeylen(dp->minerkey33) <= 0 )
return(clonestr("{\"error\":\"illegal pubkey\"}"));
strcpy(dp->symbol,symbol);

1
iguana/m_notary

@ -11,6 +11,7 @@ gcc -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lnanomsg -lcurl -lssl -
myip=`curl -s4 checkip.amazonaws.com`
source pubkey.txt
echo make sure pubkey is ($pubkey)
sleep 4
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}"

Loading…
Cancel
Save