Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sweepbatcher: log confirmed batch tx id #818

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

hieblmi
Copy link
Collaborator

@hieblmi hieblmi commented Sep 2, 2024

Log confirmed batch tx ids.

@hieblmi hieblmi requested a review from starius September 2, 2024 07:43
@@ -1997,7 +1997,7 @@ func (b *batch) handleSpend(ctx context.Context, spendTx *wire.MsgTx) error {
// handleConf handles a confirmation notification. This is the final step of the
// batch. Here we signal to the batcher that this batch was completed.
func (b *batch) handleConf(ctx context.Context) error {
b.log.Infof("confirmed")
b.log.Infof("confirmed in txid %s", b.batchTxid.String())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to remove .String(). If for some reason batchTxid is nil, b.batchTxid.String() panics. If we pass b.batchTxid, it just prints as <nil>.

@hieblmi hieblmi merged commit 64b0e24 into lightninglabs:master Sep 2, 2024
4 checks passed
@hieblmi hieblmi deleted the in-batch-logging branch September 2, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants