From ba42b41cace2e1866b74df3c47cc78b6d0ce5275 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Mon, 9 Sep 2024 09:27:31 +0100 Subject: [PATCH] main: Update ticket buyer startup logging. In all code and log messages the ticket buyer is referred to by name, however in startup/shutdown logging it was given the more vague name "auto transaction creator". Its also helpful to log whether or not the ticket buyer is purchasing mixed tickets because that has a large impact on its behaviour and potential failure modes. --- dcrwallet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dcrwallet.go b/dcrwallet.go index b2e32e0f1..85cc99c0b 100644 --- a/dcrwallet.go +++ b/dcrwallet.go @@ -364,12 +364,12 @@ func run(ctx context.Context) error { c.ChangeAccount = changeAccount c.VSP = vspClient }) - log.Infof("Starting auto transaction creator") + log.Infof("Starting auto ticker buyer (mixing=%t)", cfg.Mixing) tbdone := make(chan struct{}) go func() { err := tb.Run(ctx, passphrase) if err != nil && !errors.Is(err, context.Canceled) { - log.Errorf("Transaction creator ended: %v", err) + log.Errorf("Auto ticker buyer ended: %v", err) } tbdone <- struct{}{} }()