File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments