From 29d8c85b3c93bf1df0c735d4718a308e1b9fb2bf Mon Sep 17 00:00:00 2001 From: kevinssgh Date: Fri, 26 Jan 2024 14:21:36 -0500 Subject: [PATCH] disable blame votes --- zetaclient/tss_signer.go | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/zetaclient/tss_signer.go b/zetaclient/tss_signer.go index dd75835024..0d0457e47d 100644 --- a/zetaclient/tss_signer.go +++ b/zetaclient/tss_signer.go @@ -200,14 +200,16 @@ 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 - } + //log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash) // Increment Blame counter for _, node := range ksRes.Blame.BlameNodes { @@ -219,7 +221,6 @@ 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) } signature := ksRes.Signatures @@ -273,14 +274,16 @@ 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) + //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 - } + //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 + //} + // + //log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash) // Increment Blame counter for _, node := range ksRes.Blame.BlameNodes { @@ -291,8 +294,6 @@ func (tss *TSS) SignBatch(digests [][]byte, height uint64, nonce uint64, chain * } counter.Inc() } - - log.Info().Msgf("keysign posted blame data tx hash: %s", zetaHash) } signatures := ksRes.Signatures