simblock icon indicating copy to clipboard operation
simblock copied to clipboard

Update Miner Hashrate Data Type from int to long

Open tsuyohase opened this issue 7 months ago • 0 comments

Description

This pull request updates the miner's hashrate data type from int to long to accommodate larger values and prevent potential overflow issues.

Changes Made

  • Modified the type of hashrate data in the genMiningPower and getGenesisMinter functions in Main.java.

Note

In the getGenesisMinter method, random.nextDouble is used internally, which may cause precision loss. This should be taken into account when dealing with very high hashrate values.

tsuyohase avatar Jul 04 '24 12:07 tsuyohase