mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
* [wip] enable/disable precompile upgrades * e2e json * e2e genesis * off by one * omitEmpty -> omitempty * custom json handling to avoid nested map * simplify the config * tx_pool: fix bug in calling IsTxAllowList * precompile: add disable helpers * plugin/evm: tentative UT * precompile: move test helpers to their own file * vm_test: fix gas / test * fix copy/paste issue * test fixes * backward compatibility * cleanup * comment * refactor: group NetworkUpgrades in struct * rearrange Add/Disable helper methods * move ethereum upgrades to chainConfig * tx_gossiping_test: include eth upgrades * vm_test: check for ErrSenderAddressNotAllowListed * consensus/dummy: add clock * TestTxAllowListDisablePrecompile: use clock * vm_test.go: issueAndAccept helper / fixes * vm_test: remove sleep * support multiple activations/deactivations * fix comment * nit: simplify loop * fix * golang interfaces nil * add some unit tests * tests and fixes * shutdown vm in test * fix flakiness (AddRemoteSync) * separate upgradeBytesConfig to its own struct * add back wspace * remove test helpers * fix persitedUpgradeBytes * make changes to embedding structure * switch from getter to using an enum * nit: fix strings * upgrades_config.go -> precompile_config.go * core: handle upgrade bytes in core.Blockchain * nit: remove argument * nit: less diff * add equal check for StatefulPrecompileConfig * split test * upgrade_bytes_config_test -> upgrade_config_test * revert AddRemoteSync -> addRemoteSync * e2e tests: bump avalanche versions * nit: remove args from run.sh in comments * Upgrade nits (#167) * Nits * Nits * Remove comment * Fix * Fixes * upgradeBytes: verify increasing timestamps accross keys (#168) * verify increasing timestamps accross keys * nicer comparison * Update plugin/evm/vm_upgrade_bytes_test.go Co-authored-by: aaronbuchwald <[email protected]> * unmarshal bytes to temp var * test: reuse ctx * test: add disable same time as enable test case * merge (Read,Write) UpgradeConfig w/ ChainConfig * test disable/enable independent of timestamp * rawdb: fix metadata accounting of upgradeConfig * verify etherbase before genesis / minimize diff * nit: BigNumEqual nil checks shortened version * convert nested configs to json in String() (#175) * Update plugin/evm/vm.go Co-authored-by: Ceyhun Onur <[email protected]> Co-authored-by: aaronbuchwald <[email protected]>