Post
Topic
Board Announcements (Altcoins)
Merits 1 from 1 user
Re: [ANN] Nxt :: descendant of Bitcoin
by
jmangold
on 18/05/2018, 09:46:30 UTC
⭐ Merited by d5000 (1)
Hey, I'm just reading some of the nxt-Code and testing a little bit.
I saw, that there is a maximum of coin-balance in constants.java: MAX_BALANCE_NXT = 1000000000; (nine zeros).
In addition there is one nxt defined: ONE_NXT = 100000000; (eight zeros).

The sum of the amounts of genesisaccounts must not exceed the MAX_BALANCE_NXT.

If I increment the MAX_BALANCE_NXT to  1.000.000.000.000 (twelve zeros) and in addition a new genesis account with the same (amount + the 8 zeros of the ONE_NXT),
I get a
Code:
Long.NumberFormatException
.

Why?

Because
Code:
Long.MAX_VALUE =  9223372036854775807
?

Is there a possibility to step over the limit?

(Sorry if this not the right topic, I dont get into the official nxtforum.org, because no admin accepted my join-request yet).