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 22, 2025
1 parent 0c865bd commit d4fe21c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions doc/release-notes-31583.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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

REST interface
---
- `GET /rest/block/<BLOCK-HASH>.json` and `GET /rest/headers/<BLOCK-HASH>.json` now return the current target in the `target` field
2 changes: 1 addition & 1 deletion test/functional/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## mainnet_alt.json

For easier testing the difficulty is maximally increased in the first (and only)
regarget period, by producing blocks approximately 2 minutes apart.
retarget period, by producing blocks approximately 2 minutes apart.

The alternate mainnet chain was generated as follows:
- use faketime to set node clock to 2 minutes after genesis block
Expand Down

0 comments on commit d4fe21c

Please sign in to comment.