Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
96babdff6a
  1. 4
      iguana/SuperNET.c
  2. 2
      iguana/iguana_payments.c

4
iguana/SuperNET.c

@ -778,7 +778,7 @@ char *SuperNET_p2p(struct iguana_info *coin,struct iguana_peer *addr,int32_t *de
return(0);
} else { char str[65]; printf("GENESIS recv %s\n",bits256_str(str,senderpub)); }
} else printf("GENESIS recv GENESIS\n");
} else printf("decrypted mypriv.%llx senderpub.%llx\n",(long long)privkey.txid,(long long)senderpub.txid);
} //else printf("decrypted mypriv.%llx senderpub.%llx\n",(long long)privkey.txid,(long long)senderpub.txid);
//for (i=0; i<msglen; i++)
// printf("%02x ",msgbits[i]);
//printf("DECRYPTED %d\n",msglen);
@ -795,7 +795,7 @@ char *SuperNET_p2p(struct iguana_info *coin,struct iguana_peer *addr,int32_t *de
else if ( addr->validpub > 0 )
addr->validpub >>= 1;
else addr->validpub--;
printf("validpub.%d: %x vs %x priv.%llx senderpub.%llx\n",addr->validpub,checkc,othercheckc,(long long)myinfo->privkey.txid,(long long)senderpub.txid);
//printf("validpub.%d: %x vs %x priv.%llx senderpub.%llx\n",addr->validpub,checkc,othercheckc,(long long)myinfo->privkey.txid,(long long)senderpub.txid);
}
maxdelay = juint(json,"maxdelay");
//if ( 1 && jstr(json,"method") != 0 && strcmp(jstr(json,"method"),"getpeers") != 0 )

2
iguana/iguana_payments.c

@ -410,7 +410,7 @@ char *iguana_rawtxissue(struct supernet_info *myinfo,struct iguana_info *coin,cJ
{
struct rawtx_queue *ptr; struct iguana_peer *addr; uint8_t spendscript[IGUANA_MAXSCRIPTSIZE]; int32_t i,n,spendlen,delay = 0; cJSON *reqjson,*valsobj,*txobj = 0; uint32_t rawtxtag; char *rawtx = 0; double expiration;
*vinsp = 0;
if ( coin->VALIDATENODE != 0 || coin->RELAYNODE != 0 )
if ( 0 && (coin->VALIDATENODE != 0 || coin->RELAYNODE != 0) )
{
if ( (txobj= bitcoin_txcreate(coin,locktime)) != 0 )
{

Loading…
Cancel
Save