Clear the unused variables

pull/55/head
Rongjian Lan 6 years ago
parent 491078febb
commit da7959f9e3
  1. 8
      consensus/consensus_validator.go

@ -191,12 +191,6 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) {
offset += 64 offset += 64
//#### END: Read payload data //#### 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. // Update readyByConsensus for attack.
attack.GetInstance().UpdateConsensusReady(consensusId) 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. // 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 := crypto.Ed25519Curve.Point()
aggCommitment.UnmarshalBinary(aggreCommit[:32]) // TODO: figure out whether it's 33 bytes or 32 bytes aggCommitment.UnmarshalBinary(aggreCommit[:32]) // TODO: figure out whether it's 33 bytes or 32 bytes
aggKey := crypto.Ed25519Curve.Point() aggKey := crypto.Ed25519Curve.Point()

Loading…
Cancel
Save