From b14638cb4d4b8f61f3bc1f543ed5f3903845fd80 Mon Sep 17 00:00:00 2001 From: brewmaster012 <88689859+brewmaster012@users.noreply.github.com> Date: Wed, 31 Jan 2024 12:51:31 -0800 Subject: [PATCH] disable blame votes --- zetaclient/tss_signer.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/zetaclient/tss_signer.go b/zetaclient/tss_signer.go index dd75835024..33e4d28714 100644 --- a/zetaclient/tss_signer.go +++ b/zetaclient/tss_signer.go @@ -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 { @@ -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 @@ -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 { @@ -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