Commit Graph

14161 Commits

Author SHA1 Message Date
b091f3382e Refactor and add comments. 2023-06-22 13:32:57 -05:00
2bf4c91269 Fix mock 2023-06-22 12:54:50 -05:00
3ad2bcd9a0 Move the SQL statement. 2023-06-22 11:59:01 -05:00
352b6d0298 Add flags. 2023-06-22 11:57:57 -05:00
ab7e807afe Remove file 2023-06-22 01:35:15 -05:00
95942c335c Backfill gaps in the recent past when statediffing head. 2023-06-22 01:34:48 -05:00
caa685321a
367: Check if the statediff is already in progress or completed. (#392)
* Check if the statediff is already in progress or completed.

* Update mock

* Add comments.
2023-06-01 13:21:33 -05:00
bac14cc48a
367: Fix deferred rollback on error. (#391)
* Fix rollback call on error.

* Skip the pointers.
2023-05-31 19:36:36 -05:00
Ian Norden
71f764bafa
Merge pull request #388 from cerc-io/v1.11.6-statediff-5.0.5
bump meta version
2023-05-19 10:51:11 -05:00
Ian Norden
dd1d8493a8
Merge pull request #389 from cerc-io/roy/v5-dev-1.11.6
Patch for concurrent iterator & others (onto v1.11.6)
2023-05-19 10:49:07 -05:00
i-norden
e6e2acb073 bump meta version 2023-05-18 12:47:31 -05:00
79a7643a28 concurrent iterator: pass a constructor method instead of state.Trie
This allows us to use our alt trie implementation
2023-05-19 00:59:19 +08:00
i-norden
3555790e76 Small fixes
replace new(trie.Trie)

reduce debug noise

patch postgres config - add driver, rename DefaultConfig => TestConfig
2023-05-19 00:59:19 +08:00
Ian Norden
368f3e09fc
Merge pull request #384 from cerc-io/v1.11.6-statediff-5.0.5
fix isWatchedAddress and isValidPath usage
2023-05-18 09:35:47 -05:00
i-norden
ea6dfb8fa5 fix isWatchedAddress and isValidPath usage 2023-05-17 08:15:38 -05:00
Ian Norden
643dc6807b
Merge pull request #382 from cerc-io/v1.11.6-statediff-5.0.4
update ipld-eth-db version
2023-05-15 11:06:31 -05:00
i-norden
c70b1cf0b1 update ipld-eth-db version 2023-05-15 10:40:17 -05:00
Ian Norden
0ebcd5f4af
Merge pull request #380 from cerc-io/v1.11.6-statediff-5.0.4
#379 for v1.11.6
2023-05-15 07:29:50 -05:00
i-norden
4c058e515e bump meta version 2023-05-14 14:41:44 -05:00
i-norden
30ab52a6a6 construct leafkey instead of calling it.LeafKey() (to avoid panics when we pass in a subtrie iterator at an odd position in the trie) 2023-05-14 14:41:13 -05:00
Ian Norden
fd7cacd437
Merge pull request #368 from cerc-io/ian/v5_dev
expose parent path from trie.Iterator
2023-05-11 06:54:48 -05:00
i-norden
911b86ee8b bump meta version 2023-05-10 20:26:57 -05:00
i-norden
79bd86501b expose parent path from iterator 2023-05-10 20:24:17 -05:00
Ian Norden
fe3e3b1119
Merge pull request #372 from cerc-io/v1.11.6-statediff-5.0.2
Statediff version meta
2023-05-02 22:19:43 -05:00
i-norden
35b70d31af more adjustments after rebase 2023-05-02 21:11:58 -05:00
i-norden
0c51ba5dc9 version meta 2023-05-02 20:16:40 -05:00
i-norden
b59a60eed8 statediffing service squashed commit 2023-05-02 20:12:04 -05:00
Martin Holst Swende
ea9e62ca3d
params: go-ethereum v1.11.6 stable 2023-04-20 20:14:51 +02:00
rjl493456442
99f81d2724
all: refactor trie API (#26995)
In this PR, all TryXXX(e.g. TryGet) APIs of trie are renamed to XXX(e.g. Get) with an error returned.

The original XXX(e.g. Get) APIs are renamed to MustXXX(e.g. MustGet) and does not return any error -- they print a log output. A future PR will change the behaviour to panic on errorrs.
2023-04-20 06:57:24 -04:00
s7v7nislands
ae93e0b484
metrics: use atomic type (#27121) 2023-04-20 03:36:54 -04:00
Alex Beregszaszi
3f7afc3f57
core/vm: order opcodes properly (#27113) 2023-04-20 02:52:00 -04:00
Adrian Sutton
f2df2b1981
cmd/geth: rename --vmodule to --log.vmodule (#27071)
renames `--vmodule` to `--log.vmodule`, and prints a warning if the old form is used.
2023-04-19 07:18:02 -04:00
Martin Holst Swende
2b0a34bea6
cmd/devp2p: make crawler-route53-updater less verbose (#27116)
Follow-up to #26697, makes the crawler less verbose on route53-based scenarios.

It also changes the loglevel from debug to info on Updates, which are typically the root, and can be interesting to see.
2023-04-19 06:46:56 -04:00
s7v7nislands
3768b00747
consensus/ethash: use atomic type (#27068) 2023-04-18 14:54:06 +02:00
joohhnnn
b1972627d9
p2p: access embedded fields of Server directly (#27078) 2023-04-18 11:57:08 +02:00
Delweng
5e4d726e2a
params: remove EIP150Hash from chainconfig (#27087)
The EIP150Hash was an idea where, after the fork, we hardcoded the forked hash as an extra defensive mechanism. It wasn't really used, since forks weren't contentious and for all the various testnets and private networks it's been a hassle to have around. 

This change removes that config field. 

---------

Signed-off-by: jsvisa <delweng@gmail.com>
2023-04-18 03:49:09 -04:00
Anusha
cb66eba85a
core: fix comment to reflect function name (#27070) 2023-04-17 11:02:31 -04:00
Taeguk Kwon
bedf2856d1
signer/core: rename testdata files (#27063)
Sets a meaningful name on test-files
2023-04-17 10:36:47 -04:00
noel
8fe807c8f2
cmd/devp2p: fix erroneous log output in crawler (#27089)
cmd/devp2p: fix log of ignored recent nodes counter
2023-04-17 10:29:27 -04:00
Parithosh Jayanthi
5aa5295cf9
params: new sepolia bootnodes (#27099)
New sepolia bootnodes managed by EF devops
2023-04-17 04:15:25 -04:00
Péter Szilágyi
4a9fa31450
Merge pull request #27051 from sandakersmann/master
build: upgrade -dlgo version to Go 1.20.3
2023-04-08 17:13:55 +03:00
rjl493456442
b946b7a13b
core, miner: drop transactions from the same sender when error occurs (#27038)
This PR unifies the error handling in miner. 

Whenever an error occur while applying a transaction, the transaction should be regarded as invalid and all following transactions from the same sender not executable because of the nonce restriction. The only exception is the `nonceTooLow` error which is handled separately.
2023-04-05 07:09:25 -04:00
Marius van der Wijden
230df98e4d
core/txpool: disallow future churn by remote txs (#26907)
Prior to this change, it was possible that transactions are erroneously deemed as 'future' although they are in fact 'pending', causing them to be dropped due to 'future' not being allowed to replace 'pending'. 

This change fixes that, by doing a more in-depth inspection of the queue.
2023-04-05 04:59:32 -04:00
Marius Kjærstad
9d37102134
build: upgrade -dlgo version to Go 1.20.3 2023-04-04 22:24:30 +02:00
s7v7nislands
2adce0b066
eth/tracers: use atomic type (#27031)
Use the new atomic types in package eth/tracers

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2023-04-04 12:34:52 -04:00
Exca-DK
b4dcd1a391
metrics: make gauge_float64 and counter_float64 lock free (#27025)
Makes the float-gauges lock-free

name                      old time/op  new time/op  delta
CounterFloat64Parallel-8  1.45µs ±10%  0.85µs ± 6%  -41.65%  (p=0.008 n=5+5)

---------

Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-04 09:53:44 -04:00
Martin Holst Swende
ab1a404b01
all: remove debug-field from vm config (#27048)
This PR removes the Debug field from vmconfig, making it so that if a tracer is set, debug=true is implied.

---------

Co-authored-by: 0xTylerHolmes <tyler@ethereum.org>
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
2023-04-04 09:50:13 -04:00
Delweng
0b76eb3708
eth/tracers: report correct gasLimit in call tracers (#27029)
This includes a semantic change to the `callTracer` as well as `flatCallTracer`.
The value of field `gas` in the **first** call frame will change as follows:

- It previously contained gas available after initial deductions (i.e. tx costs)
- It will now contain the full tx gasLimit value

Signed-off-by: jsvisa <delweng@gmail.com>
2023-04-04 12:34:23 +02:00
Péter Szilágyi
d2cf49327f
consensus/misc, params: add EIP-4844 blobfee conversions (#27041)
* consensus/misc, params: add EIP-4844 blobfee conversions

* consensus/misc: pull in fakeExponential test cases

* consensus/misc: reuse bigints

* consensus/misc: nit renames, additional larger testcase

---------

Co-authored-by: Roberto Bayardo <bayardo@alum.mit.edu>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-04 11:25:28 +03:00
Péter Szilágyi
91faf2c559
consensus, core/typer: add 4844 excessDataGas to header, tie it to Cancun (#27046) 2023-04-04 10:02:50 +03:00