Skip to content

Commit ada258f

Browse files
committed
doc: release notes for avoid_reuse
1 parent 2766955 commit ada258f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

doc/release-notes-13756.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Coin selection
2+
--------------
3+
4+
### Reuse Avoidance
5+
6+
A new wallet flag `avoid_reuse` has been added (default off). When enabled,
7+
a wallet will distinguish between used and unused addresses, and default to not
8+
use the former in coin selection.
9+
10+
(Note: rescanning the blockchain is required, to correctly mark previously
11+
used destinations.)
12+
13+
Together with "avoid partial spends" (present as of Bitcoin v0.17), this
14+
addresses a serious privacy issue where a malicious user can track spends by
15+
peppering a previously paid to address with near-dust outputs, which would then
16+
be inadvertently included in future payments.
17+
18+
New RPCs
19+
--------
20+
21+
- A new `setwalletflag` RPC sets/unsets flags for an existing wallet.
22+
23+
24+
Updated RPCs
25+
------------
26+
27+
Several RPCs have been updated to include an "avoid_reuse" flag, used to control
28+
whether already used addresses should be left out or included in the operation.
29+
These include:
30+
31+
- createwallet
32+
- getbalance
33+
- sendtoaddress
34+
35+
In addition, `sendtoaddress` has been changed to enable `-avoidpartialspends` when
36+
`avoid_reuse` is enabled.
37+
38+
The listunspent RPC has also been updated to now include a "reused" bool, for nodes
39+
with "avoid_reuse" enabled.

0 commit comments

Comments
 (0)