Skip to content

Commit a1bd590

Browse files
committed
[Doc] Document subtract-fee-from-amount RPC changes in the release notes
1 parent 6589429 commit a1bd590

File tree

1 file changed

+49
-24
lines changed

1 file changed

+49
-24
lines changed

doc/release-notes.md

Lines changed: 49 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ The `getwalletinfo` RPC method returns the name of the wallet used for the query
8080
Note that while multi-wallet is now fully supported, the RPC multi-wallet interface should be considered unstable for version 6.0.0, and there may backwards-incompatible changes in future versions.
8181

8282

83-
8483
GUI changes
8584
-----------
8685

@@ -110,6 +109,7 @@ Results without keys can be queried using an integer in brackets.
110109
example: getblock(getblockhash(0),true)[tx][0]
111110
```
112111

112+
113113
Support for JSON-RPC Named Arguments
114114
------------------------------------
115115

@@ -129,14 +129,11 @@ The order of arguments doesn't matter in this case. Named arguments are also use
129129
The RPC server remains fully backwards compatible with positional arguments.
130130

131131

132-
#### Allow to optional specify the directory for the blocks storage
133-
134-
A new init option flag '-blocksdir' will allow one to keep the blockfiles external from the data directory.
135-
136-
137132
Low-level RPC changes
138133
---------------------
139134

135+
### Query options for listunspent RPC
136+
140137
- The `listunspent` RPC now takes a `query_options` argument (see [PR #2317](https://github.com/PIVX-Project/PIVX/pull/2317)), which is a JSON object
141138
containing one or more of the following members:
142139
- `minimumAmount` - a number specifying the minimum value of each UTXO
@@ -151,12 +148,37 @@ Low-level RPC changes
151148

152149
- the `stop` RPC no longer accepts the (already deprecated, ignored, and undocumented) optional boolean argument `detach`.
153150

151+
### Subtract fee from recipient amount for RPC
152+
153+
A new argument `subtract_fee_from` is added to `sendmany`/`shieldsendmany` RPC functions.
154+
It can be used to provide the list of recipent addresses paying the fee.
155+
```
156+
subtract_fee_from (array, optional)
157+
A json array with addresses.
158+
The fee will be equally deducted from the amount of each selected address.
159+
[\"address\" (string) Subtract fee from this address\n"
160+
,...
161+
]
162+
163+
For `fundrawtransaction` a new key (`subtractFeeFromOutputs`) is added to the `options` argument.
164+
It can be used to specify a list of output indexes.
165+
```
166+
subtractFeeFromOutputs (array, optional) A json array of integers.
167+
The fee will be equally deducted from the amount of each specified output.
168+
The outputs are specified by their zero-based index, before any change output is added.
169+
[vout_index,...]
170+
```
171+
172+
For `sendtoaddress`, the new parameter is called `subtract_fee` and it is a simple boolean.
154173
155-
#### Show wallet's auto-combine settings in getwalletinfo
174+
In all cases those recipients will receive less PIV than you enter in their corresponding amount field.
175+
If no outputs/addresses are specified, the sender pays the fee as usual.
176+
177+
### Show wallet's auto-combine settings in getwalletinfo
156178
157179
`getwalletinfo` now has two additional return fields. `autocombine_enabled` (boolean) and `autocombine_threshold` (numeric) that will show the auto-combine threshold and whether or not it is currently enabled.
158180
159-
#### Deprecate the autocombine RPC command
181+
### Deprecate the autocombine RPC command
160182
161183
The `autocombine` RPC command has been replaced with specific set/get commands (`setautocombinethreshold` and `getautocombinethreshold`, respectively) to bring this functionality further in-line with our RPC standards. Previously, the `autocombine` command gave no user-facing feedback when the setting was changed. This is now resolved with the introduction of the two new commands as detailed below:
162184
@@ -191,26 +213,18 @@ The `autocombine` RPC command has been replaced with specific set/get commands (
191213
}
192214
```
193215
194-
#### Build system changes
216+
Build system changes
217+
--------------------
195218
196219
The minimum supported miniUPnPc API version is set to 10. This keeps compatibility with Ubuntu 16.04 LTS and Debian 8 `libminiupnpc-dev` packages. Please note, on Debian this package is still vulnerable to [CVE-2017-8798](https://security-tracker.debian.org/tracker/CVE-2017-8798) (in jessie only) and [CVE-2017-1000494](https://security-tracker.debian.org/tracker/CVE-2017-1000494) (both in jessie and in stretch).
197220
198-
199-
#### Build System
200-
201221
OpenSSL is no longer used by PIVX Core
202222
203223
204-
#### Disable PoW mining RPC Commands
205-
206-
A new configure flag has been introduced to allow more granular control over weather or not the PoW mining RPC commands are compiled into the wallet. By default they are not. This behavior can be overridden by passing `--enable-mining-rpc` to the `configure` script.
207-
208-
#### Removed startup options
209-
210-
- `printstakemodifier`
224+
Configuration changes
225+
---------------------
211226
212-
Configuration sections for testnet and regtest
213-
----------------------------------------------
227+
### Configuration sections for testnet and regtest
214228
215229
It is now possible for a single configuration file to set different options for different networks. This is done by using sections or by prefixing the option with the network, such as:
216230
@@ -226,16 +240,27 @@ It is now possible for a single configuration file to set different options for
226240
227241
The `addnode=`, `connect=`, `port=`, `bind=`, `rpcport=`, `rpcbind=`, and `wallet=` options will only apply to mainnet when specified in the configuration file, unless a network is specified.
228242
243+
### Allow to optional specify the directory for the blocks storage
229244
230-
#### Logging
245+
A new init option flag '-blocksdir' will allow one to keep the blockfiles external from the data directory.
231246
232-
The log timestamp format is now ISO 8601 (e.g. "2021-02-28T12:34:56Z").
247+
### Disable PoW mining RPC Commands
233248
249+
A new configure flag has been introduced to allow more granular control over weather or not the PoW mining RPC commands are compiled into the wallet. By default they are not. This behavior can be overridden by passing `--enable-mining-rpc` to the `configure` script.
250+
251+
### Removed startup options
252+
253+
- `printstakemodifier`
234254
235-
#### Automatic Backup File Naming
255+
### Logging
256+
257+
The log timestamp format is now ISO 8601 (e.g. "2021-02-28T12:34:56Z").
258+
259+
### Automatic Backup File Naming
236260
237261
The file extension applied to automatic backups is now in ISO 8601 basic notation (e.g. "20210228T123456Z"). The basic notation is used to prevent illegal `:` characters from appearing in the filename.
238262
263+
239264
*version* Change log
240265
==============
241266

0 commit comments

Comments
 (0)