Commit Graph

20184 Commits

Author SHA1 Message Date
alex.sharov
da275f35cc fix linter 2023-08-25 12:05:36 +07:00
Alex Sharov
c4def0402a
Torrent: add trackers list (#8071) 2023-08-25 10:45:08 +07:00
Alex Sharov
0cdb085f51
Torrent: add trackers list (#1084) 2023-08-25 03:45:05 +00:00
Alex Sharov
5224a7dc8c
update dot and chi libs (#8069) 2023-08-25 09:26:56 +07:00
Andrew Ashikhmin
1fd9d20e14
EIP-4788 v2 (no precompile) (#8038)
See https://github.com/ethereum/EIPs/pull/7456 &
https://github.com/ethereum/go-ethereum/pull/27849. Also set the gas
limit for system calls to 30M (previously 2^64-1), which is in line with
the [Gnosis
spec](https://github.com/gnosischain/specs/blob/master/execution/withdrawals.md#specification),
but should be doubled checked for Gnosis Chain.
2023-08-24 17:10:50 +02:00
battlmonstr
bb2c2adbb6
p2p: fix RLPx disconnect message decoding (#8056)
The disconnect message could either be a plain integer, or a list with
one integer element. We were encoding it as a plain integer, but
decoding as a list. Change this to be able to decode any format.
2023-08-24 13:49:19 +02:00
alex.sharov
66d93f2489 rename torquem-ch project 2023-08-24 18:12:22 +07:00
alex.sharov
c344806b10 rename torquem-ch project 2023-08-24 18:10:47 +07:00
alex.sharov
c6899ab0a9 rename torquem-ch project 2023-08-24 18:08:54 +07:00
Alex Sharov
2b6c21fddb
move mdbx to new org (#8061) 2023-08-24 18:00:24 +07:00
Alex Sharov
3c4b0d425b
move mdbx to new org (#1083) 2023-08-24 11:00:21 +00:00
Andrew Ashikhmin
ece8010d0d
Remove unused transaction and node packets from eth/protocols (#8057)
Transactions are served by erigon-lib's txpool and we don't serve
NodeData.
2023-08-24 06:50:04 +02:00
Alex Sharov
ec899e41a1
metrics: prevent commit metrics duplication (#1082) 2023-08-24 02:24:09 +00:00
Alex Sharov
65d8b1d328
metrics: prevent commit metrics duplication (#8059) 2023-08-24 09:24:02 +07:00
Giulio rebuffo
db4533acd0
fixed small inconsistency with sqlite3 (#8054) 2023-08-23 22:44:22 +02:00
Andrew Ashikhmin
83d767c861
Revert "EIP-4788: set nonce of beacon root history address to nonzero… (#8055)
[devnet-8](https://notes.ethereum.org/@ethpandaops/dencun-devnet-8)
doesn't include https://github.com/ethereum/EIPs/pull/7431 since it's
rendered obsolete by upcoming https://github.com/ethereum/EIPs/pull/7456
(to be implemented by PR #8038).

This reverts PR #7952.
2023-08-23 15:40:49 +02:00
battlmonstr
2e29ff33e1
bor: BroadcastNewBlock to all peers from validator nodes (#8030)
Currently PropagateNewBlockHashes and BroadcastNewBlock
selects a subset of all sentries by taking a `Sqrt(len(sentries))`,
and then for each sentry SendMessageToRandomPeers
selects a subset of its peers by taking `Sqrt(len(peerInfos))`.

This behaviour limits the broadcast scope with a lot of peers, e.g. 100
becomes 10,
but is not great with very few peers, or if the message is very
important
to broadcast to everyone, which is the case of bor validator/proposer
nodes.

* send to all sentries in both BroadcastNewBlock and PropagateNewBlockHashes
* remove peerCountConstrained sqrt logic in SendMessageToRandomPeers
* add maxPeers provider func as a parameter to MultiClient
* default it to 10 for eth and 0 (unlimited) for bor validators

---------

Co-authored-by: Mark Holt <mark@distributed.vision>
2023-08-23 14:28:39 +02:00
alex.sharov
7e8c1130b9 grafana version up 2023-08-23 12:25:22 +07:00
alex.sharov
02b7c28a94 bor: integration cmd support 2023-08-23 12:07:36 +07:00
Alex Sharov
523504c557
rapid lib support go21 (#8051) 2023-08-23 07:21:32 +07:00
Alex Sharov
af72e993cd
torrent lib to support go21 (#8050) 2023-08-23 07:15:42 +07:00
Alex Sharov
ac13f4307b
torrent lib to support go21 (#1081) 2023-08-23 00:15:40 +00:00
Alex Sharov
804248a528
disable linter which failing wihout enough info (#8049) 2023-08-23 06:56:35 +07:00
battlmonstr
a83a478bae
bor: fix panic reading total difficulty for isChainPoS (#8032)
because bor doesn't have headers,
ReadCurrentHeader returns nil as expected

refactor isChainPoS to only call ReadCurrentHeader/ReadTd if needed and
use chain config IDs
2023-08-22 13:40:36 +02:00
battlmonstr
b7c4dcd5d1
p2p: add sepolia DNS discovery host name (#8027) 2023-08-22 10:51:21 +02:00
battlmonstr
6c017c33f9
p2p: log NAT ExternalIP error (#8026) 2023-08-22 10:51:00 +02:00
battlmonstr
d2d261e560
cli: die if a config file is invalid (#8025) 2023-08-22 10:50:31 +02:00
battlmonstr
5b843fbddc
sentry: do not process empty responses (#8029)
if dropUselessPeers = false,
skip processing empty responses same as if it was true

Co-authored-by: Mark Holt <mark@distributed.vision>
2023-08-22 10:16:12 +02:00
battlmonstr
61364e8a01
sentry: fix eth handshake sequence (#8031)
problem: it was possible to call startSync
and start sending messages before our Status is sent

solution: wait for the sender goroutine to finish
before calling startSync

refactor handShake parameters to not require peerID and a startSync
callback

Co-authored-by: Mark Holt <mark@distributed.vision>
2023-08-22 10:15:35 +02:00
Giulio rebuffo
bd81e15981
Caplin: Implemented SQL beacon indexer (#8043) 2023-08-22 01:24:26 +02:00
Andrew Ashikhmin
64d483e23a
To in EIP-4844 transactions must be non-nil (#8047)
See https://github.com/ethereum/EIPs/pull/7100
2023-08-21 18:00:11 +02:00
Andrew Ashikhmin
6bc0ca9e85
Correctly compute fork id when timestamp fork is activated in genesis (#8046)
See https://github.com/ethereum/go-ethereum/pull/27895
2023-08-21 15:35:13 +02:00
Alex Sharov
863a706858
caplin: use tmpdir inside datadir (#8041) 2023-08-20 15:26:34 +02:00
ledgerwatch
532cc13a03
Fix panic due to Borevents snapshots changes (#8042) 2023-08-20 10:42:09 +01:00
Giulio rebuffo
6d2a9aed2f
Fixed startup panic (#8040) 2023-08-18 22:16:30 +02:00
ledgerwatch
6b6c0caad0
Snapshots of Bor events (#7901)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Co-authored-by: Alex Sharp <alexsharp@alexs-mbp-2.home>
2023-08-18 17:10:35 +01:00
ledgerwatch
3aa5249d48
Add BorEvents snapshot type (#1051)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-08-18 15:33:09 +00:00
Somnath Banerjee
384c6ba9ee
Go mod update lib (#8039)
Pick up https://github.com/ledgerwatch/erigon-lib/pull/1080
2023-08-18 19:55:54 +05:30
Giulio rebuffo
38db2ed2e7
[Caplin Phase 2]: Initial working implementation (#8033)
caplin just using execution.proto
2023-08-18 15:43:22 +02:00
Somnath Banerjee
f84bd53b26
Fix broadcast issue for blob transactions (#1080) 2023-08-18 13:36:20 +00:00
Alex Sharov
0f311abd0e
Update README.md (#1079) 2023-08-18 07:29:13 +00:00
Andrew Ashikhmin
611145c385
updateForkChoice: send state changes to txpool after tx is committed (#8035)
[txpool](https://github.com/ledgerwatch/erigon-lib/blob/main/txpool/pool.go)
expects an `OnNewBlock` update only after the DB transaction is
committed.

This fixes, for example, a nonce gap mis-detection in Hive test
"engine-cancun/Blob Transactions On Block 1, Cancun Genesis".
2023-08-17 16:03:12 +02:00
Andrew Ashikhmin
f82bc1def9
Don't call AuRa Initialize after The Merge (#7989)
With The Merge Gnosis Chain is much closer to Ethereum and there's no
need to call AuRa `Initialize`.
2023-08-17 12:46:53 +02:00
Giulio rebuffo
cab6d30322
Caplin's Persistence data format (#8028) 2023-08-16 23:03:25 +02:00
Giulio rebuffo
c8db11f150
Sentinel: improvements to block download (#8023) 2023-08-16 17:02:30 +02:00
a
521f0df55b
Historical block downloader (#8016) 2023-08-16 04:32:40 +02:00
Giulio rebuffo
114dd684eb
Caplin Optimization: Efficient Processing of Epoch and Reuse of checkpoint states (#8020) 2023-08-15 12:45:48 +02:00
Somnath Banerjee
1867d9393a
Fix duplicate commitments in GetPayloadV3 response (#8018) 2023-08-14 17:57:33 +05:30
Somnath Banerjee
143ff4695c
Fix 17 hive tests (#8014) 2023-08-14 09:24:59 +02:00
Andrew Ashikhmin
2a4b1b3077
Pass proper timestamp in stage senders (#8013)
This fixes "blob tx is not supported by signer", which occurred in some
Hive tests.
2023-08-13 21:38:01 +02:00