Remove deprecated accepted route #514
Open
+22
−91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Summary
enableAcceptedRoute
config flagaccepted
route behind the flag/accepted
endpointTesting
npm test
PR Type
Enhancement, Documentation
Description
Add
enableAcceptedRoute
config flag to control deprecated routeRemove unused acceptance notification code and logic
Gate
/accepted
route behind new config flag for legacy supportUpdate documentation to reflect deprecation of
/accepted
endpointChanges walkthrough 📝
server.ts
Add config flag to control deprecated `/accepted` route
src/config/server.ts
enableAcceptedRoute
flag to server configuration.false
.routes.ts
Gate `/accepted` route behind config flag
src/p2p/Join/routes.ts
/accepted
route.acceptedRoute
behindenableAcceptedRoute
configflag.
index.ts
Remove deprecated acceptance notification logic
src/p2p/Join/v2/index.ts
/accepted
route.select.ts
Remove acceptance notification and related code
src/p2p/Join/v2/select.ts
notifyNewestJoinedConsensors
and related acceptancenotification code.
shardus-types.ts
Add config flag to server types for `/accepted` route
src/shardus/shardus-types.ts
enableAcceptedRoute
toServerConfiguration
interface.join-protocol-v2.md
Update docs to reflect `/accepted` route deprecation
docs/join-protocol-v2/join-protocol-v2.md
/accepted
endpoint.
joined
route.