philip-morlier
6ed9390f9b
Merge remote-tracking branch 'origin/feature/plugeth-test-plugin' into merge/geth-v1.12.0
2023-07-12 13:47:51 -07:00
philip-morlier
dc56f2a361
incremental commit, manual changes to support merge
2023-07-11 17:01:10 -07:00
philip-morlier
e516d5842c
automated merge
2023-07-11 16:01:17 -07:00
philip-morlier
54899440d2
Removed comments
2023-06-22 13:28:50 -07:00
philip-morlier
4ca9210d59
Modified injection test in /core/rawdb/
2023-06-22 13:00:05 -07:00
philip-morlier
b3f1d35171
functional test plugin.
...
This PR will also include the stand alone tests.
2023-06-22 01:05:10 -07:00
philip-morlier
8a33d8e506
added meta blockProcessingError to test
2023-06-19 20:59:18 -07:00
philip-morlier
b19d7f9f9e
Merge remote-tracking branch 'origin/develop' into feature/old-consensus-engine
2023-06-14 22:24:35 -07:00
philip-morlier
fee25089a9
Added HookTester back into main.
2023-06-14 22:24:08 -07:00
Philip Morlier
366f480bc1
Merge pull request #78 from cerc-io/fix-subscription-methods
...
Fix subscription method registration
2023-06-14 09:44:27 -07:00
philip-morlier
1bf1a5634e
Merge remote-tracking branch 'origin/develop' into feature/old-consensus-engine
2023-06-13 22:52:01 -07:00
philip-morlier
23c0ca58af
trieFlushClone test experiment
2023-06-13 13:13:13 -07:00
Philip Morlier
a20fadc454
Merge pull request #79 from openrelayxyz/feature/consensus-engine
...
Feature/consensus engine
2023-06-12 16:28:47 -07:00
philip-morlier
80956ac723
removed unnecessary comments from wrappers/engine.go
2023-06-12 15:08:37 -07:00
philip-morlier
d8d864768a
Updated mod and sum to reflect v1.2.0
...
Also changed the injection and hook from hooktester to blockchain().
2023-06-12 13:37:29 -07:00
philip-morlier
7434ccb8c8
Initial commit of stand alone consensus engine work.
2023-06-12 09:52:46 -07:00
f7ff01fd54
fix plugin subscription method registration
2023-06-10 01:51:39 +08:00
a9c2d243c5
clean up/copyedit
2023-06-09 23:07:13 +08:00
philip-morlier
12336c753f
pluginNewSideBlock covered by stand alone test.
2023-06-06 11:32:13 -07:00
philip-morlier
02d22a5aad
pluginReorg() test functional
2023-06-05 11:09:32 -07:00
philip-morlier
5dc7541135
Functional stand alone test for pluginBlockProcessingError
2023-06-02 09:45:48 -07:00
philip-morlier
679d028484
Functional test for injections in core/rawdb
2023-06-01 13:14:08 -07:00
Martin Holst Swende
e501b3b05d
params: go-ethereum v1.12.0 stable
2023-05-25 12:01:00 +02:00
Martin Holst Swende
33fdd030b1
ethdb/pebble: fix NewBatchWithSize to set db ( #27350 )
2023-05-25 10:31:05 +03:00
Delweng
8a78a4f79f
eth,consensus: replace noarg fmt.Errorf with errors.New ( #27330 )
...
* eth: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* consensus: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-25 02:57:34 -04:00
Delweng
b21ba668e6
internal,tests: replace noarg fmt.Errorf with errors.New ( #27335 )
...
* internal: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* tests: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* tests: go autoimport
Signed-off-by: jsvisa <delweng@gmail.com>
* tests: go autoimport
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-25 02:54:28 -04:00
Delweng
dd25a4f5ab
les, signer, light: replace noarg fmt.Errorf with errors.New ( #27336 )
...
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-25 02:51:13 -04:00
Delweng
21c87e0f1b
crypto: replace noarg fmt.Errorf with errors.New ( #27333 )
...
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-24 14:45:51 +02:00
Delweng
b0095eeb20
ethclient,event: replace noarg fmt.Errorf with errors.New ( #27334 )
...
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-24 12:39:49 +02:00
Delweng
e9c3183c52
cmd: use errrors.New instead of empty fmt.Errorf ( #27329 )
...
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-24 12:21:29 +02:00
Martin Holst Swende
9231770811
rpc: change BlockNumber constant values to match ethclient ( #27219 )
...
ethclient accepts certain negative block number values as specifiers for the "pending",
"safe" and "finalized" block. In case of "pending", the value accepted by ethclient (-1)
did not match rpc.PendingBlockNumber (-2).
This wasn't really a problem, but other values accepted by ethclient did match the
definitions in package rpc, and it's weird to have this one special case where they don't.
To fix it, we decided to change the values of the constants rather than changing ethclient.
The constant values are not otherwise significant. This is a breaking API change, but we
believe not a dangerous one.
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-05-23 13:18:38 +02:00
Martin Holst Swende
1a18283e85
cmd/evm: make batched state-test execution possible ( #27318 )
...
implements the ability to run several state-tests in one instance. By not providing a statetest path to the `evm statetest` command, the path(s) will instead be read from `stdin`.
2023-05-23 06:23:17 -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
minh-bq
a190da9d68
eth/tracers: fix flatCallTracer crasher ( #27304 )
...
FlatCallTracer had a crasher when it was passed `onlyTopCall: true` as config.
This PR ignores config fields inherited from the normal call tracer.
2023-05-23 11:02:50 +02:00
Chawin Aiemvaravutigul
5b792e0fdf
accounts/abi: add ErrorById ( #27277 )
...
Adds `ErrorById` lookup
2023-05-22 12:45:55 -04:00
Sina Mahmoodi
b46d37ea52
graphql: upgrade UI to v2 ( #27294 )
...
Upgrades graphiql to v2.4.4. The interface has become much nicer, and there are extra features like tabs, history, dark mode etc.
This change also now uses golang embed to bundle the resources.
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-05-22 08:15:05 -04:00
Delweng
6fe0252571
rpc, internal/cmdtest: increase timeout in tests ( #27083 )
...
This change gives the cmd-tests have a bit more time to finish before getting forcibly torn down.
2023-05-22 08:13:03 -04:00
Felix Lange
944e1a0f90
beacon/types: auto-generate SyncCommittee marshaling methods ( #27296 )
2023-05-19 17:05:50 +03:00
Shude Li
3223950a5d
cmd/utils: do not check free disk space in dev mode ( #27281 )
2023-05-19 08:38:21 -04:00
Martin Holst Swende
99394adcb8
ethdb/pebble: prevent shutdown-panic ( #27238 )
...
One difference between pebble and leveldb is that the latter returns error when performing Get on a closed database, the former does a panic. This may be triggered during shutdown (see #27237 )
This PR changes the pebble driver so we check that the db is not closed already, for several operations. It also adds tests to the db test-suite, so the previously implicit assumption of "not panic:ing at ops on closed database" is covered by tests.
2023-05-19 08:36:21 -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
Shude Li
6a6318b1d2
go.mod: usegopkg.in/yaml.v3
instead of github.com/go-yaml/yaml
( #27295 )
2023-05-17 23:35:30 +02:00
Felföldi Zsolt
c08dc59aad
beacon/types: add beacon chain data types ( #27292 )
...
* beacon/types: add beacon chain data types
* beacon/merkle: added comments
* go.mod: cleanups
---------
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2023-05-17 17:39:33 +03:00
Felix Lange
41fafa47b6
go.mod: upgrade gencodec ( #27288 )
2023-05-17 15:03:38 +03:00
Stephen Guo
84c3799e21
rpc: more accurate checking of handler method signatures ( #27287 )
...
This changes the RPC server to ignore methods using *context.Context as parameter
and *error as return value type. Methods with such types would crash the server when
called.
2023-05-17 12:27:51 +02:00
Alex Mylonas
ae1d90e710
internal/ethapi: make NewAccount return EIP-55 format ( #26973 )
...
This change implements returning the address as EIP-55 encoded when creating a new account.
2023-05-17 04:29:56 -04: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
Marius van der Wijden
d46f69dc7a
tests/fuzzers/bn256: add PairingCheck fuzzer ( #27252 )
...
* tests/fuzzers/bn256: scale gnark result by constant
* tests/fuzzers/bn256: scale gnark result by constant
2023-05-16 07:27:54 -04:00
Delweng
6e3aa86a2b
internal/ethapi: minor refactor in block serialization ( #27268 )
2023-05-16 10:40:47 +02:00