4349 Commits

Author SHA1 Message Date
Pedro Miranda
78816d23bd removed file adapted_block_chain_dag.nim 2025-01-10 11:30:08 +00:00
Pedro Miranda
247649249a activate known P2P agents on makefile 2025-01-10 11:30:08 +00:00
Pedro Miranda
382296f809 Start using eth2 code.
All possible constraints regarding eth2 are identified and tested for possible solutions.
2025-01-10 11:30:08 +00:00
Pedro Miranda
2c7eca1c57 Fix pid file creation 2025-01-10 11:30:08 +00:00
Pedro Miranda
9da97e9ca4 startup fixes 2025-01-10 11:30:08 +00:00
Pedro Miranda
2c5581c6c9 trusted sync fixes 2025-01-10 11:30:08 +00:00
Pedro Miranda
b9e58ae343 nph format 2025-01-10 11:30:08 +00:00
Pedro Miranda
d19a07550a added startup command with trusted synch 2025-01-10 11:30:08 +00:00
Pedro Miranda
a6f80228b5 fixed create databasedir and fil limits bug 2025-01-10 11:30:08 +00:00
Pedro Miranda
4b5834c21e added software version 2025-01-10 11:30:08 +00:00
Pedro Miranda
54007f7dec Fixed metrics library warnings by deactivating metrics collection.
This is acting as hot fix for now, given that some metrics are requirements. However we need to collect the ones we need / want and
find a way to extract them from nimbus-eth2 (or make them reusable by both )
2025-01-10 11:30:08 +00:00
Pedro Miranda
58340c6809 synch achieved:
There are currently 2 issues:

- fetch genesis state on empty data folder:
error msg "The downloaded genesis state cannot be verified (checksum mismatch)\"

The error arises from here:
   fetchGenesisState->network_metadata_downloads.fetchGenesisBytes.L58
something to do with the readssz or withState, investigations point to the data downloaded or some config missing
WA: comment lines 58-62, compile and run until the fetch genesis state is completed, then you can uncomment, it works from here

