cmd/puppeth: increase gaslimit during genesis block creation (#1851)

* increase gaslimit during genesis block creation for puppeth command

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Wanwiset Peerapatanapokin 2025-12-23 14:57:03 +04:00 committed by GitHub
parent 9a61a4958d
commit 4f89e3fb24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -332,7 +332,8 @@ func (w *wizard) makeGenesis() {
// Validator Smart Contract Code
pKey, _ := crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
addr := crypto.PubkeyToAddress(pKey.PublicKey)
contractBackend := backends.NewXDCSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
// Gas limit increased to 10,000,000,000 to support validator contract deployment with large masternode counts (>38).
contractBackend := backends.NewXDCSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 10_000_000_000, params.TestXDPoSMockChainConfig)
//lint:ignore SA1019 chainID is not determined at this time
transactOpts := bind.NewKeyedTransactor(pKey)