Skip to content

Commit

Permalink
doc: add release notes
Browse files Browse the repository at this point in the history
Co-Authored-By: tdb3 <[email protected]>
  • Loading branch information
Sjors and tdb3 committed Jan 3, 2025
1 parent 10a1648 commit b35ed41
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/release-notes-31583.md
Original file line number Diff line number Diff line change
@@ -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/<BLOCK-HASH>` and `GET /rest/headers/<BLOCK-HASH>` now return the current target in the `target` field

0 comments on commit b35ed41

Please sign in to comment.