Skip to content

Commit 9fc4dac

Browse files
committed
Merge #30: Fix activation heights
4fe4d1f fix bip16 activation height (Riccardo Casatta) adf6c75 Fix off-by-one error on activation heights (Riccardo Casatta) Pull request description: ACKs for top commit: tcharding: ACK 4fe4d1f Tree-SHA512: faff07c9af822bc73d209debe0d2fb98eb4bdc20b57bb43b687b812673b6b948cb0aa2e1c5490c0765827f224c9f3c81338c42657a7a482cdfdde77837599a5e
2 parents af8644f + 4fe4d1f commit 9fc4dac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,19 @@ extern "C" {
7272
pub fn height_to_flags(height: u32) -> u32 {
7373
let mut flag = VERIFY_NONE;
7474

75-
if height > 170059 {
75+
if height >= 173805 {
7676
flag |= VERIFY_P2SH;
7777
}
78-
if height > 363724 {
78+
if height >= 363725 {
7979
flag |= VERIFY_DERSIG;
8080
}
81-
if height > 388381 {
81+
if height >= 388381 {
8282
flag |= VERIFY_CHECKLOCKTIMEVERIFY;
8383
}
84-
if height > 419328 {
84+
if height >= 419328 {
8585
flag |= VERIFY_CHECKSEQUENCEVERIFY;
8686
}
87-
if height > 481824 {
87+
if height >= 481824 {
8888
flag |= VERIFY_NULLDUMMY | VERIFY_WITNESS
8989
}
9090

0 commit comments

Comments
 (0)