Skip to content

Commit 1867dcf

Browse files
authored
Check the correct regtest HRP (#127)
We currently check the wrong `HRP` in `is_valid_on_regtest`, ouch.
1 parent 7fd1546 commit 1867dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/hrp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl Hrp {
211211

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

217217
/// Displays the human-readable part.

0 commit comments

Comments
 (0)