From e73a3943b3ed52c994dcb2d89a08502204af524d Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 18 Sep 2017 15:57:40 +0200 Subject: [PATCH] Test --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 16d0df6da..a04dfcd18 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4495,7 +4495,11 @@ void static ProcessGetData(CNode* pfrom) { if (inv.type == MSG_BLOCK) { - fprintf(stderr,"send block %d\n",komodo_block2height(&block)); + uint256 hash; int32_t z; + hash = block.GetHash(); + for (z=0; z<32; z++) + printf("%02x",((uint8_t *)&hash)[z]); + fprintf(stderr," send block %d\n",komodo_block2height(&block)); pfrom->PushMessage("block", block); } else // MSG_FILTERED_BLOCK)