This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove v1 code * Add skelton code of syncer v2 * Add PeerHeap in syncer package * Fix build error * Separate syncer and gRPC client to improve extensibility * Remove NotifyStatus RPC call and add gossip * Removed UpdateLatestBlock from IBFT * Add retry mechanism in bulk sync * Remove peer that failed to sync in bulk sync * Add ID in gossip handler & remove peer from map on disconnection in syncer * Add timeout in GettingStatuses * Remove error check from stream.Recv * Rename method * Fix lint error * Fix minor issue * Subscribe connected event in syncer * Clean up code * Rename Status to SyncPeerStatus in proto * Fix wrong order of checks in syncer * Fix peerID type in syncer * Fix build error * Rename method in syncer * Fix key in PeerMap of Syncer package * Fix start progression in BulkSync * Remove GetBlock from SyncPeerService * Filter peer event in syncPeerClient * Fix peer.ID conversion * Fix lint error * Feature/sync v2 watch sync implementation (#598) * implement watchSync * Fix some linter errors and resolve conflicts * Rename newStatus channel * wait for a new status on end watch sync * Add guard to check ih bestPeer is not nil * Rename isValidator to match module encapsulation * Call watchSync on every newStatus * Close stream after featching blocks * Fix linter issues * Syncer V2 Unit Tests (#605) * implement watchSync * Fix some linter errors and resolve conflicts * Fix current failed tests * Add mocks for sycer tests * Add syncer unit tests * Add PeerMap unit test * Add SyncPeerService unit test * Fix mockBlockchain in syncer * Add bufcon in vendor * Add client unittests in syncer * Rename newStatus channel * wait for a new status on end watch sync * Add guard to check ih bestPeer is not nil * Rename isValidator to match module encapsulation * Call watchSync on every newStatus * Add TestPeerConnectionUpdateEventCh * Add unit tests for GetBlocks of SyncPeerClient * Fix failed test * Fix lint error * Close stream after featching blocks * Fix linter issues * Fix failed tests Co-authored-by: AleksaOpacic <[email protected]> * Remove GetBlock from gRPC in syncer * Rename logger name * Add more logs revert later * Add more logs revert later * Fix initialization of sync.Mutex * Fix codes based on reviews * Add comments in Syncer * Add syncer close * Add timeout per block in GetBlocks * Fix lint error * Add comments in syncer * Remove nolint * fix linter issues * Add comment in protoc * add todo * indentation * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * add todo * remove todo * rename symbol * add todo * add todo * add todo * add todo * add todo * add todo * rename package: backend * rename interface * rename struct * rename file * rename field * reorder fields * reorder func * init syncer field in ctor * remove description * add stub file: backend_dummy.go * add todo * write BuildProposal * write ID * write MaxFaultyNodes * add field currentValidatorset to Ibft * write Quorum/MaxFaultyNodes * add todo * add Verifier impl/IsValidBlock * write IsProposer * write IsValidProposalHash * write IsValidCommittedSeal * add todo * import go-ibft * add todo * add todo * implement MessageCOnstructor interface * implement IsValidSender * implement InsertBlock * add todo * add todo * add consensus field (go-ibft) * add new start method * add RunSequence in start method * update currentValidatorSet on init * update currentValidatorSet when processing headers * block time based transaciton execution * setup transport protocol with new ibft * gossip protoIBFT messages * rewire logic for new consensus * working impl * add cache to snapshot store and rewrite ibft start method * refactor consensus into separate struct * cleanup * clean up verifier.go * remove todo * clean up ibft wrapper * clean up messages.go * cleanup * clean up package * upgrade buildPrePrepareMessage * upgrade buildPrepareMessage * upgrade BuildCommitMessage * upgrade buildRoundChangeMessage * remove log * improve log * update interface signature * remove backend logger name * Cleanup after package import * Revise the test server ready condition * Resolve commit message seal issue * Resolve failing E2E tests * Provide backwards compatibility with the legacy seals * Resolve linting errors * Add source for dev consensus * Add constant for restore * Add constant for the syncer * Drop BulkSync * Add error log for block building * Upgrade the go-ibft package version * Add filter for stale insertion events * Merge * Add signer extraction in the txpool * Remove unused hooks * Deprecate legacy round timeout flag Co-authored-by: kourin <[email protected]> Co-authored-by: OpacicAleksa <[email protected]> Co-authored-by: Milos Zivkovic <[email protected]>
- Loading branch information
1 parent
31f8abc
commit 39a6abd
Showing
81 changed files
with
4,691 additions
and
4,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.