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

Method Precommit

config/config.go:1016–1020  ·  view source on GitHub ↗

Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits

(round int32)

Source from the content-addressed store, hash-verified

1014
1015// Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits
1016func (cfg *ConsensusConfig) Precommit(round int32) time.Duration {
1017 return time.Duration(
1018 cfg.TimeoutPrecommit.Nanoseconds()+cfg.TimeoutPrecommitDelta.Nanoseconds()*int64(round),
1019 ) * time.Nanosecond
1020}
1021
1022// Commit returns the amount of time to wait for straggler votes after receiving +2/3 precommits
1023// for a single block (ie. a commit).

Callers 12

enterPrecommitWaitMethod · 0.80
enterPrecommitWaitMethod · 0.80
TestStateLockNoPOLFunction · 0.80
TestStateLockPOLRelockFunction · 0.80
TestStateLockPOLUnlockFunction · 0.80
TestStateLockPOLSafety1Function · 0.80
TestStateLockPOLSafety2Function · 0.80
TestProposeValidBlockFunction · 0.80
TestStateHalt1Function · 0.80

Calls

no outgoing calls

Tested by 10

TestStateLockNoPOLFunction · 0.64
TestStateLockPOLRelockFunction · 0.64
TestStateLockPOLUnlockFunction · 0.64
TestStateLockPOLSafety1Function · 0.64
TestStateLockPOLSafety2Function · 0.64
TestProposeValidBlockFunction · 0.64
TestStateHalt1Function · 0.64