Commit Graph

203 Commits

Author SHA1 Message Date
peilun-conflux
789eae5cc1
Start nodes sequentially to fix some random failure. ()
Currently we use the config `network_libp2p_nodes` to connect nodes
in the tests. This will not be retried, so if an early node starts
too slowly, other nodes may fail to connect to it.
2024-10-28 10:53:28 +08:00
peilun-conflux
2f9960e8e7
Hardcode pad data segment root. ()
* Hardcode pad data segment root.

* fix deref

---------

Co-authored-by: Peter Zhang <peter@0g.ai>
2024-10-27 20:58:03 +08:00
peilun-conflux
506d234562
Use LRU to cache MPT nodes. ()
* Add trait.

* Update merkle tree trait.

* Use NodeManager.

* fix.

* Use LRU for cache.

* fix clippy.

* Save layer size.

* Initialize LogManager with NodeManager.

* Fix.

* Fix test.

* fix.
2024-10-27 12:52:06 +08:00
Bo QIU
8f17a7ad72
Fix metrics config deser () 2024-10-22 14:14:33 +08:00
Joel Liu
2947cb7ac6
Optimizing recover perf by reducing sync progress events ()
* Optimizing recover perf by reducing sync progress events

* add log

* add log
2024-10-21 21:24:50 +08:00
peilun-conflux
39efb721c5
Remove sender from contract call. ()
This allows the RPC services to cache the results.
2024-10-21 16:58:50 +08:00
Joel Liu
9fe5a2c18b
Stop recovery when sending via the channel fails () 2024-10-18 16:08:35 +08:00
MiniFrenchBread
80b4d63cba
fix: error handling () 2024-10-15 19:27:22 +08:00
bruno-valante
b2a70501c2
Test flow root consistency () 2024-10-15 14:24:56 +08:00
Bo QIU
e701c8fdbd
Supports custom public ip to announce file ()
* Supports custom public ip to announce file

* Fix comment
2024-10-14 14:57:42 +08:00
0g-peterzhb
a4b02a21b7
add retry () 2024-10-14 14:19:05 +08:00
MiniFrenchBread
3fc1543fb4
chore: update abi () 2024-10-14 12:38:13 +08:00
bruno-valante
82fd29968b
Support shard in case the mining is not enabled () 2024-10-12 17:03:47 +08:00
peilun-conflux
45fa344564
Check the local flow root against the contract state. ()
* Check the local flow root against the contract state.

* Check zero contract root.

* Fix wrong root before the first segment.

* Update contracts.

* Fix proof insertion.
2024-10-12 16:50:31 +08:00
0g-peterzhb
48868b60db
update ip () 2024-10-11 17:07:43 +08:00
Joel Liu
649f6e5e9f
Fix the dead loop problem ()
* Fix the dead loop problem

* keep parent block of log_latest_block_number block

* avoid overflow
2024-10-10 22:02:20 +08:00
MiniFrenchBread
79d960d4ea
feat: tx_seq rpc () 2024-10-10 14:57:40 +08:00
MiniFrenchBread
b131dc532f
test: update contracts, shard submission test ()
* fix: pad tx based on the on-chain contract result.

* chore: update contracts

* test: shard submission

---------

Co-authored-by: Peilun Li <peilun.li@confluxnetwork.org>
2024-10-09 16:33:20 +08:00
peilun-conflux
4e2c5fa8a4
fix: pad tx based on the on-chain contract result. () 2024-10-09 15:20:42 +08:00
peilun-conflux
b76fa7be9b
Add TopicScoreParams for gossipsubs. () 2024-10-08 14:32:23 +08:00
bruno-valante
27db2d6496
Avoid appending to_seal_set if sealer is not enabled () 2024-10-08 14:26:35 +08:00
0g-peterzhb
20266e0a6c
@peter/async padding ()
* support async padding
2024-10-08 13:13:32 +08:00
peilun-conflux
395aeabde7
fix: do not finalize same-root tx with missing data. () 2024-10-05 22:16:33 +08:00
MiniFrenchBread
ee4123418f
fix: end_segment_index ()
* fix: end_segment_index
2024-10-05 14:31:12 +08:00
MiniFrenchBread
949462084a
fix: finalize check on tx sync ()
* fix: finalize

