forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: release note for asm repr script changes
- Loading branch information
1 parent
70fd568
commit d605d90
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Notable changes | ||
=============== | ||
|
||
Updated RPCs | ||
------------ | ||
|
||
* Script decoding behaviour in various RPCs has been updated. | ||
Previously, the `asm` representations silently displayed pushed values of 4 bytes or fewer in decimal encoding, while representing values larger than 4 bytes in little endian hexadecimal. | ||
This inconsistent behaviour, which was not documented, led to confusion when interpreting various values. | ||
|
||
The following changes have been implemented: | ||
|
||
* Drop "OP_" prefix from all opcodes | ||
* OP_n -> n (so -1, 0, 1, ..., 10, ..., 16) | ||
* Display pushes < 5 bytes using little endian hex <0x...> format | ||
* Display pushes > 5 bytes using big endian <...> format | ||
* For minimal pushes display the value without the related push opcode | ||
* For non-minimal pushes prefix the value with the push opcode | ||
|
||
These changes will affect the `asm` output of the `getrawtransaction`, `decodetransaction`, `decodescript` and `decodepsbt` RPCs. | ||
See #7996 and #27795 for more discussion. | ||
|