Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a helloblock integration test for OP_RETURN #312

Closed
wants to merge 1 commit into from

Conversation

williamcotton
Copy link
Contributor

I've created an integration test that creates a random message in a OP_RETURN, propagates the transaction, and then checks to see that it went through and decodes properly.

It uses a random 5 character string for the test and you can see them here: http://testnet.coinsecrets.org/

Lemme know what you think! I've tried to adhere to the code style as close as possible.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 981eeb7 on williamcotton:inttests into 6db700c on bitcoinjs:inttests.


// Loop through the outputs and decode the message
var outputs = transaction.outputs
for (var j = outputs.length - 1; j >= 0; j--) {
Copy link
Contributor

Choose a reason for hiding this comment

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

use forEach?

Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we looping at all if the transaction is expected to have the dataScript output at outputs[1]?

Copy link
Contributor

Choose a reason for hiding this comment

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

@dcousens
Copy link
Contributor

Happy to merge this once the nits have been worked out.

dcousens added a commit that referenced this pull request Nov 25, 2014
@dcousens
Copy link
Contributor

Merged into #302 as 37a1c93

@dcousens dcousens closed this Nov 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants