From 559c2cf8ffa1b14f57e641893f862ad160443760 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 6 Jul 2019 03:38:51 -1100 Subject: [PATCH] myprivkey --- src/cc/CCutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index 699b84727..3c67b4068 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -443,7 +443,7 @@ bool Myprivkey(uint8_t myprivkey[]) char coinaddr[64],checkaddr[64]; std::string strAddress; char *dest; int32_t i,n; CBitcoinAddress address; CKeyID keyID; CKey vchSecret; uint8_t buf33[33]; if ( KOMODO_NSPV != 0 ) { - memcpy(myprivkey,NSPV_key.vch,32); + NSPV_key.SetKey32(myprivkey); return true; } if ( Getscriptaddress(coinaddr,CScript() << Mypubkey() << OP_CHECKSIG) != 0 )