Peilun Li
b56ad5582d
Finalize the new tx at last.
2024-06-20 17:39:03 +08:00
Peilun Li
289e63c36b
Fix clippy.
2024-06-20 17:33:32 +08:00
Peilun Li
c67ae6f835
Use spawn_blocking for storage task.
2024-06-20 16:57:15 +08:00
Peilun Li
8f37a4a594
Fix tests and warnings.
2024-06-19 17:07:28 +08:00
Peilun Li
6aa11b7b70
Remove async lock for storage.
2024-06-19 16:45:03 +08:00
Peilun Li
38cbb8e182
Remove mut.
2024-06-17 23:53:10 +08:00
Peilun Li
fad3b93a31
Use inner lock in storage.
2024-06-17 23:14:01 +08:00
Bo QIU
d8d8c28c64
Add discv5 config and enlarge the default rate limiter ( #86 )
2024-06-14 18:04:35 +08:00
Bo QIU
dea518a0aa
Supports discv5 related configurations ( #84 )
...
* Supports discv5 related configurations
* fix fmt
2024-06-13 16:14:20 +08:00
peilun-conflux
489d973347
Update run/config.toml and version. ( #83 )
...
* Update run/config.toml.
* Update version
2024-06-11 13:17:32 +08:00
peilun-conflux
6383c7ddac
Update cli version and fix tests. ( #81 )
...
* fix: test
* Update cli version.
---------
Co-authored-by: MiniFrenchBread <103425574+MiniFrenchBread@users.noreply.github.com>
2024-06-10 22:54:39 +08:00
peilun-conflux
0f52325f67
Sync and finalize sharded data. ( #79 )
...
* Save test logs.
* Prepare to handle shard config in chunk pool.
* Allow files to be finalized with only sharded data.
* Handle shard config change.
* Only sync needed data in shard config.
* Fix clippy and tests.
2024-06-08 02:50:36 +08:00
peilun-conflux
c2c6e2d5fb
Store shard config for peers and choose sync peers accordingly. ( #77 )
...
* Implement Pruner.
* Put pruner in a crate.
* Fix clippy.
* Add rpc zgs_getShardConfig.
* Fix.
* Increase wait time.
* Add pruner_test and use max_num_chunks instead of size_limit.
* Store shard config for peers and choose sync peers accordingly.
* Add test and fix sync.
* Fix clippy and test.
* Fix some ut.
* Add AnnounceShardConfig gossip and fix tests.
* Add sharded tx finalize check in LogManager.
* Try,
* Rename.
* Longer timeout for mine_test.
* Save test logs.
2024-06-07 16:58:15 +08:00
peilun-conflux
ef82f64393
Implement Pruner to delete unwanted data. ( #70 )
...
* Implement Pruner.
* Put pruner in a crate.
* Fix clippy.
* Add rpc zgs_getShardConfig.
* Fix.
* Increase wait time.
* Add pruner_test and use max_num_chunks instead of size_limit.
* Add back shard config and fix test.
* fix: serde format
* Remove unneeded PORA_CHUNK_SIZE.
* Fix tests.
---------
Co-authored-by: MiniFrenchBread <103425574+MiniFrenchBread@users.noreply.github.com>
2024-05-31 13:11:06 +08:00
Chenxing Li
c0f9d5cc31
Fix quality overflow ( #75 )
2024-05-30 21:49:47 +08:00
Bo QIU
0852b2355c
enhance rpc logs ( #73 )
2024-05-29 10:16:28 +08:00
Bo QIU
b17fd117fd
Supports 0gchain in python test framework. ( #66 )
2024-05-17 16:29:23 +08:00
Chenxing Li
2262bc3fb9
Support mining on sharded storage. ( #64 )
...
* Change PoraHash compute
* Change padSeed compute
* Refactor
* Support mining on sharded storage
* Detect single core performance and set correct params for test
* Fix clippy
* Fix an overflow bug
2024-04-30 14:34:44 +08:00
Chenxing Li
193e154361
Change miner id logic & request miner id automatically ( #60 )
...
* Change miner id logic & request miner id automatically
* Not enable all features in the test workflow.
* Auto configurable mining period
* Adjust test params for ci
2024-04-27 11:15:57 +08:00
Bo QIU
5bcd3602b0
fix ci issues ( #63 )
2024-04-25 14:24:58 +08:00
Bo QIU
57090464ae
Supports to download blockchain binaries from github release ( #61 )
...
* build evmos before init genesis
* Supports to download conflux and evmos binary
* print unzip info
* download conflux windows binary in zip format
* unnecessary to install evmos when init node
* aaa
* bbb
* ccc
* ddd
* eee
* 111
* 2222
* aaa
* aaa
* aaa
* aaa
2024-04-25 11:25:05 +08:00
Chenxing Li
c85fe38c59
Remove cli build from server build workflow ( #54 )
...
* Remove cli build from server build workflow
* Build cli for a single test
2024-04-23 14:35:24 +08:00
Chenxing Li
95485c5c35
Enable data seal & merkle proof verification on mine ( #59 )
2024-04-23 14:34:46 +08:00
Chenxing Li
e5dc2d61cc
Configurable CPU usage on mine ( #58 )
...
* Configurable CPU usage on mine
* Cargo clippy
2024-04-23 12:52:39 +08:00
Bo QIU
0bd9ef0ed8
Automatically install dependent blockchain binary when run a single python test ( #57 )
...
* Separate script to build blockchain binaries
* auto remove http_proxy env if configured
* build bsc binary in run all process
* auto install binary when run a single test
* Add necessary output when build or download binary
* create tmp dir if absent
2024-04-19 20:24:50 +08:00
peilun-conflux
b9c6e43617
Enforce rear padding data check for segment proofs. ( #55 )
...
* Construct wrong proof.
* Enforce rear padding data check for segment proofs.
2024-04-17 18:46:04 +08:00
Bo QIU
6ca05090c3
update config ( #56 )
...
* update config
* use evmos testnet binary all the time
2024-04-16 21:24:50 +08:00
peilun-conflux
052e10cf8b
Add more log for debug. ( #53 )
2024-04-15 11:16:56 +08:00
0g-peterzhb
6b9ee41457
update default config ( #52 )
2024-04-15 10:50:13 +08:00
peilun-conflux
f5a71375be
Allow reverting the last tx with no flow data update. ( #51 )
...
* Allow reverting the last tx with no flow data update.
* Add details for panic.
2024-04-15 10:44:18 +08:00
Chenxing Li
8cff5dabe7
Test mine on evmos ( #48 )
2024-04-15 01:38:33 +08:00
Chenxing Li
8c955ed5aa
Fix an overflow bug in chunk sealing ( #47 )
2024-04-12 15:54:11 +08:00
Joel Liu
6c1b0b35ec
Wait SyncedBlock to be processed for revert block ( #45 )
...
* wait SyncedBlock to be processed
* remove retry counter
* use default parent block hash for missing case
2024-04-11 18:13:52 +08:00
peilun-conflux
bd4ebee2da
Change some log level. ( #46 )
...
* Change some log level.
* Add log for flow root commit.
2024-04-11 17:15:05 +08:00
Chenxing Li
163f843581
Configurable mine submission gas limit ( #41 )
...
* Configurable mine submission gas limit
* cargo fmt
* More log
* update
* cargo clippy
2024-04-11 11:52:03 +08:00
Bo QIU
4151375316
Supports flags for evmos start cli ( #43 )
2024-04-09 17:54:34 +08:00
0g-peterzhb
7bcd9b1988
update default config ( #44 )
2024-04-09 17:23:17 +08:00
0g-peterzhb
0131de26c8
update default config ( #42 )
2024-04-09 15:48:35 +08:00
Bo QIU
3e22a6a027
Supports evmos as blockchain fullnode in python tests ( #40 )
...
* refine blockchain type
* Supports evmos
* cp evmos to code dir
* improve timestamp
2024-04-09 15:45:02 +08:00
MiniFrenchBread
0047ab22d4
chore: update dependency ( #39 )
...
* chore: update dependency
* chore: update dependency
2024-04-08 13:54:01 +08:00
Joel Liu
b8a59e9222
query getLogs from batch blocks ( #37 )
...
* query getLogs from batch blocks
* resolve comments
2024-04-07 11:27:18 +08:00
Joel Liu
72e3e0a019
set uploaded_seg_num in FileInfo for rpc ( #36 )
...
* set uploaded_seg_num in FileInfo for rpc
* fix lint
* segments is 0 when not finalized
* refine code
2024-04-07 11:03:11 +08:00
0g-peterzhb
b07e6e776a
update boot node to static ip ( #38 )
2024-04-06 20:38:53 +08:00
MiniFrenchBread
8b410f2fc8
Chore: expose RPC modules, update dependency ( #35 )
...
* feat: expose rpc clients
* chore: expose rpc types
* chore: update dependency
2024-04-02 21:00:26 +08:00
peilun-conflux
588bf39d7d
Fix a possible log sync break after a node restarts. ( #34 )
...
* Fix a possible log sync break after a node restarts.
* Skip `sync_blocks` in blockchain node setup.
2024-03-29 16:15:01 +08:00
Joel Liu
f9ce286909
replace filter with eth_getLogs ( #32 )
...
* replace filter with eth_getLogs
* update log
* store block history into db
* fix lints error
* add free disk step
* set max worker to 3
* resolve comments and refact code
* resolve comments
* set max-workers to 4
* set max-workers to 3
2024-03-27 13:54:06 +08:00
0g-peterzhb
06a335add2
@peter/doc ( #22 )
...
* add documentation
2024-03-24 22:37:46 +08:00
Chenxing Li
16dfc56437
Test mining with the simple market ( #31 )
...
* Test mining with the simple market
* Support reward donation
2024-03-19 14:09:17 +08:00
Chenxing Li
306c43c9dc
Migrate to the new contract interfaces ( #29 )
...
* Fix compile warning & Search contract by name automatically
Migrate to the new contract interfaces
* Fix compile
* Fix lint
2024-03-14 13:56:17 +08:00
peilun-conflux
2ed6bca446
Process padding data in groups to avoid OOM. ( #27 )
2024-03-14 11:37:34 +08:00