Skip to content

Commit

Permalink
use GetLastBlockHeightScanned() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jan 12, 2024
1 parent 5df11e2 commit d8c9365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetaclient/bitcoin_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ func (ob *BitcoinChainClient) LoadLastBlock() error {
if ob.chain.ChainId == 18444 { // bitcoin regtest: start from block 100
ob.SetLastBlockHeightScanned(100)
}
ob.logger.ChainLogger.Info().Msgf("%s: start scanning from block %d", ob.chain.String(), ob.lastBlock)
ob.logger.ChainLogger.Info().Msgf("%s: start scanning from block %d", ob.chain.String(), ob.GetLastBlockHeightScanned())

return nil
}
Expand Down

0 comments on commit d8c9365

Please sign in to comment.