From 5bcc402672d815d89e69a6c0bbdbde29050939ec Mon Sep 17 00:00:00 2001 From: brewmaster012 <> Date: Sun, 5 Nov 2023 11:18:18 -0600 Subject: [PATCH] fix linter complaints --- .../localnet/orchestrator/smoketest/test_block_headers.go | 3 +++ zetaclient/bitcoin_client.go | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/localnet/orchestrator/smoketest/test_block_headers.go b/contrib/localnet/orchestrator/smoketest/test_block_headers.go index 7ce5abd0e8..0180f0e4e1 100644 --- a/contrib/localnet/orchestrator/smoketest/test_block_headers.go +++ b/contrib/localnet/orchestrator/smoketest/test_block_headers.go @@ -1,3 +1,6 @@ +//go:build PRIVNET +// +build PRIVNET + package main import ( diff --git a/zetaclient/bitcoin_client.go b/zetaclient/bitcoin_client.go index dd3990914a..200e985405 100644 --- a/zetaclient/bitcoin_client.go +++ b/zetaclient/bitcoin_client.go @@ -367,7 +367,10 @@ func (ob *BitcoinChainClient) observeInTx() error { // add block header to zetacore // #nosec G701 always positive - ob.postBlockHeader(bn) + err = ob.postBlockHeader(bn) + if err != nil { + ob.logger.WatchInTx.Warn().Err(err).Msgf("error posting block header %d", bn) + } tssAddress := ob.Tss.BTCAddress() // #nosec G701 always positive