From 840a96ca995ee5636d75faccb7eedd5f4d523217 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 29 Jul 2018 22:24:20 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 286c11b68..85efe34fa 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -60,7 +60,16 @@ uint256 DiceHashEntropy(uint256 &entropy,uint256 _txidpriv) // max 1 vout per tx vcalc_sha256(0,(uint8_t *)&_hentropy,_entropy,32); endiancpy((uint8_t *)&entropy,_entropy,32); endiancpy((uint8_t *)&hentropy,_hentropy,32); - } else fprintf(stderr,"shared secrets dont match\n"); + } + else + { + for (i=0; i<32; i++) + fprintf(stderr,"%02x",ssecret[i]); + fprintf(stderr," ssecret\n"); + for (i=0; i<32; i++) + fprintf(stderr,"%02x",ssecrets[i]); + fprintf(stderr," ssecret2 dont match\n"); + } return(hentropy); }