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

Fixes bug with misleading error with getSerializationError. Closes #1236 #1248

Merged
merged 8 commits into from
May 26, 2015

Conversation

braydonf
Copy link
Contributor

Fixes: #1236
Extends from: #1241

dskloet and others added 7 commits May 23, 2015 20:13
…amount before checking fee errors. Added a test for it and also improved buildSkipTest by specifying which error to expect and using it for some tests where it wasn't used yet.
…o disable the fee checks as the concept of a fee is meaningless when unspent output value is negative. This also allows for removing the opts from buildSkipTest again and simplifying the skip test for disableMoreOutputThanInput.
…n already when the check for negative unspent output is disabled.
- _hasMoreOutputThanInput() and _isInvalidSatoshis() merged with getSerializationError()
- _isFeeDifferent(), _isFeeTooLarge() and _isFeeTooSmall merged with _hasFeeError()
@braydonf braydonf force-pushed the bug/misleading-error branch from c808113 to 589d017 Compare May 24, 2015 00:14
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.94% when pulling 589d017 on braydonf:bug/misleading-error into 001f71d on bitpay:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 97.96% when pulling ee651df on braydonf:bug/misleading-error into 001f71d on bitpay:master.

@dskloet
Copy link
Contributor

dskloet commented May 24, 2015

If you don't want getSerializationError() to be simple, why did you merge #1226?

@pnagurny
Copy link
Contributor

LGTM

pnagurny added a commit that referenced this pull request May 26, 2015
Fixes bug with misleading error with getSerializationError. Closes #1236
@pnagurny pnagurny merged commit 4c1ba67 into bitpay:master May 26, 2015
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.

creating a tx with more outputs than inputs fails with a misleading error
5 participants