@ -3,12 +3,12 @@ package consensus
import (
import (
"bytes"
"bytes"
"encoding/binary"
"encoding/binary"
"harmony-benchmark/p2p"
"strconv"
"regexp"
"encoding/gob"
"encoding/gob"
"harmony-benchmark/blockchain"
"fmt"
"fmt"
"harmony-benchmark/blockchain"
"harmony-benchmark/p2p"
"regexp"
"strconv"
)
)
// Validator's consensus message dispatcher
// Validator's consensus message dispatcher
@ -226,7 +226,6 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) {
return
return
}
}
// TODO: verify aggregated commits with real schnor cosign verification
// TODO: verify aggregated commits with real schnor cosign verification
// TODO: return the signature(response) to leader
// TODO: return the signature(response) to leader
@ -253,7 +252,6 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) {
consensus . consensusId ++ // roll up one by one, until the next block is not received yet.
consensus . consensusId ++ // roll up one by one, until the next block is not received yet.
consensus . mutex . Unlock ( )
consensus . mutex . Unlock ( )
// TODO: think about when validators know about the consensus is reached.
// TODO: think about when validators know about the consensus is reached.
// For now, the blockchain is updated right here.
// For now, the blockchain is updated right here.
@ -277,7 +275,6 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) {
}
}
}
}
// Construct the response message to send to leader (assumption the consensus data is already verified)
// Construct the response message to send to leader (assumption the consensus data is already verified)