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
tnull merged 3 commits into
lightningdevkit:mainfrom
tnull:2023-11-add-proptest
Dec 19, 2023
Merged

Add initial proptest to check forwarding amount calculation#56
tnull merged 3 commits into
lightningdevkit:mainfrom
tnull:2023-11-add-proptest

Conversation

@tnull
Copy link
Copy Markdown
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
Comment thread src/lsps2/channel_manager.rs
Comment thread src/lsps2/channel_manager.rs
Comment thread src/lsps2/channel_manager.rs
Comment thread src/lsps2/channel_manager.rs
@tnull
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

tnull commented Dec 18, 2023

Rebased after #58 landed.

@johncantrell97 Let me know if I can merge.

@tnull
Copy link
Copy Markdown
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