In setting up a new test cluster, @joeaba encountered a capitalization overflow while taking an accounts hash prior to creating a snapshot. The full backtrace / some relevant discussion here on Discord:
Note that 500M of the 600M in capitalization stems from an item discovered in https://github.com/solana-labs/solana/pull/35266. Technically, we don't need/want those accounts in a development cluster, but even with 600M capitalization, I don't think we should have overflowed.
Proposed Solution
Recreate the problem and figure out why the overflow happened. Technically, minting too many lamports could cause an overflow. But, even with those extra accounts that got us up to 600M capitalization, we should still have been operating at about 1/30th of u64::MAX:
Problem
In setting up a new test cluster, @joeaba encountered a capitalization overflow while taking an accounts hash prior to creating a snapshot. The full backtrace / some relevant discussion here on Discord:
The cluster was created with the following
solana-genesis
command:The creation of the above genesis file yielded the following capitalization:
However, here are the lamports that we explicitly added:
Note that 500M of the 600M in capitalization stems from an item discovered in https://github.com/solana-labs/solana/pull/35266. Technically, we don't need/want those accounts in a development cluster, but even with 600M capitalization, I don't think we should have overflowed.
Proposed Solution
Recreate the problem and figure out why the overflow happened. Technically, minting too many lamports could cause an overflow. But, even with those extra accounts that got us up to 600M capitalization, we should still have been operating at about 1/30th of u64::MAX:
Joe mentioned that the bootstrap validator was reproducing this. Steps to reproduce:
solana-keygen
to create a bunch of keys to pass to abovesolana-genesis
invocationaccounts.json
file and pass it via--primordial-accounts-file
: