Skip to content

Commit 7e1634a

Browse files
committed
Release notes: edit previously-detached notes
1 parent e7415a5 commit 7e1634a

File tree

1 file changed

+121
-130
lines changed

1 file changed

+121
-130
lines changed

doc/release-notes.md

Lines changed: 121 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -70,161 +70,155 @@ New RPCs
7070
- `getbalances` returns an object with all balances (`mine`,
7171
`untrusted_pending` and `immature`). Please refer to the RPC help of
7272
`getbalances` for details. The new RPC is intended to replace
73-
`getunconfirmedbalance` and the balance fields in `getwalletinfo`, as well as
74-
`getbalance`. The old calls may be removed in a future version.
73+
`getbalance`, `getunconfirmedbalance`, and the balance fields in
74+
`getwalletinfo`. These old calls and fields may be removed in a
75+
future version. (#15930, #16239)
7576

76-
- A new `setwalletflag` RPC sets/unsets flags for an existing wallet.
77+
- `setwalletflag` sets and unsets wallet flags that enable or disable
78+
features specific to that existing wallet, such as the new
79+
`avoid_reuse` feature documented elsewhere in these release notes.
80+
(#13756)
7781

7882
Updated RPCs
7983
------------
8084

8185
Note: some low-level RPC changes mainly useful for testing are described in the
8286
Low-level Changes section below.
8387

84-
- The `sendmany` RPC had an argument `minconf` that was not well specified and
85-
would lead to RPC errors even when the wallet's coin selection would succeed.
86-
The `sendtoaddress` RPC never had this check, so to normalize the behavior,
87-
`minconf` is now ignored in `sendmany`. If the coin selection does not
88-
succeed due to missing coins, it will still throw an RPC error. Be reminded
89-
that coin selection is influenced by the `-spendzeroconfchange`,
90-
`-limitancestorcount`, `-limitdescendantcount` and `-walletrejectlongchains`
91-
command line arguments.
92-
93-
- Several RPCs have been updated to include an "avoid_reuse" flag, used
94-
to control whether already used addresses should be left out or
95-
included in the operation. These include:
96-
97-
- createwallet
98-
- getbalance
99-
- getbalances
100-
- sendtoaddress
101-
102-
In addition, `sendtoaddress` has been changed to avoid partial spends
103-
when `avoid_reuse` is enabled (if not already enabled via the
104-
`-avoidpartialspends` command line flag), as it would otherwise risk
105-
using up the "wrong" UTXO for an address reuse case.
106-
107-
The listunspent RPC has also been updated to now include a "reused"
108-
bool, for nodes with "avoid_reuse" enabled.
109-
110-
- The `getblockstats` RPC is faster for fee calculation by using
111-
BlockUndo data. Also , `-txindex` is no longer required and
112-
`getblockstats` works for all non-pruned blocks.
113-
114-
- `createwallet` can now create encrypted wallets if a non-empty
115-
passphrase is specified.
116-
117-
- The `utxoupdatepsbt` RPC method has been updated to take a
118-
`descriptors` argument. When provided, input and output scripts and
119-
keys will be filled in when known, and P2SH-witness inputs will be
120-
filled in from the UTXO set when a descriptor is provided that shows
121-
they're spending segwit outputs.
122-
123-
See the RPC help text for full details.
124-
125-
- The -maxtxfee setting no longer has any effect on non-wallet RPCs.
126-
127-
The `sendrawtransaction` and `testmempoolaccept` RPC methods previously
128-
accepted an `allowhighfees` parameter to fail the mempool acceptance in case
129-
the transaction's fee would exceed the value of the command line argument
130-
`-maxtxfee`. To uncouple the RPCs from the global option, they now have a
131-
hardcoded default for the maximum transaction fee, that can be changed for
132-
both RPCs on a per-call basis with the `maxfeerate` parameter. The
133-
`allowhighfees` boolean option has been removed and replaced by the
134-
`maxfeerate` numeric option.
135-
136-
- In getmempoolancestors, getmempooldescendants, getmempoolentry and
137-
getrawmempool RPCs, to be consistent with the returned value and other
138-
RPCs such as getrawtransaction, vsize has been added and size is now
139-
deprecated. size will only be returned if bitcoind is started with
140-
`-deprecatedrpc=size`.
141-
142-
- The RPC `getwalletinfo` response now includes the `scanning` key with
143-
an object if there is a scanning in progress or `false` otherwise.
144-
Currently the object has the scanning duration and progress.
145-
146-
- `createwallet` now returns a warning if an empty string is used as an
147-
encryption password, and does not encrypt the wallet, instead of
148-
raising an error. This makes it easier to disable encryption but also
149-
specify other options when using the `bitcoin-cli` tool.
88+
- `sendmany` no longer has a `minconf` argument. This argument was not
89+
well specified and would lead to RPC errors even when the wallet's
90+
coin selection succeeded. Users who want to influence coin selection
91+
can use the existing `-spendzeroconfchange`, `-limitancestorcount`,
92+
`-limitdescendantcount` and `-walletrejectlongchains` configuration
93+
arguments. (#15596)
94+
95+
- `getbalance` and `sendtoaddress`, plus the new RPCs `getbalances` and
96+
`createwallet`, now accept an "avoid_reuse" parameter that controls
97+
whether already used addresses should be included in the operation.
98+
Additionally, `sendtoaddress` will avoid partial spends when
99+
`avoid_reuse` is enabled even if this feature is not already enabled
100+
via the `-avoidpartialspends` command line flag because not doing so
101+
would risk using up the "wrong" UTXO for an address reuse case.
102+
(#13756)
103+
104+
- `listunspent` now returns a "reused" bool for each output if the
105+
wallet flag "avoid_reuse" is enabled. (#13756)
106+
107+
- `getblockstats` now uses BlockUndo data instead of the transaction
108+
index, making it much faster, no longer dependent on the `-txindex`
109+
configuration option, and functional for all non-pruned blocks.
110+
(#14802)
111+
112+
- `utxoupdatepsbt` now accepts a `descriptors` parameter that will fill
113+
out input and output scripts and keys when known. P2SH-witness inputs
114+
will be filled in from the UTXO set when a descriptor is provided that
115+
shows they're spending segwit outputs. See the RPC help text for full
116+
details. (#15427)
117+
118+
- `sendrawtransaction` and `testmempoolaccept` no longer accept a
119+
`allowhighfees` parameter to fail mempool acceptance if the
120+
transaction fee exceedes the value of the configuration option
121+
`-maxtxfee`. Now there is a hardcoded default maximum feerate that
122+
can be changed when calling either RPC using a `maxfeerate` parameter.
123+
(#15620)
124+
125+
- `getmempoolancestors`, `getmempooldescendants`, `getmempoolentry`, and
126+
`getrawmempool` no longer return a `size` field unless the
127+
configuration option `-deprecatedrpc=size` is used. Instead a new
128+
`vsize` field is returned with the transaction's virtual size
129+
(consistent with other RPCs such as `getrawtransaction`). (#15637)
130+
131+
- `getwalletinfo` now includes a `scanning` field that is either `false`
132+
(no scanning) or an object with information about the duration and
133+
progress of the wallet's scanning historical blocks for transactions
134+
affecting its balances. (#15730)
135+
136+
- `createwallet` accepts a new `passphrase` parameter. If set, this
137+
will create the new wallet encrypted with the given passphrase. If
138+
unset (the default) or set to an empty string, no encryption will be
139+
used. (#16394)
150140

151141
- `getmempoolentry` now provides a `weight` field containing the
152-
transaction weight as defined in BIP 141.
142+
transaction weight as defined in BIP141. (#16647)
153143

154144
Deprecated or removed RPCs
155145
--------------------------
156146

157-
- The `totalFee` option of the `bumpfee` RPC has been deprecated and will be
158-
removed in 0.20. To continue using this option start with
159-
`-deprecatedrpc=totalFee`. See the `bumpfee` RPC help text for more details.
147+
- `bumpfee` no longer accepts a `totalFee` option unless the
148+
configuration parameter `deprecatedrpc=totalFee` is specified. This
149+
parameter will be fully removed in a subsequent release. (#15996)
160150

161151
P2P changes
162152
-----------
163153

164154
- BIP 61 reject messages were deprecated in v0.18. They are now disabled
165155
by default, but can be enabled by setting the `-enablebip61` command
166156
line option. BIP 61 reject messages will be removed entirely in a
167-
future version of Bitcoin Core.
168-
169-
- The default value for the -peerbloomfilters configuration option (and,
170-
thus, NODE_BLOOM support) has been changed to false. This resolves
171-
well-known DoS vectors in Bitcoin Core, especially for nodes with
172-
spinning disks. It is not anticipated that this will result in a
173-
significant lack of availability of NODE_BLOOM-enabled nodes in the
174-
coming years, however, clients which rely on the availability of
175-
NODE_BLOOM-supporting nodes on the P2P network should consider the
176-
process of migrating to a more modern (and less trustful and
177-
privacy-violating) alternative over the coming years.
157+
future version of Bitcoin Core. (#14054)
158+
159+
- To eliminate well-known denial-of-service vectors in Bitcoin Core,
160+
especially for nodes with spinning disks, the default value for the
161+
`-peerbloomfilters` configuration option has been changed to false.
162+
This prevents Bitcoin Core from sending the BIP111 NODE_BLOOM service
163+
flag, accepting BIP37 bloom filters, or serving merkle blocks or
164+
transactions matching a bloom filter. Users who still want to provide
165+
bloom filter support may either set the configuration option to true
166+
to re-enable both BIP111 and BIP37 support or enable just BIP37
167+
support for specific peers using the updated `-whitelist` and
168+
`-whitebind` configuration options described elsewhere in these
169+
release notes. For the near future, lightweight clients using public
170+
BIP111/BIP37 nodes should still be able to connect to older versions
171+
of Bitcoin Core and nodes that have manually enabled BIP37 support,
172+
but developers of such software should consider migrating to either
173+
using specific BIP37 nodes or an alternative transaction filtering
174+
system. (#16152)
178175

179176
Miscellaneous CLI Changes
180177
-------------------------
178+
181179
- The `testnet` field in `bitcoin-cli -getinfo` has been renamed to
182180
`chain` and now returns the current network name as defined in BIP70
183-
(main, test, regtest).
181+
(main, test, regtest). (#15566)
184182

185183
Low-level changes
186184
=================
187185

188186
RPC
189187
---
190188

191-
- Soft fork reporting in the `getblockchaininfo` return object has been
192-
updated. For full details, see the RPC help text. In summary:
193-
194-
- The `bip9_softforks` sub-object is no longer returned
195-
- The `softforks` sub-object now returns an object keyed by soft fork name,
196-
rather than an array
197-
- Each softfork object in the `softforks` object contains a `type`
198-
value which is either `buried` (for soft fork deployments where the
199-
activation height is hard-coded into the client implementation), or
200-
`bip9` (for soft fork deployments where activation is controlled by
201-
BIP 9 signaling).
189+
- `getblockchaininfo` no longer returns a `bip9_softforks` object.
190+
Instead, information has been moved into the `softforks` object and
191+
an additional `type` field describes how Bitcoin Core determines
192+
whether that soft fork is active (e.g. BIP9 or BIP90). See the RPC
193+
help for details. (#16060)
202194

203195
- `getblocktemplate` no longer returns a `rules` array containing `CSV`
204-
and `segwit` (the BIP 9 deployments that are currently in active
205-
state).
196+
and `segwit` (the BIP9 deployments that are currently in active
197+
state). (#16060)
206198

207199
Tests
208200
-----
209201

210-
- The regression test chain, that can be enabled by the `-regtest` command line
211-
flag, now requires transactions to not violate standard policy by default.
212-
Making the default the same as for mainnet, makes it easier to test mainnet
213-
behavior on regtest. Be reminded that the testnet still allows non-standard
214-
txs by default and that the policy can be locally adjusted with the
215-
`-acceptnonstdtxn` command line flag for both test chains.
202+
- The regression test chain enabled by the `-regtest` command line flag
203+
now requires transactions to not violate standard policy by default.
204+
This is the same default used for mainnet and makes it easier to test
205+
mainnet behavior on regtest. Note that the testnet still allows
206+
non-standard txs by default and that the policy can be locally
207+
adjusted with the `-acceptnonstdtxn` command line flag for both test
208+
chains. (#15891)
216209

217210
Configuration
218211
------------
219212

220-
- An error is issued where previously a warning was issued when a setting in
221-
the config file was specified in the default section, but not overridden for
222-
the selected network. This change takes only effect if the selected network
223-
is not mainnet.
213+
- A setting specified in the default section but not also specified in a
214+
network-specific section (e.g. testnet) will now produce a error
215+
preventing startup instead of just a warning unless the network is
216+
mainnet. This prevents settings intended for mainnet from being
217+
applied to testnet or regtest. (#15629)
224218

225219
- On platforms supporting `thread_local`, log lines can be prefixed with
226220
the name of the thread that caused the log. To enable this behavior,
227-
use `-logthreadnames=1`.
221+
use `-logthreadnames=1`. (#15849)
228222

229223
Network
230224
-------
@@ -235,52 +229,49 @@ Network
235229
peers' announcements were received. In this release, the download logic has
236230
changed to randomize the fetch order across peers and to prefer sending
237231
download requests to outbound peers over inbound peers. This fixes an issue
238-
where inbound peers can prevent a node from getting a transaction.
232+
where inbound peers could prevent a node from getting a transaction.
233+
(#14897, #15834)
239234

240235
Wallet
241236
------
242237

243238
- When in pruned mode, a rescan that was triggered by an `importwallet`,
244-
`importpubkey`, `importaddress`, or `importprivkey` RPC will only fail when
245-
blocks have been pruned. Previously it would fail when `-prune` has been set.
246-
This change allows to set `-prune` to a high value (e.g. the disk size) and
247-
the calls to any of the import RPCs would fail when the first block is
248-
pruned.
239+
`importpubkey`, `importaddress`, or `importprivkey` RPC will only fail
240+
when blocks have been pruned. Previously it would fail when `-prune`
241+
has been set. This change allows setting `-prune` to a high value
242+
(e.g. the disk size) without the calls to any of the import RPCs
243+
failing until the first block is pruned. (#15870)
249244

250245
- When creating a transaction with a fee above `-maxtxfee` (default 0.1
251246
BTC), the RPC commands `walletcreatefundedpsbt` and
252247
`fundrawtransaction` will now fail instead of rounding down the fee.
253-
Beware that the `feeRate` argument is specified in BTC per kilobyte,
254-
not satoshi per byte.
248+
Be aware that the `feeRate` argument is specified in BTC per 1,000
249+
vbytes, not satoshi per vbyte. (#16257)
255250

256251
- A new wallet flag `avoid_reuse` has been added (default off). When
257252
enabled, a wallet will distinguish between used and unused addresses,
258-
and default to not use the former in coin selection.
259-
260-
Rescanning the blockchain is required, to correctly mark previously
261-
used destinations.
262-
263-
Together with "avoid partial spends" (present as of Bitcoin v0.17),
264-
this addresses a serious privacy issue where a malicious user can
265-
track spends by peppering a previously paid to address with near-dust
266-
outputs, which would then be inadvertently included in future
267-
payments.
253+
and default to not use the former in coin selection. When setting
254+
this flag on an existing wallet, rescanning the blockchain is required
255+
to correctly mark previously used destinations. Together with "avoid
256+
partial spends" (added in Bitcoin Core v0.17.0), this can eliminate a
257+
serious privacy issue where a malicious user can track spends by
258+
sending small payments to a previously-paid address that would then
259+
be included with unrelated inputs in future payments. (#13756)
268260

269261
Build system changes
270262
--------------------
271263

272264
- Python >=3.5 is now required by all aspects of the project. This
273265
includes the build systems, test framework and linters. The previously
274-
supported minimum (3.4), was E OL in March 2019. See #14954 for more
275-
details.
266+
supported minimum (3.4), was EOL in March 2019. (#14954)
276267

277268
- The minimum supported miniUPnPc API version is set to 10. This keeps
278269
compatibility with Ubuntu 16.04 LTS and Debian 8 `libminiupnpc-dev`
279270
packages. Please note, on Debian this package is still vulnerable to
280271
[CVE-2017-8798](https://security-tracker.debian.org/tracker/CVE-2017-8798)
281272
(in jessie only) and
282273
[CVE-2017-1000494](https://security-tracker.debian.org/tracker/CVE-2017-1000494)
283-
(both in jessie and in stretch).
274+
(both in jessie and in stretch). (#15993)
284275

285276
Credits
286277
=======

0 commit comments

Comments
 (0)