Skip to content

Add op csv tests to script_tests.json - #7994

Merged
sipa merged 1 commit into
bitcoin:masterfrom
Christewart:add_op_csv_tests
May 16, 2016
Merged

sipa merged 1 commit into
bitcoin:masterfrom
Christewart:add_op_csv_tests

Conversation

@Christewart

@Christewart Christewart commented May 3, 2016 •

Copy link
Copy Markdown
Contributor

Adds OP_CHECKSEQUENCEVERIFY tests to script_tests.json

Comment thread src/script/script.cpp Outdated
case OP_CHECKLOCKTIMEVERIFY : return "OP_CHECKLOCKTIMEVERIFY";
case OP_NOP3 : return "OP_NOP3";
case OP_CHECKSEQUENCEVERIFY : return "OP_CHECKSEQUENCEVERIFY";
//case OP_NOP3 : return "OP_NOP3";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this line

@btcdrak

btcdrak commented May 3, 2016

Copy link
Copy Markdown
Contributor

You can add extra tests, as was commented on #7540, renaming isn't appropriate until the softfork activated, since it's still a NOP at the moment.

Comment thread src/script/script.cpp Outdated
case OP_NOP1 : return "OP_NOP1";
case OP_CHECKLOCKTIMEVERIFY : return "OP_CHECKLOCKTIMEVERIFY";
case OP_NOP3 : return "OP_NOP3";
case OP_NOP3 : return "OP_NOP3";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you've added a space to the end of this line?

@laanwj

laanwj commented May 10, 2016

Copy link
Copy Markdown
Member

ACK after squash

@laanwj laanwj added the Tests label May 10, 2016
@maflcko

maflcko commented May 10, 2016

Copy link
Copy Markdown
Member

Changing NOP3 op name to OP_CHECKSEQUENCEVERIFY, renaming instances of OP_NOP3 in script_tests.json to CHECKSEQUENCEVERIFY

Cleaning up NOP3 comment

Re-adding test cases that were accidentally deleted, removing dupicated test case, fixing formatting

Removing re-labeling of OP_NOP3 to OP_CSV

Fixing whitespace issues
@sipa
sipa merged commit 10e83d7 into bitcoin:master May 16, 2016
sipa added a commit that referenced this pull request May 16, 2016
10e83d7 Adding basic tests for OP_CSV inside of script_tests.json (Chris Stewart)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants