Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Conversation

@braydonf
Copy link
Contributor

There are a few cases where the opcode name doesn't match the name exactly.
These are mostly related with data pushes, and the cases for OP_0 and OP_1NEGATE were
not handled as data pushes as the buf.length was 0. This adds these exceptions to the
_chunkToString method on Script.

References:

Closes: bitpay/insight-api#423

Braydon Fuller added 2 commits November 13, 2015 14:25
There are a few cases where the opcode name doesn't match the name exactly.
These are mostly related with data pushes, and the cases for `OP_0` and `OP_1NEGATE` were
not handled as data pushes as the buf.length was 0. This adds these exceptions to the
`_chunkToString` method on Script.

References:
- https://github.com/bitcoin/bitcoin/blob/e54ebbf6009716a7abcd4d8d3f7bd910e88decdc/src/script/script.cpp#L13
- https://github.com/bitcoin/bitcoin/blob/e54ebbf6009716a7abcd4d8d3f7bd910e88decdc/src/core_write.cpp#L75
@braydonf braydonf changed the title Script: Add test data for ASM with pushdata_1 opcode Script: Account for reverseMap name inconsistencies Nov 16, 2015
@foowie
Copy link

foowie commented Feb 9, 2016

Hello,

can you merge this fix please? I want to switch to new insight-api, but I can't use it because of this issue.

Thank you
Daniel

@foowie
Copy link

foowie commented Mar 15, 2016

Any news about merging this fix?

@braydonf
Copy link
Contributor Author

I'll take another pass at this, to verify, and see if we can move this forward.

@braydonf
Copy link
Contributor Author

braydonf commented Jul 5, 2016

FYI, this shouldn't affect insight-api or bitcore-node, as the ASM is from bitcoind directly now.

Prtfw referenced this pull request in dashpay/dashcore-lib Jul 3, 2017
Add new method getblockdeltas
@matiu
Copy link
Contributor

matiu commented Oct 26, 2017

ACK

@matiu matiu merged commit ee61039 into bitpay:master Oct 26, 2017
shohu pushed a commit to c0banparty/bitcore-lib-c0ban that referenced this pull request Nov 5, 2018
Script: Account for reverseMap name inconsistencies
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants