From 7cbb498bc1dc41b6d607b4e01920328ba0019a2d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 14 Oct 2016 15:38:16 -0300 Subject: [PATCH] test --- crypto777/bitcoind_RPC.c | 5 ++++- iguana/dpow/dpow_fsm.c | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/crypto777/bitcoind_RPC.c b/crypto777/bitcoind_RPC.c index 741772f24..7d95e40a0 100755 --- a/crypto777/bitcoind_RPC.c +++ b/crypto777/bitcoind_RPC.c @@ -88,7 +88,10 @@ char *post_process_bitcoind_RPC(char *debugstr,char *command,char *rpcstr,char * } } else if ( (error->type&0xff) != cJSON_NULL || (result->type&0xff) != cJSON_NULL ) - printf("<<<<<<<<<<< bitcoind_RPC: %s post_process_bitcoind_RPC (%s) error.%s\n",debugstr,command,rpcstr); + { + if ( strcmp(command,"signrawtransaction") != 0 ) + printf("<<<<<<<<<<< bitcoind_RPC: %s post_process_bitcoind_RPC (%s) error.%s\n",debugstr,command,rpcstr); + } free(rpcstr); } else retstr = rpcstr; free_json(json); diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 615c7791c..c79f116e8 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -90,8 +90,8 @@ void dpow_datahandler(struct supernet_info *myinfo,uint32_t channel,uint32_t hei printf("<<<<<<<<<< %s from.%ld got ht.%d %s/v%d\n",bp->coin->symbol,((long)ep - (long)bp->notaries)/sizeof(*ep),height,bits256_str(str,E.prev_hash),E.prev_vout); } } - if ( 0 && flag == 0 && bp != 0 ) - printf("UTXO.%d hashmsg.(%s) txid.(%s) v%d\n",height,bits256_str(str,hashmsg),bits256_str(str2,E.prev_hash),vout); + //if ( 0 && flag == 0 && bp != 0 ) + printf("UTXO.%d hashmsg.(%s) txid.(%s) v%d\n",height,bits256_str(str,hashmsg),bits256_str(str2,E.prev_hash),E.prev_vout); } else if ( channel == DPOW_SIGCHANNEL || channel == DPOW_SIGBTCCHANNEL ) { @@ -120,7 +120,7 @@ void dpow_datahandler(struct supernet_info *myinfo,uint32_t channel,uint32_t hei } else printf("%s pubkey mismatch for senderind.%d %llx vs %llx\n",bp->coin->symbol,dsig.senderind,*(long long *)dsig.senderpub,*(long long *)bp->notaries[dsig.senderind].pubkey); } else printf("%s illegal lastk.%d or senderind.%d or senderpub.%llx\n",bp->coin->symbol,dsig.lastk,dsig.senderind,*(long long *)dsig.senderpub); } else printf("couldnt find senderind.%d height.%d channel.%x\n",dsig.senderind,height,channel); - if ( 0 && bp != 0 ) + //if ( 0 && bp != 0 ) printf(" SIG.%d sender.%d lastk.%d mask.%llx siglen.%d recv.%llx\n",height,dsig.senderind,dsig.lastk,(long long)dsig.mask,dsig.siglen,(long long)bp->recvmask); } else if ( channel == DPOW_TXIDCHANNEL || channel == DPOW_BTCTXIDCHANNEL )