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

shinghim / rust-bitcoin / 16403933810

20 Jul 2025 05:04PM UTC coverage: 83.564% (-0.005%) from 83.569%
16403933810

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4639: feat(p2p): create `NetworkExt` trait for default P2P port and `Magic` values

<a class=hub.com/shinghim/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/shinghim/rust-bitcoin/commit/eba12041cbeba1de3c71fdc83186dfb112dcae5b">eba12041c feat(p2p): create `NetworkExt` trait for default P2P port and network `Magic` values (Luis Schwab)

Pull request description:

  Closes #4632.
  ~~Depends on #4640.~~
  
  This PR introduces the `NetworkExt` trait that extends `Network` with getters for default P2P port and network `Magic` bytes.
  
  ## Changelog
  - Create `NetworkExt` trait.
  - Implement `default_p2p_port` for `Network`.
  - Implement `default_network_magic` for `Network`.


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


Tree-SHA512: 83e05981b8aedc179c475ef83b073a30fb3

41 of 43 new or added lines in 1 file covered. (95.35%)

261 existing lines in 20 files now uncovered.

21379 of 25584 relevant lines covered (83.56%)

15242.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.67
/primitives/src/sequence.rs


Source Not Available

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