{2 bytes Node ID} {4 bytes for random} {2 bytes zero}
(id uint64)
| 77 | |
| 78 | // {2 bytes Node ID} {4 bytes for random} {2 bytes zero} |
| 79 | func (n *node) initProposalKey(id uint64) error { |
| 80 | x.AssertTrue(id != 0) |
| 81 | var err error |
| 82 | proposalKey, err = x.ProposalKey(n.Id) |
| 83 | if err != nil { |
| 84 | return err |
| 85 | } |
| 86 | return nil |
| 87 | } |
| 88 | |
| 89 | func (n *node) uniqueKey() uint64 { |
| 90 | return atomic.AddUint64(&proposalKey, 1) |