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

Function NewCommitSigForBlock

types/block.go:603–610  ·  view source on GitHub ↗

NewCommitSigForBlock returns new CommitSig with BlockIDFlagCommit.

(signature []byte, valAddr Address, ts time.Time)

Source from the content-addressed store, hash-verified

601
602// NewCommitSigForBlock returns new CommitSig with BlockIDFlagCommit.
603func NewCommitSigForBlock(signature []byte, valAddr Address, ts time.Time) CommitSig {
604 return CommitSig{
605 BlockIDFlag: BlockIDFlagCommit,
606 ValidatorAddress: valAddr,
607 Timestamp: ts,
608 Signature: signature,
609 }
610}
611
612func MaxCommitBytes(valCount int) int64 {
613 // From the repeated commit sig field

Callers 1

TestBeginBlockValidatorsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestBeginBlockValidatorsFunction · 0.74