Fix long overflow in Block.distributeBlockRewardToQoraHolders()

Sadly no native 128bit integer support in Java 11 so resorting to using
BigInteger.

Added/improved unit tests to cover.
This commit is contained in:
catbref
2020-05-07 16:37:40 +01:00
parent c7c419a3cd
commit 6d8f41ab05
5 changed files with 120 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-qora-holder.json",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0
}