Commit graph

14764 commits

Author SHA1 Message Date
Shawn
5ab8d3c4af reduce contract deployer genesis amount to only what's needed 2023-12-13 21:20:00 -08:00
Shawn
0fd81dbb7c contract bytecode changed -> update hardcoded create2 addr 2023-12-13 19:56:24 -08:00
Shawn
0d63eca03f
Merge pull request #7 from primevprotocol/precompile-updates
precompile updates
2023-12-13 16:09:23 -08:00
Shawn
80679748c9 whitelist filtering 2023-12-13 03:31:44 -08:00
Shawn
a73391dc42 Update contracts_with_ctx.go 2023-12-13 03:12:27 -08:00
Shawn
782bb41681 todos 2023-12-13 03:12:27 -08:00
Shawn
53041a03e7 whitelistaddr var and less params 2023-12-13 03:12:27 -08:00
Shawn
e0fd766386 allow unprotected txes from bootnode to enable create2 deployment 2023-12-13 03:11:48 -08:00
Shawn
70e8080879 fund create2 address 2023-12-13 00:44:15 -08:00
Shawn
8a87924515 Update Makefile 2023-12-12 21:12:27 -08:00
kant777
d972c74f5e
Merge branch 'ethereum:master' into master 2023-12-12 21:37:42 -05:00
ucwong
81fd1b3cf9
core/txpool : small cleanup refactors (#28654) 2023-12-12 17:23:36 +02:00
Ford
17c2b3c194
eth/protocols/eth: fix typos in comments (#28652) 2023-12-12 14:47:59 +01:00
Ng Wei Han
a3ca1b2818
cmd/utils: fix HTTPHost, WSHost flag priority (#28669)
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-12-12 14:40:50 +01:00
alok
9ae49cf5f9 chore: fix bootnode address in scripts 2023-12-12 16:06:11 +05:30
kant777
6d352b090a
Update entrypoint.sh 2023-12-12 01:56:16 -08:00
kant
6506fd03ab name change 2023-12-11 22:27:40 -08:00
kant
3ce39c201a moving to shared network 2023-12-11 20:39:50 -08:00
kant
b3e168eafa cloning contract repo as part of geth poa 2023-12-11 18:22:54 -08:00
kant
8df9f35976 changing from bash to sh 2023-12-11 18:00:26 -08:00
kant
e660dc1481 Merge branch 'master' of github.com:primevprotocol/go-ethereum 2023-12-11 17:47:06 -08:00
kant
aaa7e70952 adding contract deployyer to poa 2023-12-11 17:46:42 -08:00
rjl493456442
e206d3f897
trie: remove inconsistent trie nodes during sync in path mode (#28595)
This fixes a database corruption issue that could occur during state healing.
When sync is aborted while certain modifications were already committed, and a
reorg occurs, the database would contain incorrect trie nodes stored by path.
These nodes need to detected/deleted in order to obtain a complete and fully correct state
after state healing.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-12-08 14:28:23 +01:00
Péter Szilágyi
d98d70f670
cmd/utils, eth: disallow invalid snap sync / snapshot flag combos (#28657)
* eth: prevent startup in snap mode without snapshots

* cmd/utils: try to fix bad flag combos wrt snap sync and snapshot generation
2023-12-08 15:16:04 +02:00
Felföldi Zsolt
fff843cfaf
beacon/light: add CommitteeChain (#27766)
This change implements CommitteeChain which is a key component of the beacon light client. It is a passive data structure that can validate, hold and update a chain of beacon light sync committees and updates, starting from a checkpoint that proves the starting committee through a beacon block hash, header and corresponding state. Once synced to the current sync period, CommitteeChain can also validate signed beacon headers.
2023-12-08 13:38:00 +01:00
Martin HS
1048e2d6a3
cmd/evm: fix dump after state-test exec (#28650)
The dump after state-test didn't work, the problem was an error, "Already committed", which was silently ignored. 

This change re-initialises the state, so the dumping works again.
2023-12-08 11:06:01 +01:00
Martin HS
5a45e7a631
rpc: fix ns/µs mismatch in metrics (#28649)
The rpc/duration/all meter was in nanoseconds, the individual meter in microseconds.
This PR changes it so both of them use nanoseconds.
2023-12-08 09:40:50 +01:00
Marius Kjærstad
77c4bbcaa5
build: upgrade -dlgo version to Go 1.21.5 (#28648) 2023-12-07 12:45:09 +02:00
Guillaume Ballet
a113497dd7
tests/fuzzers/bls12381: deactivate BLS fuzzer when CGO_ENABLED=0 (#28653)
tests/fuzzers/bls12381: deactivate fuzzer when CGO_ENABLED=0
2023-12-07 10:07:20 +01:00
Shawn
e18e20b937
Merge pull request #5 from primevprotocol/ckartik/nit-docs-add-env-reference-file
Nit addition of .env file reference
2023-12-06 13:23:58 -08:00
Kartik Chopra
0b1e5261b6 Adds reference to notion docs for .env file. 2023-12-06 16:08:58 -05:00
Marius van der Wijden
55b483d82a
ethdb/pebble: remove a dependency (#28627)
The dependency was not really used anyway, so we can get rid of it.

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-12-06 11:41:04 +01:00
Guillaume Ballet
69576df254
.github: use github actions to run 32-bit linux tests (#28549)
use github actions to run 32-bit linux tests
2023-12-05 14:45:40 +01:00
Martin Holst Swende
b8d44ed98b
log: remove lazy, remove unused interfaces, unexport methods (#28622)
This change 

- Removes interface `log.Format`, 
- Removes method `log.FormatFunc`, 
- unexports `TerminalHandler.TerminalFormat` formatting methods (renamed to `TerminalHandler.format`)
- removes the notion of `log.Lazy` values


The lazy handler was useful in the old log package, since it
could defer the evaluation of costly attributes until later in the
log pipeline: thus, if the logging was done at 'Trace', we could
skip evaluation if logging only was set to 'Info'.

With the move to slog, this way of deferring evaluation is no longer
needed, since slog introduced 'Enabled': the caller can thus do
the evaluate-or-not decision at the callsite, which is much more
straight-forward than dealing with lazy reflect-based evaluation.

Also, lazy evaluation would not work with 'native' slog, as in, these
two statements would be evaluated differently:

```golang
  log.Info("foo", "my lazy", lazyObj)
  slog.Info("foo", "my lazy", lazyObj)
```
2023-12-05 11:54:44 +01:00
Martin Holst Swende
3dc071e036
eth/tracers/logger: make structlog/json-log stack hex again (#28628)
* common/hexutil: define hex wrappers for uint256.Int

* eth/tracers/logger: make structlog/json-log stack hex again

* common/hexutil: goimports
2023-12-05 09:37:48 +01:00
Håvard Anda Estensen
2e13b01046
accounts: run tests in parallel (#28544) 2023-12-04 14:55:06 +01:00
Manav Darji
70fd0b635e
eth/fetcher: fix invalid tracking of received at time for block (#28637)
eth/fetcher: fix invalid tracking of received at time
2023-12-04 14:25:17 +02:00
BorkBorked
f04e5bde74
accounts/abi/bind: fixed typos (#28634)
* Update auth.go

* Update backend.go

* Update bind.go

* Update bind_test.go
2023-12-04 11:53:42 +02:00
ddl
6e488c2449
cmd/evm: fix Env struct json tag (#28635) 2023-12-04 11:52:55 +02:00
Ubuntu
dda05c5584 using pebble engine 2023-12-02 07:32:58 +00:00
Ubuntu
a300dd8cb0 using pebble engine 2023-12-02 07:19:32 +00:00
Ubuntu
1716abb4a0 switching to path based scheme and adding metrics 2023-12-01 22:43:06 +00:00
Delweng
5fb8ebc9ec
eth/tracers: tx-level state in debug_traceCall (#28460) 2023-12-01 16:38:52 +03:30
Martin Holst Swende
dd0d0a2522
slog: faster and less memory-consumption (#28621)
These changes improves the performance of the non-coloured terminal formatting, _quite a lot_. 

```
name               old time/op    new time/op    delta
TerminalHandler-8    10.2µs ±15%     5.4µs ± 9%  -47.02%  (p=0.008 n=5+5)

name               old alloc/op   new alloc/op   delta
TerminalHandler-8    2.17kB ± 0%    0.40kB ± 0%  -81.46%  (p=0.008 n=5+5)

name               old allocs/op  new allocs/op  delta
TerminalHandler-8      33.0 ± 0%       5.0 ± 0%  -84.85%  (p=0.008 n=5+5)
```

I tried to _somewhat_ organize the commits, but the it might still be a bit chaotic. Some core insights: 

- The function `terminalHandler.Handl` uses a mutex, and writes all output immediately to 'upstream'. Thus, it can reuse a scratch-buffer every time. 
- This buffer can be propagated internally, making all the internal formatters either write directly to it,
- OR, make  use of the `tmp := buf.AvailableBuffer()` in some cases, where a byte buffer "extra capacity" can be temporarily used. 
- The `slog` package  uses `Attr` by value. It makes sense to minimize operating on them, since iterating / collecting into a new slice, iterating again etc causes copy-on-heap. Better to operate on them only once. 
- If we want to do padding, it's better to copy from a constant `space`-buffer than to invoke `bytes.Repeat` every single time.
2023-12-01 13:28:20 +01:00
BorkBorked
f2b509d8a1
accounts/abi/bind: fix typo (#28630) 2023-12-01 09:51:50 +01:00
Ubuntu
29f487a379 changing archive to full 2023-12-01 08:23:56 +00:00
kant777
f12ad9fe3c
Merge pull request #4 from primevprotocol/feature/log_block_size
Feature/log block size
2023-11-30 23:32:44 -05:00
Shawn
d9de4e7e9c new rpc urls for frontend 2023-11-30 19:13:08 -08:00
kant
749f59d672 working version for block size in bytes 2023-11-30 18:21:37 -08:00
kant
588539bbeb merging geth-poa into go-ethereum repo 2023-11-30 18:07:09 -08:00