Skip to content

Conversation

pnagurny
Copy link
Contributor

@pnagurny pnagurny commented Sep 4, 2015

No description provided.

@pnagurny pnagurny changed the title add getDifficulty method to Block add getDifficulty method to BlockHeader Sep 4, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

Docs need to be updated with the new first argument.

Copy link
Contributor

Choose a reason for hiding this comment

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

It should noted that this is optional, and will default to the bits of livenet and testnet genesis bits.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, the test case for passing in the bits isn't covered. I don't currently see a need for the argument yet, so another option would be to remove the argument, and we can add if needed later.

@pnagurny pnagurny force-pushed the feature/difficulty branch 2 times, most recently from f743ee5 to 0877746 Compare September 8, 2015 16:59
@braydonf
Copy link
Contributor

braydonf commented Sep 8, 2015

Travis CI seems to not be running the tests, however I've run all the tests in Node.js v0.12 and v0.10 and iojs, and everything is passing.

@braydonf
Copy link
Contributor

braydonf commented Sep 8, 2015

ACK

braydonf pushed a commit that referenced this pull request Sep 8, 2015
add getDifficulty method to BlockHeader
@braydonf braydonf merged commit c03498f into bitpay:master Sep 8, 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.

2 participants