Sina Mahmoodi
0aeec7f1b5
mv td to OnBlockStart
2023-07-12 16:44:00 +02:00
Sina Mahmoodi
add825e9c9
fix BlockEnd in case of err
2023-07-10 19:01:55 +02:00
Sina Mahmoodi
f1bd4151c1
rm extra CaptureTxEnd
2023-07-10 17:32:54 +02:00
Sina Mahmoodi
3cabef4c66
capture block end errors
2023-06-30 15:29:38 +02:00
Sina Mahmoodi
54171ee4a8
pass env in TxStart
2023-06-28 21:58:38 +02:00
Sina Mahmoodi
3975c7cfcc
minor
2023-06-28 14:54:08 +02:00
Sina Mahmoodi
378781654f
Upgrade TxStart and TxEnd hooks
2023-06-28 13:28:53 +02:00
Sina Mahmoodi
a7de17ed21
only emit event for new accounts
2023-06-26 17:39:10 +02:00
Sina Mahmoodi
057bbdac10
add comments
2023-06-26 16:56:28 +02:00
Sina Mahmoodi
8db10784cb
fix genesis logging
2023-06-26 14:58:33 +02:00
Sina Mahmoodi
0d25fbc37d
pass logger to BC through vmConfig
2023-06-26 11:21:27 +02:00
Sina Mahmoodi
ee791b2b20
add gas consumption hook
2023-06-23 16:40:58 +02:00
Sina Mahmoodi
84d6432708
add log and newAccount hooks
2023-06-22 13:10:05 +02:00
Sina Mahmoodi
f67ac095a6
add hooks to state object & genesis
2023-06-20 13:43:45 +02:00
Sina Mahmoodi
e25065bfc3
capture keccak preimage
2023-06-15 18:42:57 +02:00
Sina Mahmoodi
642a374b9d
Initial support for extended tracer
2023-06-15 17:40:49 +02:00
Martin Holst Swende
9cf9fae668
core/types: add support for BlobTxType receipts ( #27470 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-06-15 14:18:54 +02:00
aaronbuchwald
93ecd77d77
core: remove unnecessary log copy ( #27475 )
...
The logs in this function are pulled straight from disk in rawdb.ReadRawReceipts and
also modified in receipts.DeriveFields, so removing the copy should be fine.
2023-06-15 13:52:06 +02:00
Freeman Jiang
8bbaf882a6
core/types: add "chainID" field to legacy tx JSON encoding ( #27452 )
...
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2023-06-13 14:46:45 +02:00
Delweng
0783cb7d91
eth,core: add api debug_getTrieFlushInterval ( #27303 )
...
* core,eth: add api debug_getTrieFlushInterval
Signed-off-by: jsvisa <delweng@gmail.com>
* eth/api_debug: comment of SetTrieFlushInterval
Signed-off-by: jsvisa <delweng@gmail.com>
* Apply suggestions from code review
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-06-06 08:41:44 -04:00
Péter Szilágyi
950d5643b1
core/txpool: make transaction validation reusable across packages (pools) ( #27429 )
...
* core/txpool: abstraction prep work for secondary pools (blob pool)
* core/txpool: leave subpool concepts to a followup pr
* les: fix tests using hard coded errors
* core/txpool: use bitmaps instead of maps for tx type filtering
2023-06-06 12:53:29 +03:00
Daniel Katzan
b8ee2877c5
core/txpool: fix minor flaw in isGapped check ( #27404 )
...
This fix a minor implementation issue with the newly introduced isGapped function and it is described in ticket: https://github.com/ethereum/go-ethereum/issues/27401
2023-06-06 04:29:41 -04:00
rjl493456442
0e5d2c7c53
core/state/snapshot, core/types, eth: move account definition to type ( #27323 )
...
* core/state/snapshot, core/types, eth: move account definition to type
* core, eth: revert snapshot Account API change
2023-06-06 11:17:39 +03:00
Marius van der Wijden
c537ace249
core: 4844 opcode and precompile ( #27356 )
...
* core: crypto: implement BLOBHASH and pointEval precompile
* core: crypto: fixed nitpicks, moved precompile return value
* core/vm: fix review comments
2023-06-05 16:43:25 +03:00
rjl493456442
380fb4e249
core/state: clear out cached state data when reset occurs ( #27376 )
...
* core/state: remove cached snap data if reset occurs
* core/state: address comment from peter
* core/state: skip revert in case data is nil
2023-06-05 16:25:57 +03:00
Péter Szilágyi
c7c84ca16c
all: remove the Rinkeby testnet ( #27406 )
2023-06-02 14:03:21 +03:00
rjl493456442
15bd21f3c8
core/state: mark account as dirty when resetObject occurs ( #27339 )
...
This changes the journal logic to mark the state object dirty immediately when it
is reset.
We're mostly adding this change to appease the fuzzer. Marking it dirty immediately
makes no difference in practice because accounts will always be modified by EVM
right after creation.
2023-06-01 11:09:32 +02:00
Guillaume Ballet
45a3ab42aa
core/state: move slot RLP encoding into the MPT implementation ( #27000 )
...
Continuing with a series of PRs to make the Trie interface more generic, this PR moves
the RLP encoding of storage slots inside the StateTrie and light.Trie implementations,
as other types of tries don't use RLP.
2023-06-01 10:29:41 +02:00
Péter Szilágyi
008086f935
core, eth/downloader: validate blobtx.To at serialization time ( #27393 )
2023-05-31 13:08:15 +03:00
Péter Szilágyi
495692c9db
core, eth/downloader, params: validate blob tx bodies ( #27392 )
2023-05-31 11:12:26 +03:00
Péter Szilágyi
1f9b69b36d
consensus, core, eth/downloader, params: 4844 chain validation ( #27382 )
2023-05-31 10:21:13 +03:00
Guillaume Ballet
188817468e
core/types: remove superfluous todo-comment ( #27383 )
2023-05-30 04:49:09 -04:00
Delweng
6c732766c8
core,console: replace noarg fmt.Errorf with errors.New ( #27332 )
...
* core: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* console: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* core: go autoimport
Signed-off-by: jsvisa <delweng@gmail.com>
* core: dry
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-25 08:24:09 -04:00
Park Changwan
bfded65ed8
core/state: do not ignore null addr while iterative dump ( #27320 )
...
fixes bug which caused the zero-address to be ignored during an iterative state-dump.
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-05-23 06:10:26 -04:00
Péter Szilágyi
85a4b82b33
all: tie timestamp based forks to the passage of London ( #27279 )
2023-05-19 11:27:19 +03:00
John Chase
2f2959d003
core/state/pruner: remove unused error-return ( #27273 )
2023-05-17 04:23:06 -04:00
Martin Holst Swende
eb83e7c540
core/state/snapshot: check difflayer staleness early ( #27255 )
...
This PR adds a staleness-check to AccountRLP, before checking the bloom-filter and potentially going directly into the disklayer.
---------
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2023-05-16 09:18:39 -04:00
joohhnnn
c2148c644d
core/asm: remove unused return value ( #27272 )
2023-05-16 10:14:04 +02:00
Péter Szilágyi
1982437259
core/types: un-ssz blob txs, add json marshalling and tweaks ( #27256 )
2023-05-12 20:14:29 +03:00
rjl493456442
a14301823e
all: new empty trie with types.EmptyRootHash instead of null ( #27230 )
2023-05-11 10:19:42 +03:00
Guillaume Ballet
7577b9c28f
core/state: unexport NodeIterator ( #27239 )
2023-05-11 10:15:44 +03:00
rjl493456442
5021d36d35
all: port boring changes from pbss ( #27176 )
...
* all: port boring changes from pbss
* core, trie: address comments from martin
* trie: minor fixes
* core/rawdb: update comment
* core, eth, tests, trie: address comments
* tests, trie: add extra check when update trie database
* trie/triedb/hashdb: degrade the error to warning
2023-05-09 10:11:04 +03:00
ucwong
cc8d40c65f
core/state: initialize maps with known size ( #27222 )
...
* core/state : fix map size avoid resizing
* core/state : fixed size
2023-05-08 09:59:14 +03:00
ucwong
ba09403113
core/txpool : fix map size avoid resizing ( #27221 )
2023-05-05 12:33:01 +03:00
Péter Szilágyi
dde2da0efb
all: remove ethash pow, only retain shims needed for consensus and tests ( #27178 )
...
* all: remove ethash pow, only retain shims needed for consensus and tests
* all: thank you linter
* all: disallow launching Geth in legacy PoW mode
* cmd/env/internal/t8ntool: remove dangling ethash flag
2023-05-03 12:58:39 +03:00
Guillaume Ballet
7f6c045e0d
core: remove unused ContractCode method from BlockChain ( #27186 )
2023-05-02 04:56:08 -04:00
ucwong
a9d7cdaf6e
core/types: go generate ( #27196 )
...
Fixes a discrepancy between source and generated files, which was introduced when ExcessDataGas was added in https://github.com/ethereum/go-ethereum/pull/27046 .
2023-05-02 04:32:27 -04:00
Péter Szilágyi
66c0c4e517
cmd, eth, les: replace Shanghai override flag with Cancun ( #27171 )
2023-04-26 18:17:37 +03:00
Roberto Bayardo
f8aa623536
core/types: fix discrepancy in receipt.EffectiveGasPrice json encoding tags ( #27114 )
...
Regenerate receipt json code to remove omit empty. Previously, there was a discrepancy between the generated code and the source.
---------
Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-26 02:37:11 -04:00
Péter Szilágyi
d3ece3a07c
cmd/utils, node: switch to Pebble as the default db if none exists ( #27136 )
...
* cmd/utils, node: switch to Pebble as the default db if none exists
* node: fall back to LevelDB on platforms not supporting Pebble
* core/rawdb, node: default to Pebble at the node level
* cmd/geth: fix some tests explicitly using leveldb
* ethdb/pebble: allow double closes, makes tests simpler
2023-04-21 19:24:18 +03:00