diff --git a/doc/release-notes-31583.md b/doc/release-notes-31583.md new file mode 100644 index 0000000000..e641fc766b --- /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