- spam of error messages: \"metrics error:New label values must be added from same thread as the metric was created from\":
This happens due to the fact that libp2p declares some gauges, and given that they are created inside a thread, metrics library
starts to complain. (no WA/correction so far)"
2025-01-10 11:30:08 +00:00
Pedro Miranda
8d9652b93c Improved synchronization mechanism 2025-01-10 11:30:08 +00:00
Pedro Miranda
6b91c3a507 changes:
Makefile: Disabled libbacktrace: for some reason was given a strange error DW_FORM_addrx. Requires further investigation, given that it can be a macos issue, or related to the fact tathatth nimbus-eth2 is a submodule.
moved getPid to thread worker it self. might required further investigation regarding thread pattern.
small typos
2025-01-10 11:30:08 +00:00
Pedro Miranda
f461760aa6 inital exec run script 2025-01-10 11:30:08 +00:00
Pedro Miranda
79aa0fb46e small repairs and additions 2025-01-10 11:30:08 +00:00
Pedro Miranda
7b15c09b45 fixed gcsafe error on createPidFile 2025-01-10 11:30:08 +00:00
Pedro Miranda
2b9aadb4b9 refactored types 2025-01-10 11:30:08 +00:00
Pedro Miranda
0c202a7852 added secp256k1 support 2025-01-10 11:30:08 +00:00
Pedro Miranda
5e07b082a9 copy&paste beacon node from eth2 2025-01-10 11:30:08 +00:00
Pedro Miranda
79976861f9 added monitoring skeleton 2025-01-10 11:30:08 +00:00
Pedro Miranda
14d5488062 added wrappers for execution an consensus layers 2025-01-10 11:30:08 +00:00
Pedro Miranda
1804471dc9 moved configs to dedicated directory 2025-01-10 11:30:08 +00:00
Pedro Miranda
1855efb2e9 added chronicles support 2025-01-10 11:30:08 +00:00
Pedro Miranda
82e72ef355 types and initial Monitor-Worker threading pattern 2025-01-10 11:30:08 +00:00
Pedro Miranda
9478abafcd setting control-c handler 2025-01-10 11:30:08 +00:00
Pedro Miranda
ecc8c51bd4 initial commit: simple project structure with makefile, readme and build configs 2025-01-10 11:30:03 +00:00
Siddarth Kumar
419e0193e9
blocks-import-script: swap --csv with --markdown (#2985)
This PR adds `--markdown-output` support to blocks import script.
This PR also removes `--csv-output` flag.
2025-01-10 14:17:30 +05:30
bhartnett
58d447564a
Fluffy: Improve testnet script parameters (#2989) 2025-01-10 08:48:49 +08:00
bhartnett
ec41a8d6fe
Fluffy: Add additional cli parameters for configuring the WebSocket server (#2988)
* Add additional rpc parameters for configuring the WebSocket server.
2025-01-10 08:37:44 +08:00
Advaita Saha
23fa3b8e1e
Logging Fixes for INFO and DEBUG level (#2984)
* logs summarized

* fix copyright year

* add topics for logs

* fix copyright year

* bring syncer logs to info & debug level

* fix debug dockerfile

* fix: copyright error

* shift txpool logs to debug and introduce logs in rpc

* after header bring block download to info level

* comments for finalization summary of logs

* change literals to meaningful names

* remove unwanted data from userfacing logs

* include target logs

* remove control

* fix capitalization

* complete txpool
2025-01-09 12:33:29 +05:30
bhartnett
a5194846af
Fluffy: Support gossiping content to multiple portal client endpoints in the state bridge (#2987) 2025-01-09 11:42:16 +08:00
bhartnett
13a58abf5c
Fluffy: Improve state bridge gossip retry mechanism and logging (#2986)
- Minor refactor and cleanup of gossip retry and logging.

- Wait time before verifying the gossip for a block is now proportional to the number of offers per block.

- Don't retry gossipping content after finding it in the network. When retrying gossip of a block, only the offers not yet found in the network will be re-sent.
2025-01-08 15:19:37 +08:00
andri lim
0ffc17d153
Merge test_txpool and test_txpool2 (#2983)
* Merge test_txpool and test_txpool2

* Fix copyright year
2025-01-05 08:05:29 +00:00
Siddarth Kumar
7672f0b7c0
blocks-import-script: add --csv-output flag (#2982)
This commit adds --csv-output support to blocks import script.

Github renders CSVs as tables and this addition would be useful in nimbus-eth1-benchmark repo to make this comparison easy to render.
2025-01-05 00:56:00 +05:30
bhartnett
e33ab7d468
Fluffy: Minor refactor, cleanup and improve variable names in JSON-RPC handlers (#2981) 2025-01-03 15:24:12 +08:00
bhartnett
7c347e1a2a
Fluffy: Update portal_*PutContent JSON-RPC endpoints to return metadata (#2980)
* Update portal_*PutContent JSON-RPC endpoints to return metadata as defined in the portal specs.
2025-01-02 16:28:12 +08:00
Jacek Sieka
fc9077b140
eth: bump (ecies cleanup) (#2979) 2024-12-31 16:32:21 +01:00
andri lim
7c0c507f6a
TxPool: simplify byPriceAndNonce algorithm (#2978)
Remove the intermediate bySender table usage. This will lower
the memory and CPU usage.

Also add more comments about how algorithm works.
2024-12-29 13:02:42 +07:00
Jacek Sieka
5182a0868e
json_rpc: bump (#2977) 2024-12-27 14:44:10 +00:00
andri lim
7d3616e3d9
Refactor TxPool: leaner and simpler (#2973)
* Refactor TxPool: leaner and simpler
* Rewrite test_txpool

Reduce number of tables used, from 5 to 2. Reduce number of files.
If need to modify the price rule or other filters, now is far more easier because only one table to work with(sender/nonce).
And the other table is just a map from txHash to TxItemRef.

Removing transactions from txPool either because of producing new block or syncing became much easier.
Removing expired transactions also simple.
Explicit Tx Pending, Staged, or Packed status is removed. The status of the transactions can be inferred implicitly.
Developer new to TxPool can easily follow the logic.

But the most important is we can revive the test_txpool without dirty trick and remove usage of getCanonicalHead furthermore to prepare for better integration with ForkedChain.
2024-12-26 17:07:25 +07:00
Jacek Sieka
762ef416e8
nimcrypto: bump (#2975)
* better burn/== perf
2024-12-25 20:30:31 +00:00
tersec
aeec74e310
switch to Nim v2.0.14 (#2972) 2024-12-24 15:22:29 +00:00
bhartnett
c714fa8735
Fluffy: Rename portal_*Gossip JSON-RPC endpoints to be in line with updated portal spec (#2970)
* Revert previous change in PortalStream. Allow zero as a valid connectionId if randomly generated.

* Rename portal_*Gossip JSON-RPC endpoints to portal_*PutContent to be in line with updated portal spec.
2024-12-23 15:09:48 +08:00
andri lim
487743fc2e
Proper setup of test_rpc (#2969)
Instead of using ancient/dirty code to setup the rpc test, now using newest method from TxPool and ForkedChain.
Also fix some bugs in server_api discovered when using this new setup.
2024-12-22 16:18:46 +07:00
andri lim
557a9605cf
Tidy up test_txpool2 (#2968) 2024-12-22 11:05:53 +07:00
andri lim
aba9b582db
Rename stateDB to ledger (#2966)
* Rename stateDB to ledger

* Fix readOnlyLedger
2024-12-21 20:46:13 +07:00
Kim De Mey
7112a19d6c
Adjust some portal wire and history network (error) logging (#2965) 2024-12-21 20:22:16 +07:00
andri lim
473da69043
Remove unused stuff from txpool (#2967) 2024-12-21 20:13:33 +07:00
andri lim
86fc24a1d7
devnet-5: Update EIP-7685: exclude empty requests data in commitment (#2963)
* devnet-5: Update EIP-7685: exclude empty requests data in commitment

* Fix test vector

* Add more tests

* Fix executionRequests order validation

* Simplify test vector

* Fix t8n executionRequests output
2024-12-21 05:59:30 +00:00