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

tests: less ambiguous naming, fix exception check #720

Merged
merged 3 commits into from Dec 13, 2016
Merged

Conversation

dcousens
Copy link
Contributor

As pointed out in #716, this PR just makes the changes I was after.

It also fixes an exception message not being caught.

tmp.__toBuffer(undefined, undefined, true)
}, 'Verify our replacement of __toBuffer can lead to an error if using witness')
tx.__toBuffer(undefined, undefined, true)
}, /hashForSignature MUST pass false/)
Copy link
Contributor Author

@dcousens dcousens Dec 10, 2016

Choose a reason for hiding this comment

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

This must be a regex, or it will be (and was) ignored, provided an exception was thrown.

@@ -213,27 +213,28 @@ describe('Transaction', function () {
})

describe('hashForSignature', function () {
it('only uses V0 serialization', function () {
it('only uses legacy serialization', function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

or, it does not use Witness V0 serialization

@dcousens dcousens merged commit c81f561 into master Dec 13, 2016
@dcousens dcousens deleted the testhash branch December 13, 2016 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant