Skip to content

Commit

Permalink
Check the correct regtest HRP
Browse files Browse the repository at this point in the history
We currently check  the wrong `HRP` in `is_valid_on_regtest`, ouch.
  • Loading branch information
tcharding committed Aug 30, 2023
1 parent 42c54e6 commit d0d2fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/hrp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Hrp {

/// Returns `true` if this hrpstring is valid on the Bitcoin regtest network i.e., HRP is "bcrt".
#[inline]
pub fn is_valid_on_regtest(&self) -> bool { *self == self::BC }
pub fn is_valid_on_regtest(&self) -> bool { *self == self::BCRT }
}

/// Displays the human-readable part.
Expand Down

0 comments on commit d0d2fd0

Please sign in to comment.