This commit is contained in:
Jeep Sun 2017-11-25 06:19:22 +00:00 committed by GitHub
commit a8dc686dc8
1 changed files with 3 additions and 1 deletions

View File

@ -40,8 +40,10 @@ func Base58Decode(input []byte) []byte {
zeroBytes := 0
for _, b := range input {
if b == 0x00 {
if b == b58Alphabet[0] {
zeroBytes++
} else {
break
}
}