From c4b2b44857254251de90299ba33215ad8a2cc105 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Oct 2016 16:42:37 -0300 Subject: [PATCH] test --- iguana/dPoW.h | 2 +- iguana/iguana_notary.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/dPoW.h b/iguana/dPoW.h index c58e9fb3f..b58d9017e 100755 --- a/iguana/dPoW.h +++ b/iguana/dPoW.h @@ -16,7 +16,7 @@ #ifndef INCLUDE_DPOW_H #define INCLUDE_DPOW_H -#define DPOW_M(bp) (4) // (((bp)->numnotaries >> 1) + 1) +#define DPOW_M(bp) (5) // (((bp)->numnotaries >> 1) + 1) #define DPOW_VERSION 0x01 #define DPOW_UTXOSIZE 10000 diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 5b907e21b..3bfd0162d 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -699,6 +699,7 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_block *bp,uint32_t { bp->signedtxid = dpow_notarytx(bp->signedtx,&numsigs,bp->coin->chain->isPoS,bp,bp->opret_symbol); printf("%s numsigs.%d signedtx.(%s)\n",bits256_str(str,bp->signedtxid),numsigs,bp->signedtx); + bp->state = 1; if ( bits256_nonz(bp->signedtxid) != 0 && numsigs == DPOW_M(bp) ) { if ( (retstr= dpow_sendrawtransaction(myinfo,bp->coin,bp->signedtx)) != 0 ) @@ -802,7 +803,7 @@ void dpow_datahandler(struct supernet_info *myinfo,struct dpow_block *bp,uint32_ } } else printf("%s beacon 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); + } //else printf("couldnt find senderind.%d height.%d channel.%x\n",dsig.senderind,height,channel); if ( 0 && flag == 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); }