* fix: check

* fix: end_segment_index

* fix: fmt
2024-09-30 18:43:11 +08:00
MiniFrenchBread
07ac814e57
test: use fixed 0g binary ()
* test: use latest 0g binary

* feat: use bug fixed 0g binary
2024-09-30 14:56:38 +08:00
peilun-conflux
69b71fc0b2
Fix issue in reverting the last incomplete tx. () 2024-09-27 10:02:47 +08:00
Bo QIU
ae6ecfec96
reduce default sync threads () 2024-09-26 14:55:00 +08:00
Bo QIU
ad80b22a1b
Optimize rpc config () 2024-09-25 16:48:40 +08:00
Bo QIU
84c415e959
opt zgs version () 2024-09-24 16:42:38 +08:00
Bo QIU
9cde84ae15
Refactor network peer db configs () 2024-09-24 11:59:34 +08:00
Bo QIU
1dd7bf7734
Remove the 0gchain genesis init script for mac os ()
* Remove the 0gchain genesis init script for mac os

* fix on mac
2024-09-20 19:16:53 +08:00
MiniFrenchBread
5849e9c2ba
fix: finalize file does not need to save ()
* fix: finalize file does not need to save

* fix: rust fmt
2024-09-19 19:14:45 +08:00
0g-peterzhb
b7badcda5e
do not fail on pruner first reward chunk revert error () 2024-09-19 17:33:56 +08:00
bruno-valante
1434b94495
Resolve dependency issue from atty () 2024-09-14 19:06:52 +08:00
bruno-valante
da0e2c7031
Fix issues found in auditions () 2024-09-14 18:19:16 +08:00
peilun-conflux
10bd71046b
Add some input validation for append_merkle. ()
* Add some input validation for `append_merkle`.

* Fix clippy.
2024-09-14 17:39:07 +08:00
Bo QIU
a153955246
Add log entry sync info in zgs_getStatus rpc () 2024-09-14 10:11:12 +08:00
Joel Liu
f878a4849c
Handle cases where sequence is not continuous during catch-up ()
* Handle cases where the sequence is not continuous during the catch-up process

* get block hash from rpc if not found in local cache
2024-09-14 09:05:11 +08:00
Bo QIU
a9f5169c15
Allow user to configure network bandwidth for file sync () 2024-09-13 16:58:27 +08:00
Jason
59d24b073d
change the Pora result from debug to info ()
Co-authored-by: jason1 <jason1@cambricon.com>
2024-09-13 07:41:23 +08:00
Bo QIU
7f14451141
Add zgs rpc to check file finality ()
* Add tx seq or root enum

* Add zgs rpc to check file finality

* trailing whitespace
2024-09-13 07:40:43 +08:00
peilun-conflux
5c81abb79f
Use iterator to return padding data. ()
* Use iterator to return padding data.

* Fix order.
2024-09-13 07:38:47 +08:00
peilun-conflux
a4dd88f2b8
Change submit receipt to info. () 2024-09-11 17:59:43 +08:00
peilun-conflux
3dc3d0574f
Fix typos. () 2024-09-11 17:57:41 +08:00
Bo QIU
1d48cb1ea7
Use 0gchain to test mine tests ()
* Use 0gchain to test mine tests

* adjust zg block time
2024-09-11 10:13:31 +08:00
Joel Liu
702680f3a4
reset parent block hash when reset progress ()
* reset parent block hash when reset progress
2024-09-09 14:51:08 +08:00
peilun-conflux
678d233f69
Output debug log with serde_json and fix debug root db key. ()
* Output debug log with serde_json and fix debug root db key.
2024-09-08 20:21:34 +08:00
Bo QIU
052d2d781b
Change zg chain block time in python tests ()
* Change zg chain block time in python tests
2024-09-08 08:38:53 +08:00
bruno-valante
52878b6709
Fix recall range computation for sharding ()
* Fix recall range computation for sharding

* cargo fmt
2024-09-08 08:37:03 +08:00