Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Read address version as unsigned integer #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Read address version as unsigned integer #137

wants to merge 1 commit into from

Conversation

gabmontes
Copy link

@gabmontes gabmontes commented Apr 21, 2017

This change prevents large address versions (larger than 0x7fffffff) to be read as negative numbers and failing to lookup the correct network from the Networks map.

Large address versions could eventually be found in custom network definitions. We had do create a custom network and address version resulted in a large numbers in order for the HD private/public keys to have the initial chars as desired. As the library read those large number as negative, it was unable to find the network in the networkMaps for certain operations.

That prevents large address versions to be read as negative numbers and
failing to lookup the correct network from the Networks map.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant