@@ -22,7 +22,6 @@ import (
22
22
"github.com/cosmos/cosmos-sdk/x/slashing"
23
23
abci "github.com/tendermint/tendermint/abci/types"
24
24
"github.com/tendermint/tendermint/crypto"
25
- tmtypes "github.com/tendermint/tendermint/types"
26
25
"github.com/zigbee-alliance/distributed-compliance-ledger/x/validator/internal/types"
27
26
)
28
27
@@ -32,20 +31,24 @@ func (k Keeper) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) {
32
31
// Iterate over all the validators which *should* have signed this block
33
32
// store whether or not they have actually signed it and jail any
34
33
// which have missed too many blocks in a window
35
- for _ , voteInfo := range req .LastCommitInfo .GetVotes () {
36
- k .HandleValidatorSignature (ctx , voteInfo .Validator .Address , voteInfo .Validator .Power , voteInfo .SignedLastBlock )
37
- }
34
+ // nolint: godox
35
+ // TODO: Jail is disabled because unjail functionality is not implemented yet.
36
+ //for _, voteInfo := range req.LastCommitInfo.GetVotes() {
37
+ // k.HandleValidatorSignature(ctx, voteInfo.Validator.Address, voteInfo.Validator.Power, voteInfo.SignedLastBlock)
38
+ //}
38
39
39
40
// Iterate through any newly discovered evidence of infraction
40
41
// Slash all validators who contributed to infractions.
41
- for _ , evidence := range req .ByzantineValidators {
42
- switch evidence .Type {
43
- case tmtypes .ABCIEvidenceTypeDuplicateVote :
44
- k .HandleDoubleSign (ctx , evidence .Validator .Address , evidence .Height , evidence .Time , evidence .Validator .Power )
45
- default :
46
- k .Logger (ctx ).Error (fmt .Sprintf ("ignored unknown evidence type: %s" , evidence .Type ))
47
- }
48
- }
42
+ // nolint: godox
43
+ // TODO: Jail is disabled because unjail functionality is not implemented yet.
44
+ //for _, evidence := range req.ByzantineValidators {
45
+ // switch evidence.Type {
46
+ // case tmtypes.ABCIEvidenceTypeDuplicateVote:
47
+ // k.HandleDoubleSign(ctx, evidence.Validator.Address, evidence.Height, evidence.Time, evidence.Validator.Power)
48
+ // default:
49
+ // k.Logger(ctx).Error(fmt.Sprintf("ignored unknown evidence type: %s", evidence.Type))
50
+ // }
51
+ //}
49
52
}
50
53
51
54
// Calculate the ValidatorUpdates for the current block
0 commit comments