bcoin-org / bcoin

Javascript bitcoin library for node.js and browsers
https://bcoin.io
Other
2.98k stars 811 forks source link

Neutrino: getblockpeer #1167

Open manavdesai27 opened 11 months ago

manavdesai27 commented 11 months ago

This PR implements getblockpeer to get a block from a peer on demand by wallet.

codecov[bot] commented 11 months ago

Codecov Report

Patch coverage: 29.23% and project coverage change: -0.08% :warning:

Comparison is base (a4bf281) 70.26% compared to head (9064032) 70.19%. Report is 6 commits behind head on master.

:exclamation: Current head 9064032 differs from pull request most recent head da4a6b8. Consider uploading reports for the commit da4a6b8 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1167 +/- ## ========================================== - Coverage 70.26% 70.19% -0.08% ========================================== Files 174 174 Lines 27367 27425 +58 ========================================== + Hits 19229 19250 +21 - Misses 8138 8175 +37 ``` | [Files Changed](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org) | Coverage Δ | | |---|---|---| | [lib/client/node.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL2NsaWVudC9ub2RlLmpz) | `27.77% <0.00%> (+0.50%)` | :arrow_up: | | [lib/wallet/client.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL3dhbGxldC9jbGllbnQuanM=) | `0.00% <0.00%> (ø)` | | | [lib/wallet/nullclient.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL3dhbGxldC9udWxsY2xpZW50Lmpz) | `87.50% <ø> (ø)` | | | [lib/blockchain/chain.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL2Jsb2NrY2hhaW4vY2hhaW4uanM=) | `71.73% <20.68%> (-1.60%)` | :arrow_down: | | [lib/node/http.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL25vZGUvaHR0cC5qcw==) | `59.59% <25.00%> (-0.36%)` | :arrow_down: | | [lib/net/pool.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL25ldC9wb29sLmpz) | `58.92% <35.00%> (-0.32%)` | :arrow_down: | | [lib/blockchain/chaindb.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL2Jsb2NrY2hhaW4vY2hhaW5kYi5qcw==) | `78.13% <40.00%> (-0.32%)` | :arrow_down: | | [lib/wallet/nodeclient.js](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org#diff-bGliL3dhbGxldC9ub2RlY2xpZW50Lmpz) | `75.00% <60.00%> (-5.00%)` | :arrow_down: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/bcoin-org/bcoin/pull/1167/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcoin-org)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.