Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a limit to CSV opcode in the script builder #141

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

dangershony
Copy link
Member

Solves this issue #138 (comment)

{
// the actual number is 65535*512 seconds (388 days)
// https://en.bitcoin.it/wiki/Timelock
throw new Exception($"Invalid CSV value {punishmentLockDays}");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

general question, wouldn't it better for a ArgumentOutOfRangeException ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah probably you are correct

@DavidGershony DavidGershony merged commit aac267f into main Sep 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants