Commit graph

15244 commits

Author SHA1 Message Date
Dror Tirosh
b0b490f350 test paymaster validations 2024-07-06 15:15:05 +03:00
Dror Tirosh
6b7385d6a7 returnWithData, revertWithData
arbitrary-length return or revert
(currently, can't test it, since we check "error", and actual revert
data is hidden. will be probably needed when testing paymaster.)
2024-07-06 15:15:05 +03:00
Dror Tirosh
6e2e44f32b initial paymaster test flows 2024-07-06 15:15:05 +03:00
Dror Tirosh
d5c3069d71 pr issues 2024-07-06 15:12:44 +03:00
Dror Tirosh
49bc2a8570 added time-range tests 2024-07-01 14:23:48 +03:00
Dror Tirosh
702d157aef test nonce 2024-07-01 13:08:03 +03:00
Dror Tirosh
71e6d5ad1d refactor: test HandleRip7560Transactions
(instead of individual validation methods)
2024-06-30 15:41:10 +03:00
Dror Tirosh
ca86ce62a7 update tests, match return values to RIP 2024-06-30 14:38:27 +03:00
Dror Tirosh
e4914004fa check error 2024-06-25 12:09:45 +03:00
Dror Tirosh
12089354ca
refactor dev genesis (#10) 2024-06-25 09:54:13 +02:00
Alex Forshtat
99b5f3c08f WIP: Execute 'ApplyRip7560ValidationPhases' with 'rip7560Validation' tracer 2024-06-05 22:44:16 +02:00
Alex Forshtat
94156da356 WIP: create the 'debug_traceRip7560Validation' API 2024-06-04 20:30:51 +02:00
Dror Tirosh
8064306e4b
remove stub message (#8)
* remove stub message

was created just to create the vm.Txontext

* update
2024-06-04 20:25:16 +02:00
Alex Forshtat
726c7df365
Merge pull request #9 from eth-infinitism/merge-master-jun-4
Merge master jun 4
2024-06-04 20:24:22 +02:00
Dror Tirosh
270c9ad8cf Merge branch 'master' into RIP-7560-revision-2 2024-06-04 20:30:23 +03:00
Dror Tirosh
45ec501b4b
initial Process test (#7)
initial test for the full "Process" call, to handle mixed legacy and AA
transactions
2024-06-04 18:40:06 +02:00
Dror Tirosh
5ce41a95f0
merge master (#6) 2024-06-04 18:38:12 +02:00
rjl493456442
125fb1ff58
core/state: avoid data race (#29924) 2024-06-04 15:51:34 +03:00
SangIlMo
682ae838b2
internal/ethapi: recap higher args.Gas with block GasLimit in DoEstimateGas (#29738)
* internal/ethapi: recap higher args.Gas with block GasLimit in DoEstimateGas

* internal/ethapi: fix gas estimator capping code

* internal/ethapi: fix test

* fix goimports lint (remove space)

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-06-04 10:59:41 +03:00
Roy Crihfield
68c0ec0815
trie: iterate values pre-order and fix seek behavior (#27838)
This pull request fixes the pre-order trie traversal by defining 
a more accurate iterator order and path comparison rule.

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-06-04 11:17:26 +08:00
Steven Wang
adbbd8cd7b
core/state: prefetch account trie while starting a prefetcher (#29919)
Always prefetch the account trie while starting the prefetcher.

Co-authored-by: steven <steven@stevendeMacBook-Pro.local>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2024-06-04 11:12:24 +08:00
Dror Tirosh
507f4724a7 Test ApplyRip7560ValidationPhases (#5)
* initial UT for ApplyRip7560ValidationPhases

test ./tests/rip7560/

* refactor test context

* add some error tests

* returnData helper

* github actions for rip7560 tests

* update path

* refactor test utils

* refactor textContextBuilder

* remove prestate json.

* pr comments
2024-06-03 19:58:21 +03:00
Alex Forshtat
960cd7f64e Fix comment 2024-06-03 19:58:21 +03:00
Alex Forshtat
57b805187a Remove unused EOA-era function 2024-06-03 19:58:21 +03:00
Dror Tirosh
117561451b add paymaster, deployer optional params (#4) 2024-06-03 19:58:21 +03:00
Dror Tirosh
c29c3eb9bc remove StateTransition rip7560Frame bool
is msg.isRip7560Frame,
which allows usage of plain ApplyMessage
2024-06-03 19:58:21 +03:00
Dror Tirosh
19fc05d6c3 remove expectedRevenue 2024-06-03 19:58:21 +03:00
Alex Forshtat
28a79ec98d Fix issue: charging 'from' address (EntryPoint) for inner frames gas 2024-06-03 19:58:21 +03:00
Alex Forshtat
c6fc74b5f8 Remove BigNonce and NonceManager logic as it has moved to separate RIP 2024-06-03 19:58:21 +03:00
Alex Forshtat
75fd756a25 Remove code related to EOA-based RIP-7560 transactions 2024-06-03 19:58:21 +03:00
Alex Forshtat
bcca728d62 Set slot time to 3 seconds; check in "--dev" mode idea command 2024-06-03 19:58:21 +03:00
Alex Forshtat
f517bf70ba Create a separate 'cleanup.sh' command 2024-06-03 19:58:21 +03:00
Alex Forshtat
ba5ba437c7 TMP: check in ignored files 2024-06-03 19:58:21 +03:00
Alex Forshtat
034f2653e0 TMP: check in commands to run the validator and beacon chain node 2024-06-03 19:58:21 +03:00
Alex Forshtat
9da00cd8c0 WIP: manually bring over RIP-7560 related code; compiles but does not run 2024-06-03 19:58:21 +03:00
tianyeyouyou
a6751d6fc8
core/rawdb,eth/protocols,p2p: prealloc slice size (#29893)
chore: prealloc slice size
2024-06-03 15:51:04 +03:00
miles
7270cba25c
log: fix a typo (#29883)
logger
2024-06-03 15:50:24 +03:00
maskpp
b36c73813c
beacon/engine: prealloc capacity for map and slice (#29903)
* prealloc capacity for map and slice

* revert unnecessary change
2024-06-03 15:38:08 +03:00
HAOYUatHZ
50405e29b7
cmd/evm/internal/t8ntool: fix a typo (#29887)
* i8ntool: fix a typo

* cmd/evm/internal/t8ntool: fix typo typo

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-06-03 15:31:23 +03:00
rjl493456442
d38b88a5a1
core/state: introduce stateupdate structure (#29530)
* core/state: introduce stateUpate structure

* core/state: remove outdated function description

* core/state: address comments
2024-06-03 14:17:12 +03:00
Chris Ziogas
c9e0b3105b
Supply delta live tracer (#29347)
Introduces the first built-in live tracer. The supply tracer tracks ETH supply changes across blocks
and writes the output to disk. This will need to be enabled through CLI using the `--vmtrace supply` flag.

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2024-06-03 12:30:27 +02:00
Sina M
d4b81f0e08
CODEOWNERS: @s1na owns core/tracing (#29899)
Update CODEOWNERS
2024-05-31 18:40:09 +02:00
Péter Szilágyi
2613523cb5
miner: lower default min miner tip from 1 gwei to 0.001 gwei (#29895) 2024-05-31 10:39:40 +03:00
tianyeyouyou
bdc62f9beb
common/math: rename variable name int to n (#29890)
* chore: rename variable name `int` to `in`

* chore: rename variable name `int` to `n`
2024-05-31 10:25:49 +03:00
yujinpark
5d7d48fc3e
eth/gasprice: add comment to constant (#29892)
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-30 18:22:23 +02:00
SuiYuan
2262bf3415
crypto/secp256k1: change receiver variable name to lowercase (#29889) 2024-05-30 16:24:16 +02:00
SuiYuan
e015c1116f
ethdb: remove unnecessary function wrapper (#29888) 2024-05-30 21:23:04 +08:00
Felix Lange
6bb13e8e2b
eth/catalyst: ensure TxPool is synced in Fork (#29876)
This should fix an occasional test failure in ethclient/simulated.TestForkResendTx.
Inspection of logs revealed the cause of the failure to be that the txpool was not done
reorganizing by the time Fork is called.
2024-05-29 15:56:52 +02:00
hattizai
2f06c1e854
cmd/devp2p: fix node.TCP -> node.UDP (#29879) 2024-05-29 15:55:51 +02:00
Felix Lange
3fef53447f
build: upgrade to golangci-lint v1.59.0 (#29875) 2024-05-29 16:31:27 +03:00