Commit Graph
11853 Commits
Author SHA1 Message Date
Ian Norden 890ffecd86 add guard to backend to get remaining tests passing; temporary while we set EIP1559 params by CLI 2020-07-03 14:37:43 -05:00
Ian Norden 3897471493 cli flags must be lowercase and cli help already prints defaults 2020-07-03 14:37:43 -05:00
Ian Norden d6b9e222ab make EIP1559 params CLI configurable for testing 2020-07-03 14:37:43 -05:00
Ian Norden 86f57ee036 enforce eip1559 gasPrice >= baseFee; update MaxGasEIP1559 to 20 mil 2020-07-03 14:36:06 -05:00
Ian Norden fa03286da0 PR review refactoring and bug fix 2020-07-03 14:36:06 -05:00
Ian Norden 5d0a9cc393 PR review fixes 2020-07-03 14:36:06 -05:00
Ian Norden d7aa9ccf9f misc fixes 2020-07-03 14:36:06 -05:00
Ian Norden 8ff850db74 gas oracle work 2020-07-03 14:36:06 -05:00
Ian Norden 15e07495cd per-tx gas limit under consensus 2020-07-03 14:35:16 -05:00
Ian Norden 177a17e457 enforce per-tx gas limit in tx_pool 2020-07-03 14:35:16 -05:00
Ian Norden 8fab6a25f4 fix VerifyEIP1559BaseFee so that ethash engine enforces exact BaseFee value consensus 2020-07-03 14:33:21 -05:00
Ian Norden 525f2a3cb7 change TARGET_GASUSED from 8m to 10m 2020-07-03 14:33:21 -05:00
Ian Norden 4d414e40c8 gas oracle work 2020-07-03 14:33:21 -05:00
Ian Norden 6575396460 fixes after rebase 2020-07-03 14:32:08 -05:00
Ian Norden 40ce5bf509 blockchain_test 2020-07-03 14:30:48 -05:00
Ian Norden caec005c40 tx_pool_tests and benchmarks for EIP1559 2020-07-03 14:30:48 -05:00
Ian Norden 22b9069142 transaction.Cost() needs to be aware of BaseFee to calculate cost for EIP1559 trxs; tx_list.go needs to use derived GasPrice for EIP1559 transactions and priceHeap needs to be aware of BaseFee to sort by both legacy and EIP1559 prices 2020-07-03 14:30:48 -05:00
Ian Norden 23a1a81fb4 mobile feeCap and gasPremium => *BigInt instead of *big.Int; add getter and setter methods 2020-07-03 14:30:48 -05:00
Ian Norden 1e2c52c62e begin consensus tests 2020-07-03 14:30:48 -05:00
Ian Norden 27e55ff317 IsEWASM after IsEIP1559 forks in config so we don't need EWASM engine for EIP1559 tests; gasPrice in tx needs to not be required 2020-07-03 14:30:48 -05:00
Ian Norden 2b2bcf4902 adjust verifyHeaders to validate GasLimit as calculated by new CalcGasLimitAndBaseFee function 2020-07-03 14:26:02 -05:00
Ian Norden 35f459ce20 worker.commitTransaction() calc ratio using MaxGasEIP1559 instead of header.GasLimit if trx is of type 1559 2020-07-03 14:26:02 -05:00
Ian Norden ebc57346b0 simplify calculations in state_transition.go; add guards and derive gasPrice in TxPool.validateTx 2020-07-03 14:26:02 -05:00
Ian Norden 9c33f94f40 apply gas pool/trx execution changes across pkgs 2020-07-03 14:26:02 -05:00
Ian Norden 3f23513ef4 gas pool/trx execution changes to core 2020-07-03 14:26:02 -05:00
Ian Norden 2193a29246 apply changes across all pkgs 2020-07-03 14:26:02 -05:00
Ian Norden 910f8fb071 tx Enode/DecodeRLP methods 2020-07-03 14:26:02 -05:00
Ian Norden 54f71abdbc ChainConfig changes, compatibility checks, protocol params 2020-07-03 14:26:02 -05:00
Ian Norden 6aefe2a3e9 fix trx pool gas limits; cleanup commitTransactions() 2020-07-03 14:11:11 -05:00
Ian Norden 865383a9cb TxByPrice.Less() adjusted to work for both legacy and derived EIP1559
gas price; modify tests
2020-07-03 14:07:49 -05:00
Ian Norden b0047a2dea EIP1559 updates for SendTxArgs in signer pkg 2020-07-03 14:07:49 -05:00
Ian Norden 00cdc5b3f0 blockchain_test 2020-07-03 14:07:49 -05:00
Ian Norden a571adb74e worker_test and fixes 2020-07-03 14:06:40 -05:00
Ian Norden d4f9536e5b run gencodec on new genesis struct 2020-07-03 14:06:40 -05:00
Ian Norden b695a61f85 block_validator_test and fixes 2020-07-03 14:06:40 -05:00
Ian Norden a8d0ffa99e fix trx decoding; test 2020-07-03 14:06:40 -05:00
Ian Norden 953b771f9f tx_pool_tests and benchmarks for EIP1559 2020-07-03 14:06:40 -05:00
Ian Norden 14708975a7 transaction.Cost() needs to be aware of BaseFee to calculate cost for EIP1559 trxs; tx_list.go needs to use derived GasPrice for EIP1559 transactions and priceHeap needs to be aware of BaseFee to sort by both legacy and EIP1559 prices 2020-07-03 13:43:34 -05:00
Ian Norden 7c11f2b411 finish chain_maker_tests for EIP1559 2020-07-03 13:43:34 -05:00
Ian Norden 829602b35e mobile feeCap and gasPremium => *BigInt instead of *big.Int; add getter and setter methods 2020-07-03 13:43:34 -05:00
Ian Norden 7441cf4eb3 fix guards in simulated.callContract so that bind_tests work 2020-07-03 13:43:34 -05:00
Ian Norden 6067902aab begin consensus tests 2020-07-03 13:43:34 -05:00
Ian Norden 7eaf105538 evm needs to handle nil GasPrice; genesis needs to handle BaseFee 2020-07-03 13:42:38 -05:00
Ian Norden 313957776d IsEWASM after IsEIP1559 forks in config so we don't need EWASM engine for EIP1559 tests; gasPrice in tx needs to not be required 2020-07-03 13:42:37 -05:00
Ian Norden 7d4bcc3cbf adjust verifyHeaders to validate GasLimit as calculated by new CalcGasLimitAndBaseFee function 2020-07-03 13:32:55 -05:00
Ian Norden 633f61e260 initialization => activation; calcGasLimitAndBaseFee doesn't need gasFloor and gasCeil 2020-07-03 13:32:55 -05:00
Ian Norden 612222b682 use new CalcGasLimitAndBaseFee function 2020-07-03 13:32:55 -05:00
Ian Norden cfc331ffd4 CalcGasLimitAndBaseFee function 2020-07-03 13:32:55 -05:00
Ian Norden 7f02219a59 modify ethash.SealHash() 2020-07-03 13:32:55 -05:00
Ian Norden 31668e7e14 modify verifyHeader() for ethash 2020-07-03 13:32:55 -05:00