Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block._LARGEST_HASH not compatible with Dart2 #16

Open
RdeWilde opened this issue Feb 25, 2018 · 0 comments
Open

Block._LARGEST_HASH not compatible with Dart2 #16

RdeWilde opened this issue Feb 25, 2018 · 0 comments

Comments

@RdeWilde
Copy link

The _LARGEST_HASH property on the Block-class doesn't work on Dart2 because integers have been limited to 64 bits. Potential replacement could be the new BigInt-class in Dart2. This may require refactoring.

static final BigInteger _LARGEST_HASH = (BigInteger.ONE << 256);
https://github.com/dartcoin/dart-bitcoin/blob/master/lib/src/core/block.dart#L73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant