Matthieu Vachon
665329d32b
Call OnBlockchainInit before OnGenesisBlock
2024-03-13 16:24:36 -04:00
Matthieu Vachon
7b77261b7c
Added back OnNewAccount which is Firehose concept so I left it out of the merge commit just before this one
2024-03-13 16:24:14 -04:00
Matthieu Vachon
f47d2fc315
Merge branch 'extended-tracer-struct' into firehose-fh3.0
...
# Conflicts:
# core/blockchain.go
# core/state/statedb.go
# eth/backend.go
# eth/tracers/live/printer.go
# go.mod
# go.sum
2024-03-13 16:23:13 -04:00
Sina Mahmoodi
0b5975fee3
fix merge conflict
2024-03-13 12:48:34 +01:00
Sina Mahmoodi
65bdbc175f
fix lint issue
2024-03-13 12:45:22 +01:00
rjl493456442
c170fa277c
core: improve chain rewinding mechanism ( #29196 )
...
* core: improve chain rewinding mechanism
* core: address comment
* core: periodically print progress log
* core: address comments
* core: fix comment
* core: fix rewinding in path
* core: fix beyondRoot condition
* core: polish code
* core: polish code
* core: extend code comment
* core: stop rewinding if chain is gapped or genesis is reached
* core: fix broken tests
2024-03-13 13:39:30 +02:00
Martin HS
d5bacfa4de
crypto/kz4844: pass blobs by ref ( #29050 )
...
This change makes use of the following underlying changes to the kzg-libraries in order to avoid passing large things on the stack:
- c-kzg: https://github.com/ethereum/c-kzg-4844/pull/393 and
- go-kzg: https://github.com/crate-crypto/go-kzg-4844/pull/63
2024-03-13 07:51:46 +01:00
Sina Mahmoodi
73ca96b97e
resolve merge conflict
2024-03-12 17:55:17 +01:00
Bin
89cefe240f
cmd: use package filepath over path for file system operations ( #29227 )
...
Package filepath implements utility routines for manipulating filename paths in a way compatible with the target operating system-defined file paths.
Package path implements utility routines for manipulating slash-separated paths.
The path package should only be used for paths separated by forward slashes, such as the paths in URLs
2024-03-12 10:00:34 +01:00
Sina Mahmoodi
fa4ade8ecb
core: fix deprecation comment for GenesisAccount ( #29218 )
...
core: fix deprecation comment
2024-03-11 12:05:48 +02:00
Lee Bousfield
00c21128ef
core/txpool/blobpool: return ErrAlreadyKnown for duplicate txs ( #29210 )
...
Signed-off-by: Lee Bousfield <ljbousfield@gmail.com>
2024-03-11 12:05:17 +02:00
Péter Szilágyi
b393ad8d29
cmd, core, metrics: always report expensive metrics ( #29191 )
...
* cmd, core, metrics: always report expensive metrics
* core, metrics: report block processing metrics as resetting timer
* metrics: update reporter tests
2024-03-11 10:06:57 +02:00
hyhnet
cd490608e3
all: fix typos in comments ( #29186 )
2024-03-07 22:56:19 +01:00
Sina Mahmoodi
eeb0a46429
rm canceler
2024-03-07 13:08:27 +01:00
Sina Mahmoodi
5bdbf07837
add fn refundGas
2024-03-07 12:15:57 +01:00
Sina Mahmoodi
935ff70d6d
replace opcode with byte
2024-03-07 10:30:13 +01:00
Sina Mahmoodi
1d0101969a
rm OnKeccakPreimage
2024-03-06 17:08:00 +01:00
Sina Mahmoodi
8b3cddabb5
rename tracer methods to On pattern
2024-03-06 16:34:18 +01:00
Sina Mahmoodi
37ce159500
rm OnStart and onEnd
2024-03-06 15:49:49 +01:00
Péter Szilágyi
f4d53133f6
consensus, cmd, core, eth: remove support for non-merge mode of operation ( #29169 )
...
* eth: drop support for forward sync triggers and head block packets
* consensus, eth: enforce always merged network
* eth: fix tx looper startup and shutdown
* cmd, core: fix some tests
* core: remove notion of future blocks
* core, eth: drop unused methods and types
2024-03-05 16:13:28 +02:00
zhiqiangxu
9e129efd7b
core: remove useless assignments ( #29065 )
2024-03-05 14:48:27 +01:00
rjl493456442
7b81cf6362
core/state, trie/triedb/pathdb: remove storage incomplete flag ( #28940 )
...
As SELF-DESTRUCT opcode is disabled in the cancun fork(unless the
account is created within the same transaction, nothing to delete
in this case). The account will only be deleted in the following
cases:
- The account is created within the same transaction. In this case
the original storage was empty.
- The account is empty(zero nonce, zero balance, zero code) and
is touched within the transaction. Fortunately this kind of accounts
are not-existent on ethereum-mainnet.
All in all, after cancun, we are pretty sure there is no large contract
deletion and we don't need this mechanism for oom protection.
2024-03-05 14:31:55 +01:00
zhiqiangxu
d89d7ebdec
core: initialize gasRemaining with = instead of += ( #29149 )
...
initialize gasRemaining with = instead of +=
2024-03-05 09:47:58 +01:00
Vie
9b3ceb2137
core/types: reuse signtx ( #29152 )
...
* core/types: reuse signtx
* core/types: inline signtx
2024-03-05 09:33:52 +02:00
rjl493456442
ca473b81cb
core: use finalized block as the chain freeze indicator ( #28683 )
...
* core: use finalized block as the chain freeze indicator
* core/rawdb: use max(finality, head-90k) as chain freezing threshold
* core/rawdb: fix tests
* core/rawdb: fix lint
* core/rawdb: address comments from peter
* core/rawdb: fix typo
2024-03-04 16:25:53 +02:00
buddho
679a27a2b3
all: use EmptyUncleHash, EmptyCodeHash instead of raw value ( #29134 )
2024-03-04 10:31:18 +01:00
cui
5a1e8a6547
core: delete unused ErrMaxInitCodeSizeExceeded ( #29062 )
2024-03-04 10:30:15 +01:00
Sina Mahmoodi
923c180058
rename Capture hooks to On
2024-02-29 17:18:43 +01:00
Sina Mahmoodi
d10d4b7626
rm old logger file
2024-02-29 16:38:54 +01:00
Sina Mahmoodi
ad7b9e8cd4
a type for each hook
2024-02-29 16:22:34 +01:00
Sina Mahmoodi
021d6a4870
assign const values for gas change reasons
2024-02-29 15:33:23 +01:00
Sina Mahmoodi
f358e57490
rename scopeContext to opContext
2024-02-29 15:13:03 +01:00
Péter Szilágyi
865e1e9f57
cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme ( #29108 )
...
* cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme
* graphql: run tests in hash mode as the chain maker needs it
2024-02-29 12:40:59 +02:00
yzb
db4cf69166
all: replace fmt.Errorf() with errors.New() if no param required ( #29126 )
...
replace-fmt-errorf
Co-authored-by: yzb@example.cn <yzb@example.cn>
2024-02-29 11:56:46 +02:00
Sina Mahmoodi
507c072b3b
rename GetLogger to Hooks
2024-02-28 19:41:58 +01:00
Sina Mahmoodi
a2829c6f49
rename LiveLogger to hooks
2024-02-28 19:38:04 +01:00
Sina Mahmoodi
7d8db9b503
move logger interface to core/tracing
2024-02-28 19:34:49 +01:00
Sina Mahmoodi
d65bad2f62
renaming GetLogger
2024-02-28 19:27:39 +01:00
Sina Mahmoodi
8cc747f439
moaar fixes
2024-02-28 19:20:17 +01:00
rjl493456442
49623bd469
core, triedb/pathdb: calculate the size for batch pre-allocation ( #29106 )
...
* core, triedb/pathdb: calculate the size for batch pre-allocation
* triedb/pathdb: address comment
2024-02-28 14:23:52 +02:00
cui
02d77c98f9
core: using math.MaxUint64 instead of 0xffffffffffffffff ( #29094 )
2024-02-28 15:25:12 +08:00
Sina Mahmoodi
a1877ab520
fixes, rm t8ntool tracewriter
2024-02-27 20:31:01 +01:00
Roberto Bayardo
51b479e564
core/txpool: elevate the 'already reserved' error into a constant ( #29095 )
...
declare the 'already reserved' error in errors.go
2024-02-27 13:27:50 +02:00
Delweng
45a272c7b9
core/txpool: no need to log loud rotate if no local txs ( #29083 )
...
* core/txpool: no need to run rotate if no local txs
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "core/txpool: no need to run rotate if no local txs"
This reverts commit 17fab17388 .
Signed-off-by: jsvisa <delweng@gmail.com>
* use Debug if todo is empty
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2024-02-26 18:34:45 +02:00
Péter Szilágyi
63aaac8100
core/txpool/blobpool: reduce default database cap for rollout ( #29090 )
...
xcore/txpool/blobpool: reduce default database cap for rollout
2024-02-26 14:27:56 +02:00
Roberto Bayardo
32d4d6e616
core/txpool: reject blob txs with blob fee cap below the minimum ( #29081 )
...
* make blobpool reject blob transactions with fee below the minimum
* core/txpool: some minot nitpick polishes and unified error formats
* core/txpool: do less big.Int constructions with the min blob cap
---------
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-02-26 11:06:52 +02:00
Sina Mahmoodi
f434c8df56
Add canceler interface
2024-02-21 18:54:15 +01:00
Sina Mahmoodi
fc35780124
full struct-based tracing infra
2024-02-21 18:47:59 +01:00
colin
b9ca38b735
core/txpool: fix typo ( #29036 )
...
* fix typos
* address comments
2024-02-21 10:00:01 +02:00
buddho
bba3fa9af9
core,eth,internal: fix typo ( #29024 )
2024-02-20 19:42:48 +08:00