NewCommitSigForBlock returns new CommitSig with BlockIDFlagCommit.
(signature []byte, valAddr Address, ts time.Time)
| 601 | |
| 602 | // NewCommitSigForBlock returns new CommitSig with BlockIDFlagCommit. |
| 603 | func 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 | |
| 612 | func MaxCommitBytes(valCount int) int64 { |
| 613 | // From the repeated commit sig field |
no outgoing calls