From 2018e12fdf9dca966f43a912a704fda37aae8f39 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 16 Mar 2018 22:17:45 +0200 Subject: [PATCH 1/2] Print BEER --- iguana/acsplit | 1 + iguana/dpow/dpow_network.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 iguana/acsplit diff --git a/iguana/acsplit b/iguana/acsplit new file mode 100755 index 000000000..6bf73d890 --- /dev/null +++ b/iguana/acsplit @@ -0,0 +1 @@ +curl --url "http://127.0.0.1:7776" --data "{\"coin\":\""${1}"\",\"agent\":\"iguana\",\"method\":\"splitfunds\",\"satoshis\":\"50000\",\"sendflag\":1,\"duplicates\":"${2}"}" diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 5f9ff1e63..1fd56fe23 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -1901,7 +1901,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru printf("mypaxcrc.%x\n",bp->paxwdcrc); } char str[65]; - if ( (rand() % 130) == 0 || strcmp(dp->symbol,"PIZZA") == 0 ) + if ( (rand() % 130) == 0 || strcmp(dp->symbol,"BEER") == 0 ) printf("%p ht.%d [%d] ips.%d %s NOTARIZE.%d matches.%d paxmatches.%d bestmatches.%d bestk.%d %llx recv.%llx sigmasks.(%llx %llx) senderind.%d state.%x (%x %x %x) MoM.%s [%d]\n",bp,bp->height,bp->myind,dp->numipbits,dp->symbol,bp->minsigs,matches,paxmatches,bestmatches,bp->bestk,(long long)bp->bestmask,(long long)bp->recvmask,(long long)(bp->bestk>=0?bp->destsigsmasks[bp->bestk]:0),(long long)(bp->bestk>=0?bp->srcsigsmasks[bp->bestk]:0),senderind,bp->state,bp->hashmsg.uints[0],bp->desttxid.uints[0],bp->srctxid.uints[0],bits256_str(str,bp->MoM),bp->MoMdepth); } } From 0089721ea3127f6b81f6771b115c49db2abe94d5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 16 Mar 2018 22:46:58 +0200 Subject: [PATCH 2/2] Test --- iguana/dpow/dpow_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index a610dad8c..3b500ba50 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -239,7 +239,7 @@ int32_t dpow_hasnotarization(struct supernet_info *myinfo,struct iguana_info *co bits256 dpow_calcMoM(uint32_t *MoMdepthp,struct supernet_info *myinfo,struct iguana_info *coin,int32_t height) { - bits256 MoM,blockhash,merkle,*merkles; cJSON *blockjson; int32_t ht,maxdepth = 8192,MoMdepth = 0; + bits256 MoM,blockhash,merkle,*merkles; cJSON *blockjson; int32_t ht,maxdepth = 65536,MoMdepth = 0; memset(MoM.bytes,0,sizeof(MoM)); blockhash = dpow_getblockhash(myinfo,coin,height); if ( (blockjson= dpow_getblock(myinfo,coin,blockhash)) != 0 )