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 9, 2025
1 parent 9c646bf commit 58b828f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/release-notes-31583.md
Original file line number Diff line number Diff line change
@@ -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/<BLOCK-HASH>.json` and `GET /rest/headers/<BLOCK-HASH>.json` now return the current target in the `target` field

0 comments on commit 58b828f

Please sign in to comment.