mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
don't try to decode invalid encoded ext keys
This commit is contained in:
parent
8d2af54ecc
commit
6f8b6d339b
@ -146,7 +146,10 @@ public:
|
|||||||
|
|
||||||
K GetKey() {
|
K GetKey() {
|
||||||
K ret;
|
K ret;
|
||||||
|
if (vchData.size() == Size) {
|
||||||
|
//if base58 encouded data not holds a ext key, return a !IsValid() key
|
||||||
ret.Decode(&vchData[0]);
|
ret.Decode(&vchData[0]);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user