Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Add initial proptest to check forwarding amount calculation #56

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Dec 5, 2023

Based on #53, fixes #45.

We introduce an initial property-based test to check calculate_amount_to_forward_per_htlc. We also adapt the latter to be less susceptible to over/underflows.

@tnull tnull force-pushed the 2023-11-add-proptest branch 3 times, most recently from cdc0d3d to 175696c Compare December 5, 2023 13:04
@tnull
Copy link
Collaborator Author

tnull commented Dec 7, 2023

Rebased now that #53 landed and either addressed feedback or tracking it elsewhere.

@tnull tnull force-pushed the 2023-11-add-proptest branch from 612f0e5 to 77d9078 Compare December 18, 2023 09:42
@tnull
Copy link
Collaborator Author

tnull commented Dec 18, 2023

Rebased after #58 landed.

@johncantrell97 Let me know if I can merge.

@tnull
Copy link
Collaborator Author

tnull commented Dec 19, 2023

Merging as ACKed elsewhere

@tnull tnull merged commit 587ffe7 into lightningdevkit:main Dec 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LSPS2: Use proptest to test calculation utils
2 participants