lian / bitcoin-ruby

bitcoin utils and protocol in ruby.
Other
922 stars 322 forks source link

Rescue decode_segwit_address and return nil instead #248

Closed tluthra closed 6 years ago

tluthra commented 6 years ago

Commit f62bd3998cb8805373739f3fa771d08e4959798e introduced the decode_segwit_address as a step in determining the valid_address? of an address. Previously the contract was for decode_base58 to rescue all errors and return nil, but that wasn't maintained for segwit addresses. This simply keeps the interface the same.