From b35ed41b03578586e380cb73aece14046ec2da93 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Fri, 3 Jan 2025 10:59:39 +0100 Subject: [PATCH] doc: add release notes Co-Authored-By: tdb3 <106488469+tdb3@users.noreply.github.com> --- doc/release-notes-31583.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/release-notes-31583.md diff --git a/doc/release-notes-31583.md b/doc/release-notes-31583.md new file mode 100644 index 0000000000000..4f6e4069af08a --- /dev/null +++ b/doc/release-notes-31583.md @@ -0,0 +1,13 @@ +Updated RPCs +--- +- `getmininginfo` now returns `nBits` and the current target in the `target` field. It also returns a `next` object which specifies the `height`, `nBits`, `difficulty`, and `target` for the next block. +- `getdifficulty` can now return the difficulty for the next block (rather than the current tip) when calling with the boolean `next` argument set to true. +- `getblock` and `getblockheader` now return the current target in the `target` field + +New RPCs +--- +- `gettarget` can be used to return the current target (for tip) or target for the next block (with the `next` argument) + +REST interface +--- +- `GET /rest/block/` and `GET /rest/headers/` now return the current target in the `target` field