From da7959f9e3852912d458f30f236ff358bc70c943 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sat, 4 Aug 2018 20:05:43 +0800 Subject: [PATCH] Clear the unused variables --- consensus/consensus_validator.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/consensus/consensus_validator.go b/consensus/consensus_validator.go index e66445950..fc41856fb 100644 --- a/consensus/consensus_validator.go +++ b/consensus/consensus_validator.go @@ -191,12 +191,6 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) { offset += 64 //#### END: Read payload data - // TODO: make use of the data. This is just to avoid the unused variable warning - _ = aggreCommit - _ = aggreKey - _ = challenge - _ = signature - // Update readyByConsensus for attack. attack.GetInstance().UpdateConsensusReady(consensusId) @@ -241,8 +235,6 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) { // If I received previous block (which haven't been processed. I will roll up to current block if everything checks. } - // TODO: verify aggregated commitments with real schnor cosign verification - aggCommitment := crypto.Ed25519Curve.Point() aggCommitment.UnmarshalBinary(aggreCommit[:32]) // TODO: figure out whether it's 33 bytes or 32 bytes aggKey := crypto.Ed25519Curve.Point()