From f4a722eff52f643d8d76369fd30a473a7cd17339 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 24 Nov 2022 16:35:31 +0000 Subject: [PATCH 1/2] Add release notes for #6122 (`asOfHeight` RPC parameters). Signed-off-by: Daira Hopwood --- doc/release-notes.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/release-notes.md b/doc/release-notes.md index bd76b7521..492cba575 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -15,3 +15,31 @@ Memory Usage Improvement The memory usage of zcashd has been reduced by not keeping Equihash solutions for all block headers in memory. + +RPC changes +----------- + +The following RPC methods that query wallet state now support an optional `asOfHeight` +parameter, to execute the query as if it were run when the blockchain was at the height +specified by this argument: + +* `getbalance` +* `getreceivedbyaddress` +* `gettransaction` (*) +* `getwalletinfo` +* `listaddressgroupings` +* `listreceivedbyaddress` (*) +* `listsinceblock` (*) +* `listtransactions` +* `listunspent` (*) +* `z_getbalanceforaccount` +* `z_getbalanceforviewingkey` +* `z_getmigrationstatus` +* `z_getnotescount` (also adds `minconf` parameter) +* `z_listreceivedbyaddress` +* `z_listunspent` + +(*) For these methods, additional parameters have been added to maintain +compatibility of parameter lists with Bitcoin Core. Default values should be +passed for these additional parameters in order to use `asOfHeight`. See the +[RPC documentation](https://zcash.github.io/) for details. From a528b630976dc55a84b82dbc5b11d9c64a6558bf Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 24 Nov 2022 20:11:53 +0000 Subject: [PATCH 2/2] Update release notes: z_getnotescount already had the minconf parameter Co-authored-by: Greg Pfeil --- doc/release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/release-notes.md b/doc/release-notes.md index 492cba575..c33136abc 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -35,7 +35,7 @@ specified by this argument: * `z_getbalanceforaccount` * `z_getbalanceforviewingkey` * `z_getmigrationstatus` -* `z_getnotescount` (also adds `minconf` parameter) +* `z_getnotescount` * `z_listreceivedbyaddress` * `z_listunspent`