From 2e8e57576ec33d9cf24f250c227f7d11dd35aeb5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 25 Mar 2017 17:55:07 +0200 Subject: [PATCH] Test --- src/pow.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index 21be20cd0..a826aeb16 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -158,7 +158,6 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in if ( (height < 235300 || height >= 236000) && KOMODO_LOADINGBLOCKS == 0 && height > 188000 ) //&& )//186269, 182507&& komodo_chainactive(height) != 0 && nonzpkeys > 0 { - int32_t i; for (i=31; i>=0; i--) printf("%02x",((uint8_t *)&hash)[i]); printf(" hash vs "); @@ -176,7 +175,15 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in else fprintf(stderr,"skip return error height.%d loading.%d\n",height,KOMODO_LOADINGBLOCKS); } else fprintf(stderr,"skip height.%d loading.%d\n",height,KOMODO_LOADINGBLOCKS); } - fprintf(stderr,"POW ok for ht.%d\n",height); + if ( height > 240000 ) + { + for (i=31; i>=0; i--) + printf("%02x",((uint8_t *)&hash)[i]); + printf(" hash vs "); + for (i=31; i>=0; i--) + printf("%02x",((uint8_t *)&bnTarget)[i]); + fprintf(stderr," POW ok for ht.%d notaryid.%d\n",height,notaryid); + } return true; }