Browse Source

don't try to decode invalid encoded ext keys

0.13
Jonas Schnelli 10 years ago
parent
commit
6f8b6d339b
  1. 3
      src/base58.h

3
src/base58.h

@ -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…
Cancel
Save