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

[PAN-3097] Use a BigInteger for Network ID #1891

Merged
merged 2 commits into from
Aug 28, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Aug 28, 2019

PR description

Internally we use a BigInteger for ChainID, but currently use an int for
NetworkID. Because the default for NetworkID is the same value as ChainID there
are some chains where this will be very problematic, and there is at least
one other long-living chain outside the Int32 value range.

This is a large pull request because the type is baked fairly deep into some of
the other APIs and very much in the test code testing the type.

Interally we use a BigInteger for ChainID, but currently use an int for
NetworkID.  Because the default for NetworkID is the same value as ChainID there
are some chains where this will be very problematic, and there is at least
one other long-living chain outside the Int32 value range.

This is a large changelist because the type is baked fairly deep into some of
the other APIs and very much in the test code testing the type.
Copy link
Contributor

@AbdelStark AbdelStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@shemnon shemnon merged commit 3ca6605 into PegaSysEng:master Aug 28, 2019
pscott pushed a commit to pscott/pantheon that referenced this pull request Sep 2, 2019
Interally we use a `BigInteger` for ChainID, but currently use an `int` for
NetworkID.  Because the default for NetworkID is the same value as ChainID there
are some chains where this will be very problematic, and there is at least
one other long-living chain outside the 32 bit int value range.

This is a large commit because the type is baked fairly deep into some of
the other APIs and very much in the test code testing the type.
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.

2 participants