Skip to content

Commit

Permalink
fix: enable full format addr by increase bech32 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Jul 12, 2024
1 parent 1760528 commit caca0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segwit_addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int bech32_encode(char *const output, const size_t out_len, const char *const hr
chk = bech32_polymod_step(chk) ^ (hrp[i] >> 5);
++i;
}
if (i + 7 + data_len > 108)
if (i + 7 + data_len > 1023)
return 0;
chk = bech32_polymod_step(chk);
}
Expand Down

0 comments on commit caca0fc

Please sign in to comment.