From d925a9bd7a04f068ede227addbaef3025b9793b9 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 | 14 ++++++++++++++ 1 file changed, 14 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 00000000000000..e641fc766b5c0f --- /dev/null +++ b/doc/release-notes-31583.md @@ -0,0 +1,14 @@ +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 +- `getblockchaininfo` and `getchainstates` now return `nBits` and 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/.json` and `GET /rest/headers/.json` now return the current target in the `target` field