• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rust-bitcoin / rust-bitcoin / 11808075229
83%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2024 12:20AM UTC
Jobs 1
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2024 12:19AM UTC coverage: 82.456% (-0.003%) from 82.459%
11808075229

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#3604: Add constructor to `FeeRate`

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/b96501981ffef1d32c839cd44861736ce3683964">b96501981<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/708522394bbc6018b064b9ff76c3f3497fd33a42"> feat(units): add kvb constructor to `FeeRate` (Rob N)

Pull request description:

  This is partially to check my understanding. I did poorly in physics class as part of my misunderstanding of unit conversions.

  The `feefilter` message expresses the fee as satoshis per 1,000 vbyte, see the [p2p handling](https://github.com/bitcoin/bitcoin/blob/<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/1dda1892b6bcc3d4f9678960cc9e9920f491e87e">1dda1892b</a>/src/net_processing.cpp#L5331) which calls [this function](https://github.com/bitcoin/bitcoin/blob/master/src/policy/feerate.h#L63) on the mempool. I presume all that needs to happen to express this in `kwu` is to divide by 4, but ideally a `FeeRate` may be constructed directly from a `feefilter` message using a constructor.

  My conversion is (sat / kvb * kvb / 4 kwu)

ACKs for top commit:
  sanket1729:
    ACK b96501981ffef1d32c839cd44861736ce3683964.
  apoelstra:
    ACK b96501981ffef1d32c839cd44861736ce3683964; successfully ran local tests
  tcharding:
    ACK b96501981ffef1d32c839cd44861736ce3683964

Tree-SHA512: 5aec75d257ec776912d6338958e0c54df0f

0 of 1 new or added line in 1 file covered. (0.0%)

19735 of 23934 relevant lines covered (82.46%)

18168.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11808075229.1 13 Nov 2024 12:20AM UTC 0
82.46
GitHub Action Run
Source Files on build 11808075229
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11808075229
  • 70852239 on github
  • Prev Build on master (#11785543390)
  • Next Build on master (#11809194004)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc