Skip to content

Commit

Permalink
update logging messages
Browse files Browse the repository at this point in the history
Signed-off-by: udit-gulati <[email protected]>
  • Loading branch information
udit-gulati committed Jan 8, 2025
1 parent 3f01755 commit 40284d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bitcoinspv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ The code is adapted from [https://github.com/babylonchain/vigilante/tree/dev/rep
This relayer is responsible for:

- syncing the latest BTC blocks with a BTC node
- detecting and reporting inconsistency between BTC blockchain and Babylon BTCLightclient header chain
- detecting and reporting inconsistency between BTC blockchain and Lightclient header chain

Check failure on line 8 in bitcoinspv/README.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Files should end with a single newline character

bitcoinspv/README.md:8:91 MD047/single-trailing-newline Files should end with a single newline character https://github.com/DavidAnson/markdownlint/blob/v0.37.2/doc/md047.md
2 changes: 1 addition & 1 deletion bitcoinspv/block_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (r *Reporter) handleConnectedBlocks(event *types.BlockEvent) error {
headersToProcess = append(headersToProcess, ib)

if len(headersToProcess) == 0 {
r.logger.Debug("No new headers to submit to Babylon")
r.logger.Debug("No new headers to submit to Native light client")
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions bitcoinspv/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (r *Reporter) submitHeaderMsgs(msg []*wire.BlockHeader) error {
return err
}
r.logger.Infof(
"Successfully submitted %d headers to Babylon", len(msg),
"Successfully submitted %d headers to light client", len(msg),
)
return nil
})
Expand Down Expand Up @@ -151,7 +151,7 @@ func (r *Reporter) extractAndSubmitTransactions(ib *types.IndexedBlock) (int, er
"Successfully constructed MsgSpvProof %v", msgSpvProof,
)

// submit the checkpoint to Babylon
// submit the checkpoint to light client
res, err := r.nativeClient.VerifySPV(&msgSpvProof)
if err != nil {
r.logger.Errorf("Failed to submit MsgInsertBTCSpvProof with error %v", err)
Expand Down

0 comments on commit 40284d5

Please sign in to comment.