-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback consensus through lower num of signatures #2327
Fallback consensus through lower num of signatures #2327
Conversation
…of-signatures # Conflicts: # consensus/interface.go # consensus/mock/consensusDataContainerMock.go # consensus/mock/mockTestInitializer.go # consensus/spos/consensusCore.go # consensus/spos/consensusCoreValidator.go # consensus/spos/consensusCore_test.go # consensus/spos/errors.go # consensus/spos/interface.go # node/node.go
node/node.go
Outdated
@@ -151,8 +151,9 @@ type Node struct { | |||
mutQueryHandlers syncGo.RWMutex | |||
queryHandlers map[string]debug.QueryHandler | |||
|
|||
heartbeatHandler *componentHandler.HeartbeatHandler | |||
peerHonestyHandler consensus.PeerHonestyHandler | |||
heartbeatHandler *componentHandler.HeartbeatHandler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use an interface here instead?
it will be easier for me when merging with soft restart feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪑 💯
Acceptance of a temporary lower threshold for number of signatures needed in metachain consensus (ex. 1/2 + 1 (~51%) instead 2/3 + 1 (~67%) ) will be done only if:
there is a stuck situation (> 50 rounds without a new block created)
block which can not be created is the start of epoch meta block
How to be tested ?