You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accept a single rescan timestamp for all descriptors
Bitcoin Core scans since the earliest timestamp provided within the
`importmulti` batch, so specifying different timestamps isn't really
very useufl.
This is still supported via the lower-level Rust API, but not exposed
through the CLI/FF Interfaces, which are now simplified.
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,9 +136,10 @@ You can set multiple `--xpub`s to track. This also supports ypubs and zpubs.
136
136
137
137
You can also track output script descriptors using `--descriptor`. For example, `--descriptor 'wpkh(<xpub>/0/*)'`.
138
138
139
-
Rescanning can be controlled with `--xpub <xpub>@<rescan>`. You can specify `<rescan>` with the wallet birthday formatted
140
-
as `yyyy-mm-dd` to scan from that date onwards only, or use `now` to disable rescanning and watch for new transactions only (for newly created wallets).
141
-
*Setting this can significantly speed up scanning and is highly recommended.*
139
+
To speed up rescanning for historical transactions, you can provide the wallet creation date with `--rescan-since <timestmap>`.
140
+
The timestamp can be a `YYYY-MM-DD` formatted string, or 'now' to disable rescanning and watch for new
141
+
transactions only (for newly created wallets).
142
+
*Setting this is highly recommended.*
142
143
143
144
By default, the Electrum server will be bound on port `50001`/`60001`/`60401` (according to the network)
144
145
and the HTTP server will be bound on port `3060`. This can be controlled with `--electrum-addr`
@@ -166,7 +167,8 @@ For example:
166
167
NETWORK=regtest
167
168
GAP_LIMIT=20
168
169
XPUBS='<xpub1>;<xpub2>'
169
-
DESCRIPTORS='pkh(<xpub>/0/*)@2020-01-01'
170
+
DESCRIPTORS='pkh(<xpub>/0/*)'
171
+
RESCAN_SINCE=2020-01-01
170
172
```
171
173
172
174
Setting the environment variables directly is also supported.
@@ -187,7 +189,7 @@ This removes several large dependencies and disables the `track-spends` database
187
189
188
190
You can use bwt with pruning, but:
189
191
190
-
1. You will have to provide a rescan date (via `--xpub <xpub>@<rescan>`) that is within the range of non-pruned blocks, or use `none` to disable rescanning entirely.
192
+
1. You will have to provide a rescan date (via `--rescan-since`) that is within the range of non-pruned blocks, or use `none` to disable rescanning entirely.
191
193
192
194
2. Electrum needs to be run with `--skipmerklecheck` to tolerate missing SPV proofs for transactions in pruned blocks.
Copy file name to clipboardExpand all lines: src/config.rs
+56-39Lines changed: 56 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -127,37 +127,61 @@ pub struct Config {
127
127
#[cfg_attr(feature = "cli", structopt(
128
128
short = "d",
129
129
long = "descriptor",
130
-
help = "Descriptors to track (scans for history from the genesis by default, use <desc>@<yyyy-mm-dd> or <desc>@<unix-epoch> to specify a rescan timestmap, or <desc>@none to disable rescan)",
0 commit comments