Commit graph

15712 commits

Author SHA1 Message Date
Rafael Sampaio
d6a2dd3ec6 Transformation of closePortalRpcServer a method of Client to form a centralized management object 2024-09-18 18:04:30 -03:00
Rafael Sampaio
2e8d67992a Refactor of main to allow graceful shutdown of database, server, UDPv5 and networks 2024-09-17 20:09:41 -03:00
fearlessfe
df86d197c1 feat: change state network dep 2024-09-17 11:06:43 +08:00
fearlseefe
f00c767e54 feat: add validate AccountTrieNode 2024-09-17 11:06:43 +08:00
Rafael Sampaio
21cfff582e Reuse of global functions from internals/ethapi instead of copy code 2024-09-17 11:06:28 +08:00
Rafael Sampaio
bb07079737 fix lint 2024-09-17 11:06:28 +08:00
Rafael Sampaio
26b40a9534 minimal eth namespace (RPC-API) with endpoints eth_chainId and eth_gtBlockByHash 2024-09-17 11:06:28 +08:00
fearlessfe
bf40a752b1 feat: add state api 2024-09-12 18:15:32 +08:00
彭振
8dc76c147a
Merge pull request #149 from fearlessfe/proof-test
feat: add history proof validation test
2024-09-12 08:10:15 +08:00
fearlseefe
d9a379d3fa fix: lint error 2024-09-11 16:36:29 +08:00
fearlessfe
218c05df9a feat: add history proof validation test 2024-09-11 14:41:05 +08:00
彭振
ef9012a22e
Merge pull request #148 from fearlessfe/types
feat: add test for HistoricalSummaries types
2024-09-11 12:46:09 +08:00
fearlessfe
e7054da983 fix: err in TestForkedHistoricalSummariesWithProof 2024-09-11 08:10:19 +08:00
fearlessfe
f469fb3007 feat: add test for HistoricalSummaries types 2024-09-10 15:25:56 +08:00
彭振
17308df173
Merge pull request #146 from fearlessfe/light
light cleint and history summaries validation
2024-09-07 23:22:29 +08:00
fearlseefe
50d7b0d0ac feat: beacon validation
add validation for HistoricalSummariesWithProof
2024-09-06 22:57:31 +08:00
fearlessfe
777d67cdc3 refactor: portal api 2024-09-06 22:51:51 +08:00
fearlessfe
4fec1b226a refactor: extract ConsensusAPI from beacon network 2024-09-06 08:11:22 +08:00
彭振
3b626a8e12
Merge pull request #144 from fearlessfe/beacon_validate
Beacon validate
2024-09-05 12:48:37 +08:00
fearlseefe
0c6531e737 feat: remove unused file 2024-09-05 09:58:55 +08:00
fearlessfe
337346d02f feat: add beacon validation for client update 2024-09-04 23:54:29 +08:00
fearlessfe
1b58d9431b fix: test case error 2024-09-04 22:44:45 +08:00
fearlseefe
fbe6854076 feat: add unit test 2024-09-04 18:11:46 +08:00
fearlseefe
4628b88413 feat: add validation for bootstrap and update 2024-09-03 15:09:31 +08:00
彭振
fd798cad85
Merge pull request #142 from fearlessfe/state
add ssz for State content value
2024-09-02 13:46:26 +08:00
fearlessfe
d4a59f290d feat: add unit test for state types 2024-09-01 13:26:35 +08:00
fearlessfe
4961baf518 feat: add state value types 2024-08-30 23:34:38 +08:00
彭振
1433d806a5
Merge pull request #141 from fearlessfe/beacon
feat: refactor protocolId
2024-08-29 12:00:50 +08:00
fearlessfe
d4d644c13c feat: refactor protocolId 2024-08-28 23:46:52 +08:00
彭振
75885b57eb
Merge pull request #139 from fearlessfe/beacon
fix: beacon chain tests
2024-08-27 21:35:20 +08:00
fearlessfe
332960bd5f fix: beacon chain tests 2024-08-27 07:23:35 +08:00
Chen Kai
2a381fc461
Merge branch 'ethereum:master' into portal 2024-08-20 08:56:41 +08:00
lightclient
84565dc899
eth/catalyst: ensure period zero mode leaves no pending txs in pool (#30264)
closes #29475, replaces #29657, #30104 

Fixes two issues. First is a deadlock where the txpool attempts to reorg, but can't complete because there are no readers left for the new txs subscription. Second, resolves a problem with on demand mode where txs may be left pending when there are more pending txs than block space.

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-08-19 15:32:15 -06:00
Martin HS
41b3b30863
gitignore: ignore upload-artefacts (#30325)
Our `WriteArchive`, used by ci builder, creates files in the repo root,in order to upload. After we've built the amd64-builds, we create the uploads, and cause the repo to be flagged as dirty for the remaining builds.

This change fixes it by adding the artefacts to gitignore. Closes #30324
2024-08-19 20:06:57 +02:00
thinkAfCod
923f0ba54e
Merge pull request #135 from thinkAfCod/fix_ip
fix parse enr ip
2024-08-19 23:54:53 +08:00
thinkAfCod
064a3cf2a9 fix parse enr ip 2024-08-19 23:46:21 +08:00
Martin HS
8486722dcb
build: remove mantic from ppa builds (#30322)
removes ppa-build for ubuntu `mantic`
2024-08-19 13:35:41 +02:00
Martin HS
60db6a7b42
internal/build: include git-date on detached head (#30320)
When we are building in detached head, we cannot easily obtain the same information as we can if we're in non-detached head.

However, one thing we _can_ obtain is the git-hash and git-date. Currently, we omit to include the git-date into the build-info, which causes problem for reproducable builds which are on a detached head.

This change fixes it to include the date-info always.
2024-08-19 13:35:04 +02:00
彭振
2ebd307f5b
Merge pull request #134 from fearlessfe/ci
ci: fix ci error
2024-08-18 22:08:02 +08:00
fearlessfe
b63e2af648 ci: fix ci error 2024-08-18 12:56:33 +08:00
Chen Kai
3fe80adec2
Merge branch 'ethereum:master' into portal 2024-08-17 14:07:49 +08:00
thinkAfCod
d9ac99649f No longer check if the IP is a multicast address when call AddEnr 2024-08-17 14:07:28 +08:00
Arran Schlosberg
710c3f32ac
vm: simplify error handling in vm.EVM.create() (#30292)
To allow all error paths in `vm.EVM.create()` to consume the necessary
gas, there is currently a pattern of gating code on `if err == nil`
instead of returning as soon as the error occurs. The same behaviour can
be achieved by abstracting the gated code into a method that returns
immediately on error, improving readability and thus making it easier to
understand and maintain.
2024-08-16 08:41:44 -06:00
Shude Li
09d889d2e3
core: remove withdrawal length check for state processor (#30286)
The withdrawal length is already verified by the beacon consensus package, so the check in the state processor is a duplicate.
2024-08-16 08:33:41 -06:00
Sina M
43640f12d8
beacon/light: handle endpoint URL more gracefully (#30306)
blsync was failing if the light endpoint it was provided ended with a
`/`. This change should handle the joining more gracefully.
2024-08-16 14:39:57 +02:00
Felix Lange
6eb42a6b4f
eth: dial nodes from discv5 (#30302)
Here I am adding a discv5 nodes source into the p2p dial iterator. It's
an improved version of #29533.

Unlike discv4, the discv5 random nodes iterator will always provide full
ENRs. This means we can apply filtering to the results and will only try
dialing nodes which explictly opt into the eth protocol with a matching
chain.

I have also removed the dial iterator from snap. We don't have an
official DNS list for snap anymore, and I doubt anyone else is running
one. While we could potentially filter for snap on discv5, there will be
very few nodes announcing it, and the extra iterator would just stall
the dialer.

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
2024-08-15 22:14:42 +02:00
Dylan Vassallo
7a149a159a
eth/tracers/js: add coinbase addr to ctx (#30231)
Add coinbase address to javascript tracer context.

This PR adds the `coinbase` address to `jsTracer.ctx`, allowing access
to the coinbase address (fee receipient) in custom JavaScript tracers.

Example usage:

```javascript
result: function(ctx) {
  return toAddress(ctx.coinbase);
}
```

This change enables custom tracers to access coinbase address,
previously unavailable, enhancing their capabilities to match built-in
tracers.
2024-08-15 16:36:35 +02:00
Felix Lange
c35684709c
eth/ethconfig: remove LES server config (#30298) 2024-08-15 11:42:39 +02:00
rjl493456442
c4b01d80b9
eth/fetcher: always expect transaction metadata in announcement (#30288)
This pull request drops the legacy transaction retrieval support from before
eth68, adding the restrictions that transaction metadata must be provided
along with the transaction announment.
2024-08-15 11:35:16 +02:00
Felix Lange
2f2e5b088a .golangci.yml: remove lint warning for TxLookupLimit 2024-08-15 10:11:03 +02:00