From 37817f192ec6c4b142e76381df2e936a3aa7f1a1 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Sat, 24 Oct 2020 16:34:52 +0200 Subject: [PATCH] config: add reset-wallet-transactions flag --- config.go | 2 ++ sample-lnd.conf | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/config.go b/config.go index f3915ac11..a2e4546b2 100644 --- a/config.go +++ b/config.go @@ -244,6 +244,8 @@ type Config struct { NoSeedBackup bool `long:"noseedbackup" description:"If true, NO SEED WILL BE EXPOSED -- EVER, AND THE WALLET WILL BE ENCRYPTED USING THE DEFAULT PASSPHRASE. THIS FLAG IS ONLY FOR TESTING AND SHOULD NEVER BE USED ON MAINNET."` + ResetWalletTransactions bool `long:"reset-wallet-transactions" description:"Removes all transaction history from the on-chain wallet on startup, forcing a full chain rescan starting at the wallet's birthday. Implements the same functionality as btcwallet's dropwtxmgr command. Should be set to false after successful execution to avoid rescanning on every restart of lnd."` + PaymentsExpirationGracePeriod time.Duration `long:"payments-expiration-grace-period" description:"A period to wait before force closing channels with outgoing htlcs that have timed-out and are a result of this node initiated payments."` TrickleDelay int `long:"trickledelay" description:"Time in milliseconds between each release of announcements to the network"` ChanEnableTimeout time.Duration `long:"chan-enable-timeout" description:"The duration that a peer connection must be stable before attempting to send a channel update to reenable or cancel a pending disables of the peer's channels on the network."` diff --git a/sample-lnd.conf b/sample-lnd.conf index 91be6357d..43f6e37a6 100644 --- a/sample-lnd.conf +++ b/sample-lnd.conf @@ -226,6 +226,12 @@ ; BE USED ON MAINNET. ; noseedbackup=true +; Removes all transaction history from the on-chain wallet on startup, forcing a +; full chain rescan starting at the wallet's birthday. Implements the same +; functionality as btcwallet's dropwtxmgr command. Should be set to false after +; successful execution to avoid rescanning on every restart of lnd. +; reset-wallet-transactions=true + ; The smallest channel size (in satoshis) that we should accept. Incoming ; channels smaller than this will be rejected, default value 20000. ; minchansize=