* Only use tx seq for tx status.
* Return the first finalized tx by data root if possible.
This index is used for upload/download segments and file status check.
In all the cases, if there is a finalized transaction, we should use it.
* Supports to randomly sync historical files
* Add name for random file sync batcher
* Remove sync store metrics since multiple random batcher created
* opt log
* ignore pruned or finalized historical file
* Add python tests for historical file sync
* Hotfix for python tests caused by unexpected file deletion
* add more info when launch blockchain node failed
* add stdout if blockchain launch failed
* seek stdout and err to 0 if failed to launch blockchain
* Improve zg chain port to avoid port conflict in parallel execution
* fix float issue
* Fix py failures
* 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
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.
* 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.
* 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>