MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / Propose

Method Propose

config/config.go:1002–1006  ·  view source on GitHub ↗

Propose returns the amount of time to wait for a proposal

(round int32)

Source from the content-addressed store, hash-verified

1000
1001// Propose returns the amount of time to wait for a proposal
1002func (cfg *ConsensusConfig) Propose(round int32) time.Duration {
1003 return time.Duration(
1004 cfg.TimeoutPropose.Nanoseconds()+cfg.TimeoutProposeDelta.Nanoseconds()*int64(round),
1005 ) * time.Nanosecond
1006}
1007
1008// Prevote returns the amount of time to wait for straggler votes after receiving any +2/3 prevotes
1009func (cfg *ConsensusConfig) Prevote(round int32) time.Duration {

Calls

no outgoing calls