diff options
Diffstat (limited to 'src/base58.h')
-rw-r--r-- | src/base58.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base58.h b/src/base58.h index d535491bb0..90014b9496 100644 --- a/src/base58.h +++ b/src/base58.h @@ -146,7 +146,10 @@ public: K GetKey() { K ret; - ret.Decode(&vchData[0]); + if (vchData.size() == Size) { + //if base58 encouded data not holds a ext key, return a !IsValid() key + ret.Decode(&vchData[0]); + } return ret; } |