Skip to content

Conversation

@jpochyla
Copy link
Contributor

@jpochyla jpochyla commented Apr 1, 2016

Previously, if paging i.e. from 0 to 100, toOffset could easily get negative (because the user does not know the totalCount in advance). This should fix this case.

@braydonf
Copy link
Contributor

braydonf commented Apr 4, 2016

Thanks for taking a look at this.

I'm currently working in this area with #422 (line 517 of lib/services/bitcoind.js) and txids are reversed and then sliced and this shouldn't be an issue there.

Also, this issue looks related: bitpay/insight-api#471

@jpochyla
Copy link
Contributor Author

jpochyla commented Apr 7, 2016

Sure! Do you expect any more releases of bitcore-node with static bitcoind? The work on #422 looks awesome, but we hoped this patch could be pushed to upstream early. There's a bitcore branch of mytrezor.com ready, and we wanted to offer users more than one choice of a backend server.

@braydonf
Copy link
Contributor

braydonf commented Apr 7, 2016

Sounds good to me! There are a few other fixes that could be useful in a patch release.

@braydonf braydonf merged commit 3863f5c into bitpay:master Apr 7, 2016
@braydonf
Copy link
Contributor

braydonf commented Apr 8, 2016

Landed in 2.1.1 thanks @kleetus

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