Skip to content

Commit

Permalink
disable blame votes
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jan 31, 2024
1 parent 52e3970 commit b14638c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions zetaclient/tss_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ func (tss *TSS) Sign(digest []byte, height uint64, nonce uint64, chain *common.C
if ksRes.Status == thorcommon.Fail {
log.Warn().Msgf("keysign status FAIL posting blame to core, blaming node(s): %#v", ksRes.Blame.BlameNodes)

digest := hex.EncodeToString(digest)
index := observertypes.GetBlameIndex(chain.ChainId, nonce, digest, height)
//digest := hex.EncodeToString(digest)
//index := observertypes.GetBlameIndex(chain.ChainId, nonce, digest, height)

zetaHash, err := tss.CoreBridge.PostBlameData(&ksRes.Blame, chain.ChainId, index)
if err != nil {
log.Error().Err(err).Msg("error sending blame data to core")
return [65]byte{}, err
}
//zetaHash, err := tss.CoreBridge.PostBlameData(&ksRes.Blame, chain.ChainId, index)
//if err != nil {
// log.Error().Err(err).Msg("error sending blame data to core")
// return [65]byte{}, err
//}

// Increment Blame counter
for _, node := range ksRes.Blame.BlameNodes {
Expand All @@ -219,7 +219,7 @@ func (tss *TSS) Sign(digest []byte, height uint64, nonce uint64, chain *common.C
counter.Inc()
}

log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash)
//log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash)
}
signature := ksRes.Signatures

Expand Down Expand Up @@ -273,14 +273,14 @@ func (tss *TSS) SignBatch(digests [][]byte, height uint64, nonce uint64, chain *

if ksRes.Status == thorcommon.Fail {
log.Warn().Msg("keysign status FAIL posting blame to core")
digest := combineDigests(digestBase64)
index := observertypes.GetBlameIndex(chain.ChainId, nonce, hex.EncodeToString(digest), height)

zetaHash, err := tss.CoreBridge.PostBlameData(&ksRes.Blame, chain.ChainId, index)
if err != nil {
log.Error().Err(err).Msg("error sending blame data to core")
return [][65]byte{}, err
}
//digest := combineDigests(digestBase64)
//index := observertypes.GetBlameIndex(chain.ChainId, nonce, hex.EncodeToString(digest), height)
//
//zetaHash, err := tss.CoreBridge.PostBlameData(&ksRes.Blame, chain.ChainId, index)
//if err != nil {
// log.Error().Err(err).Msg("error sending blame data to core")
// return [][65]byte{}, err
//}

// Increment Blame counter
for _, node := range ksRes.Blame.BlameNodes {
Expand All @@ -292,7 +292,7 @@ func (tss *TSS) SignBatch(digests [][]byte, height uint64, nonce uint64, chain *
counter.Inc()
}

log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash)
//log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash)
}

signatures := ksRes.Signatures
Expand Down

0 comments on commit b14638c

Please sign in to comment.