Skip to content

Commit

Permalink
resolved conflict in ObserveInTx()
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed May 18, 2024
1 parent 914a9a6 commit 4bc58ca
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions zetaclient/chains/bitcoin/observer/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,6 @@ func (ob *Observer) ObserveInTx() error {
// filter incoming txs to TSS address
tssAddress := ob.Tss.BTCAddress()

// add block header to zetacore
// TODO: consider having a separate ticker(from TSS scaning) for posting block headers
// https://github.com/zeta-chain/node/issues/1847
blockHeaderVerification, found := ob.coreContext.GetBlockHeaderEnabledChains(ob.chain.ChainId)
if found && blockHeaderVerification.Enabled {
err = ob.postBlockHeader(blockNumber)
if err != nil {
ob.logger.InTx.Warn().Err(err).Msgf("observeInTxBTC: error posting block header %d", blockNumber)
}
}

// #nosec G701 always positive
inTxs, err := FilterAndParseIncomingTx(
ob.rpcClient,
Expand Down

0 comments on commit 4bc58ca

Please sign in to comment.