MCPcopy Create free account
hub / github.com/tendermint/tendermint / Precommit

Method Precommit

config/config.go:1206–1210  ·  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

1204
1205// Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits
1206func (cfg *ConsensusConfig) Precommit(round int32) time.Duration {
1207 return time.Duration(
1208 cfg.TimeoutPrecommit.Nanoseconds()+cfg.TimeoutPrecommitDelta.Nanoseconds()*int64(round),
1209 ) * time.Nanosecond
1210}
1211
1212// Commit returns the amount of time to wait for straggler votes after receiving +2/3 precommits
1213// for a single block (ie. a commit).

Callers 11

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