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

rust-bitcoin / rust-bitcoin / 14251106981
83%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2025 07:25PM UTC
Jobs 1
Files 129
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

03 Apr 2025 07:23PM UTC coverage: 83.653% (+0.009%) from 83.644%
14251106981

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4302: Add push_relative_lock_time() and deprecate push_sequence()

<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/ebaf162a962494329c6cb5f6d375a6a4a97fe83b">ebaf162a9 Add push_relative_lock_time() and deprecate push_sequence() (Erick Cestari)

Pull request description:

  This pr improves the script builder API to better align with Bitcoin semantics when working with relative timelocks:

  - Add `push_relative_lock_time()` method that takes a `relative::LockTime` parameter, which correctly represents the semantic meaning when working with CHECKSEQUENCEVERIFY

  - Deprecate `push_sequence()` in favor of `push_relative_lock_time()` to avoid confusion between sequence numbers and relative timelocks

  This addresses a potential confusion point in the API where developers might incorrectly push raw sequence numbers in scripts when what they actually need is to push a relative locktime value that will be checked against the transaction's sequence numbers by CHECKSEQUENCEVERIFY.

  Closes #4301

ACKs for top commit:
  apoelstra:
    ACK ebaf162a962494329c6cb5f6d375a6a4a97fe83b; successfully ran local tests
  tcharding:
    ACK ebaf162a962494329c6cb5f6d375a6a4a97fe83b

Tree-SHA512: 52c37b6e813f91590676978c9bab257d81f

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

1 existing line in 1 file now uncovered.

22240 of 26586 relevant lines covered (83.65%)

16782.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
74.58
-4.0% bitcoin/src/blockdata/script/builder.rs

Coverage Regressions

Lines Coverage ∆ File
1
86.21
0.31% bitcoin/src/psbt/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 14251106981.1 03 Apr 2025 07:25PM UTC 129
83.65
GitHub Action Run
Source Files on build 14251106981
  • Tree
  • List 129
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14251106981
  • 9f7f6595 on github
  • Prev Build on master (#14225127146)
  • Next Build on master (#14266408611)
  • 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