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

Modify Transaction Interface #812

Merged
merged 3 commits into from
Dec 19, 2014
Merged

Conversation

eordano
Copy link
Contributor

@eordano eordano commented Dec 18, 2014

Closes #789 and #799

  • Add checks when serializing
  • Add default _estimateSize to generic inputs
  • Fix multisig size estimation
  • Change _addOutput to addOutput
  • Add addInput and using that internally
  • Split getFee out from _updateChangeOutput

* Add checks when serializing
* Add default _estimateSize to generic inputs
* Fix multisig size estimation
* Change _addOutput to addOutput
* Add addInput and using that internally
* Split `getFee` out from `_updateChangeOutput`
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) when pulling 50503c7 on eordano:feature/safeSerialize into cd21c93 on bitpay:master.

try {
this.toBufferWriter(bufferWriter);
} catch (e) {
console.log(this);
Copy link
Contributor

Choose a reason for hiding this comment

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

did you leave this on purpose? why not throw an exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, removed

@maraoz
Copy link
Contributor

maraoz commented Dec 18, 2014

could you rewrite this test to use the new interface?
https://github.com/bitpay/bitcore/blob/master/test/script/interpreter.js#L205

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) when pulling 9a73338 on eordano:feature/safeSerialize into cd21c93 on bitpay:master.

* For internal usage: for example, testing Script.Interpreter
@eordano
Copy link
Contributor Author

eordano commented Dec 19, 2014

Added them!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) when pulling 99db72b on eordano:feature/safeSerialize into cd21c93 on bitpay:master.

@maraoz
Copy link
Contributor

maraoz commented Dec 19, 2014

ACK

maraoz added a commit that referenced this pull request Dec 19, 2014
@maraoz maraoz merged commit 85169a3 into bitpay:master Dec 19, 2014
@eordano eordano deleted the feature/safeSerialize branch December 23, 2014 14:44
micahriggan pushed a commit to micahriggan/bitcore that referenced this pull request Dec 27, 2018
update socket-io / preconditions
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.

add Transaction#addInput() and Transaction#addOutput() low-level methods
3 participants