0g-storage-node/node/router/src
Bo QIU 9b68a8b7d7
Some checks failed
abi-consistent-check / build-and-compare (push) Has been cancelled
code-coverage / unittest-cov (push) Has been cancelled
rust / check (push) Has been cancelled
rust / test (push) Has been cancelled
rust / lints (push) Has been cancelled
functional-test / test (push) Has been cancelled
Implement file sync protocol V2 (#249)
* Add new P2P protocol NewFile

* Publish NewFile message when any file finalized

* handle NewFile message in router

* handle NewFile in sync servic to write in db

* use propagation source to handle NewFile message

* Disable sequential sync and store new file in v2 sync store

* Add shard config in FindFile

* Add AnnounceFile RPC message in network layer

* do not propagate FindFile to whole network

* Mark peer connected if FileAnnouncement RPC message received

* fix unit test failures

* Change P2P protocol version

* Ignore py tests of sequential auto sync

* Add py test for auto sync v2

* fmt code

* remove dummy code in py test

* fix random test failure

* Add comments

* Enable file sync protocol v2 in config file by default
2024-10-28 14:56:08 +08:00
..
batcher.rs Enhance P2P network protocol to support batch messages for performance concern (#173) 2024-08-29 09:55:24 +08:00
lib.rs Supports custom public ip to announce file (#233) 2024-10-14 14:57:42 +08:00
libp2p_event_handler.rs Implement file sync protocol V2 (#249) 2024-10-28 14:56:08 +08:00
metrics.rs Implement file sync protocol V2 (#249) 2024-10-28 14:56:08 +08:00
peer_manager.rs Filter out file announcement of private ip (#113) 2024-07-08 18:45:55 +08:00
service.rs Implement file sync protocol V2 (#249) 2024-10-28 14:56:08 +08:00