This commit is contained in:
jl777
2019-07-06 07:26:36 -11:00
parent 6ebbdf8303
commit b587a18dd3
2 changed files with 3 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ UniValue getnewaddress(const UniValue& params, bool fHelp)
#else
randombytes_buf(priv32,sizeof(priv32));
#endif
key.Set(&priv32[0],&priv[32], true);
key.Set(&priv32[0],&priv32[32], true);
CPubKey pubkey = key.GetPubKey();
CKeyID vchAddress = pubkey.GetID();
return(EncodeDestination(vchAddress));