Skip to content

Commit a7ff4c4

Browse files
committed
add TODOs
1 parent 60cd6b0 commit a7ff4c4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

validator/src/double_proposal.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ pub struct DoubleProposalDetector {
3535
}
3636

3737
impl DoubleProposalDetector {
38+
// TODO: add network_id
39+
// TODO: record one proposal per validator per height
3840
pub fn new(block_number: u32) -> DoubleProposalDetector {
3941
DoubleProposalDetector {
4042
block_number,

validator/src/macro.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ where
145145
signature: SchnorrSignature| {
146146
if let Some(proof) = double_proposal_detector
147147
.lock()
148+
// TODO: are these already verified here?
148149
.observe_valid_proposal(address, proposal, signature)
149150
{
150151
on_double_proposal(proof);

0 commit comments

Comments
 (0)