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
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
f358e57490
rename scopeContext to opContext
2024-02-29 15:13:03 +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
8cc747f439
moaar fixes
2024-02-28 19:20:17 +01:00
Sina Mahmoodi
a1877ab520
fixes, rm t8ntool tracewriter
2024-02-27 20:31:01 +01: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
Sina Mahmoodi
50095906e2
use struct for tracing events
2024-02-16 11:20:56 +01:00
Sina Mahmoodi
27f662d96c
fix merge conflict
2024-02-08 19:07:00 +01:00
lmittmann
199e0c9ff5
core/state, core/vm: minor uint256 related perf improvements ( #28944 )
2024-02-07 17:01:38 +01:00
Dimitris Apostolou
8fd43c8013
all: fix typos in comments ( #28881 )
2024-02-05 22:16:32 +01:00
Sina Mahmoodi
ae522d6fb6
rm empty line
...
Co-authored-by: Martin HS <martin@swende.se>
2024-01-30 16:29:19 +01:00
Sina Mahmoodi
4c1d675041
resolve merge conflict
2024-01-29 20:00:43 +01:00
trocher
2dc74770a7
core/vm: fix misleading comment ( #28860 )
...
fix misleading comment
2024-01-23 15:17:42 +01:00
Martin HS
a5a4fa7032
all: use uint256 in state ( #28598 )
...
This change makes use of uin256 to represent balance in state. It touches primarily upon statedb, stateobject and state processing, trying to avoid changes in transaction pools, core types, rpc and tracers.
2024-01-23 14:51:58 +01:00
Darioush Jalali
29b73555ae
core/state: unexport GetOrNewStateObject ( #28804 )
2024-01-14 12:32:23 +01:00
Sina Mahmoodi
aa0db68d3a
resolve merge conflict
2024-01-12 17:58:24 +03:30
Sina Mahmoodi
580f02527e
has call reverted to snapshot
2024-01-12 17:53:12 +03:30
Darioush Jalali
2365d77968
core/vm: update comments to match eip number ( #28743 )
2024-01-02 11:39:53 +01:00
alex
edc864f9ba
all: fix typos in comments ( #28682 )
...
chore(core,eth):fix a couple of typos
2023-12-18 09:35:12 +01:00
Sina Mahmoodi
2d14bb573c
rename and document balance change reasons
2023-12-13 17:52:56 +03:30
Matthieu Vachon
72410c399d
Fixed BlockchainLogger.OnBlockEnd called too much times ( #19 )
...
The `processBlock` is already doing the work to call `OnBlockEnd`, no need to call it anymore afterwards.
2023-11-30 19:05:38 +03:30
Sina Mahmoodi
56600e911b
fix VMError.Unwrap
2023-11-24 18:17:57 +03:30
Sina Mahmoodi
9c00b1290b
fix merge conflict
2023-11-24 16:09:47 +03:30
Martin Holst Swende
2391fbc676
tests/fuzzers: move fuzzers into native packages ( #28467 )
...
This PR moves our fuzzers from tests/fuzzers into whatever their respective 'native' package is.
The historical reason why they were placed in an external location, is that when they were based on go-fuzz, they could not be "hidden" via the _test.go prefix. So in order to shove them away from the go-ethereum "production code", they were put aside.
But now we've rewritten them to be based on golang testing, and thus can be brought back. I've left (in tests/) the ones that are not production (bls128381), require non-standard imports (secp requires btcec, bn256 requires gnark/google/cloudflare deps).
This PR also adds a fuzzer for precompiled contracts, because why not.
This PR utilizes a newly rewritten replacement for go-118-fuzz-build, namely gofuzz-shim, which utilises the inputs from the fuzzing engine better.
2023-11-14 14:34:29 +01:00
Sina Mahmoodi
e803ef09ad
eth/tracers/js: fix isPush for push0 ( #28520 )
...
Fixes so that `push0` opcode is correctly reported as `true` by the `IsPush` function
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-11-14 13:14:38 +01:00
Sina Mahmoodi
0d268b796c
fix TxStart for traceCall
2023-11-08 19:28:42 +03:00
Péter Szilágyi
470dba8fc1
core/vm: set basefee to 0 internally on eth_call ( #28470 )
...
* core/vm: set basefee to 0 internally on eth_call
* core: nicer 0-basefee, make it work for blob fees too
* internal/ethapi: make tests a bit more complex
* core: fix blob fee checker
* core: make code a bit more readable
* core: fix some test error strings
* core/vm: Get rid of weird comment
* core: dict wrong typo
2023-11-08 11:22:08 +02:00
Sina Mahmoodi
429dcc99ca
fix merge conflict
2023-11-02 15:58:17 +01:00
lmittmann
a3be38127c
core/vm: performance tweak of OpCode.String() ( #28453 )
...
make `opCodeToString` a `[256]string` array
Co-authored-by: lmittmann <lmittmann@users.noreply.github.com>
2023-11-02 08:54:28 +02:00
Matthieu Vachon
1914bc6ed0
error code for VM failures ( #18 )
...
* Experimental: EVMLogger fixed error code
* First pass of review
* Move error to `core/vm/errors.go`, ensure also we strictly implement `rpc.Error` (without depending on it)
2023-10-27 17:49:52 +02:00
kevaundray
a6a0ae45b6
crypto/kzg4844: use the new trusted setup file and format ( #28383 )
...
Changes the trusted_setup to the one created during the kzg-ceremony. The trusted setup file can be found in the consensus specs: https://github.com/ethereum/consensus-specs/blob/dev/presets/mainnet/trusted_setups/trusted_setup_4096.json
---------
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2023-10-22 16:05:04 +02:00
0xbstn
fa6107c85e
core: fix typos ( #28255 )
...
fixes various typos in core
2023-10-10 10:22:03 +02:00
Marius van der Wijden
c39cbc1a78
core: implement BLOBBASEFEE opcode (0x4a) ( #28098 )
...
Implements "EIP-7516: BLOBBASEFEE opcode" for cancun, as per spec: https://eips.ethereum.org/EIPS/eip-7516
2023-10-02 05:49:29 -04:00
hzysvilla
4de89e92e4
core/vm: minor code formatting ( #28199 )
...
Adding a space beween function opOrigin() and opcCaller() in instruciton.go.
Adding a space beween function opkeccak256() and opAddress() in instruciton.go.
2023-09-26 11:58:01 +03:00
Sina Mahmoodi
6ee4fb8eac
resolve merge conflicts
2023-09-13 16:17:36 +02:00
Matthieu Vachon
ff3c15ff90
Full OnGasConsumed loop and added GasChangeReason ( #16 )
2023-09-12 17:19:15 +02:00
Sina Mahmoodi
651c438621
fix runtime tests
2023-09-04 17:55:01 +02:00
Guido Vranken
0ba2d3cfa4
core/vm/runtime: Add Random field to config ( #28001 )
2023-08-25 04:05:33 -04:00
Martin Holst Swende
e13fa32cea
core/vm: update 4844 - point evaluation precompile address ( #27874 )
2023-08-08 15:54:19 +03:00
Darioush Jalali
57cdbaef30
all: remove trailing whitespace ( #27741 )
2023-08-05 00:24:32 +02:00
Sina Mahmoodi
f9f377d64f
capture call validation errors
2023-07-27 21:57:40 +02:00