-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable/disable precompiles through upgradeBytes (#148)
* [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]>
- Loading branch information
1 parent
43a4db6
commit 1a02bee
Showing
32 changed files
with
1,528 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.