diff --git a/doc/release-notes-31583.md b/doc/release-notes-31583.md new file mode 100644 index 00000000000000..d4d68eb0e9f608 --- /dev/null +++ b/doc/release-notes-31583.md @@ -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/.json` and `GET /rest/headers/.json` now return the current target in the `target` field diff --git a/test/functional/data/README.md b/test/functional/data/README.md index bfe7ee82baaf0c..eb217d6071ebef 100644 --- a/test/functional/data/README.md +++ b/test/functional/data/README.md @@ -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