Commit Graph
11882 Commits
Author SHA1 Message Date
Ilnur Galiev 5702a4673f update VesionMeta 2020-11-04 21:43:37 +03:00
Ilnur Galiev 2c13ddc647 remove eip info from "version"-command 2020-11-04 21:41:20 +03:00
Ilnur Galiev 4d70c96dc3 use camelCase-style for json tags 2020-11-04 21:39:02 +03:00
Ilnur Galiev 08989db7d4 add infomation about eip version 2020-11-04 18:03:39 +03:00
Ilnur Galiev 26756e9dfd Fix transaction cost calculation 2020-11-04 17:58:42 +03:00
Ilnur Galiev 0903be3c1f fix baseFee values for TestCalcBaseFee 2020-11-04 01:32:07 +03:00
Ilnur Galiev 64f95c0691 add additional func computeBaseFee 2020-11-04 01:30:55 +03:00
Ilnur Galiev a77d34f5d0 fix transaction fields for test 2020-11-03 16:44:59 +03:00
Ilnur Galiev b7e2d0aaa0 fix CalcBaseFee 2020-11-03 16:44:08 +03:00
Ilnur Galiev bd1b100c2f fix fields for RPCTransaction 2020-11-03 16:21:15 +03:00
Ilnur Galiev 56c397578e fix gasprice calculation for StateTransition 2020-11-03 16:20:45 +03:00
Ilnur Galiev 967f8993bc update baseFee calculation 2020-10-28 19:05:36 +03:00
Ilnur Galiev 93343b26ce Change gasPremium to maxMinerBribePerGas 2020-10-28 19:05:15 +03:00
Ilnur Galiev 910c123b31 Update cost calculation for transaction 2020-10-28 18:28:14 +03:00
Ilnur Galiev 1caf8e9d60 update fields for eth api 2020-10-28 18:27:33 +03:00
Ilnur Galiev 1b59621f1b change transaction options, gasPremium to maxMinerBribePerGas 2020-10-26 14:53:52 +03:00
Ilnur 1bac35c4a7 rework of function CalcBaseFee (#24) v1.9.15-1559-0.0.1 2020-10-12 18:40:09 +03:00
Ian Norden 0757426001 negative guard; update unit tests 2020-09-03 13:56:58 -05:00
Ian Norden af1c710464 baseFee increment magnitude minimum of 1; -1 when parent gas usage == parent gas target 2020-08-28 20:17:22 -05:00
Ian Norden e91b52b400 testing basefee minimum tolerances 2020-08-27 22:05:17 -05:00
Ian Norden e7e35c15bf fix miner tests; exposes AddLocal errs to make debuging easier 2020-08-27 20:16:53 -05:00
Ian Norden 5622c6572d enforce 1559 total gas limit; don't allow BaseFee to drop to 0 2020-08-21 20:53:26 -05:00
Ian Norden 630cc0b4d6 add basefee under consensus in Clique engine 2020-07-13 17:21:44 -05:00
Ian Norden bbde950210 move yoloV1 after EIP blocks in config 2020-07-06 23:42:31 -05:00
Ian Norden 1fbb6ef444 unit tests for new basefee and gas target methods 2020-07-06 02:51:40 -05:00
Ian Norden 765f39aa7a revert back to using miner defined gas limit; calc baseFee using EIP1559_GAS_TARGET 2020-07-06 02:51:25 -05:00
Ian Norden 2e959683d2 remove per-tx gas limit 2020-07-06 01:01:18 -05:00
Ian Norden 85bd7ecad9 ensure basefee in genesis block is set if eip1559forkblocknumber=0 2020-07-03 21:58:39 -05:00
Ian Norden 28dcf09397 adjustments to get building and tests passing after rebase onto 1.9.15 2020-07-03 21:58:35 -05:00
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