Decoded wif 38 bytes

This commit is contained in:
jl777
2019-07-03 21:26:01 -11:00
parent 90b1bdbedc
commit dd0a99e2d9

View File

@@ -864,7 +864,7 @@ UniValue NSPV_spentinfo(uint256 txid,int32_t vout)
UniValue NSPV_login(char *wifstr)
{
UniValue result(UniValue::VOBJ); char coinaddr[64]; uint8_t data[64]; int32_t len;
if ( (len= bitcoin_base58decode(data,wifstr)) != 32 )
if ( (len= bitcoin_base58decode(data,wifstr)) != 38 )
{
result.push_back(Pair("result","error"));
result.push_back(Pair("error","invalid wif"));