From 39fdf6130fd22050385f929594913ca1d948412b Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Jul 2019 06:01:08 -1100 Subject: [PATCH] Actually copy out privacy --- src/cc/CCutils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index 12f376179..d7d6ad8a8 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -451,9 +451,10 @@ bool Myprivkey(uint8_t myprivkey[]) if ( KOMODO_NSPV != 0 ) { vchSecret = DecodeSecret(NSPV_wifstr); + memcpy(myprivkey,vchSecret.begin(),32); for (i=0; i<32; i++) fprintf(stderr,"%02x",myprivkey[i]); - fprintf(stderr," myprivkey\n"); + fprintf(stderr," myprivkey %s\n",NSPV_wifstr); memset((uint8_t *)vchSecret.begin(),0,32); return true; }