From ccccb5e1a491f8ba99e3add24afc9db3c2719476 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 25 Sep 2024 11:54:25 -0500 Subject: [PATCH] make a couple wallet bool values pointers to not add a false value if not in the config (#165) --- pkg/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 38fd310..00de2e5 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -384,12 +384,12 @@ type WalletConfig struct { ResetSyncForFingerprint *int `yaml:"reset_sync_for_fingerprint" json:"reset_sync_for_fingerprint"` SpamFilterAfterNTxs uint16 `yaml:"spam_filter_after_n_txs" json:"spam_filter_after_n_txs"` XCHSpamAmount uint64 `yaml:"xch_spam_amount" json:"xch_spam_amount"` - EnableNotifications bool `yaml:"enable_notifications" json:"enable_notifications"` + EnableNotifications *bool `yaml:"enable_notifications,omitempty" json:"enable_notifications"` RequiredNotificationAmount uint64 `yaml:"required_notification_amount" json:"required_notification_amount"` UseDeltaSync bool `yaml:"use_delta_sync" json:"use_delta_sync"` // PuzzleDecorators AutoClaim AutoClaim `yaml:"auto_claim" json:"auto_claim"` - AutoSignTxs bool `yaml:"auto_sign_txs" json:"auto_sign_txs"` + AutoSignTxs *bool `yaml:"auto_sign_txs,omitempty" json:"auto_sign_txs,omitempty"` } // AutoClaim settings for auto claim in wallet