-
Notifications
You must be signed in to change notification settings - Fork 217
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 maxCollateralInputs to ProtocolParameters #2813
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep all good - hopefully some test case needs updating for the new field.
-- | ||
-- If this conversion would under/overflow, there is not much we can do except | ||
-- to hastily exit. | ||
unsafeToWord16 :: Integral n => n -> Word16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you could combine this with unsafeToWord64
and make
unsafeToWord16 :: Integral n => n -> Word16 | |
unsafeToWord :: (Integral n, Integral w) => n -> w |
d40551e
to
78411fd
Compare
db01eda
to
b70f385
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks. I added a test case for unsafeIntToWord
, just to be sure, and took the opportunity to improve the way we crash the app.
bors r+ |
2813: Add maxCollateralInputs to ProtocolParameters r=sevanspowell a=sevanspowell # Issue Number ADP-958 # Overview - Included the maxCollateralInputs protocol parameter in the ProtocolParameters data type. # Comments - No tests exist for this structure, I believe this structure is tested implicitly via the `ApiNetworkParameters` structure. But since modifying that structure would encroach on ADP-1061, I'm going to leave this without tests for now. If anyone can think of a test they'd like to see, don't hesitate to suggest one! Co-authored-by: Samuel Evans-Powell <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]>
This PR was included in a batch that successfully built, but then failed to merge into master (it was a non-fast-forward update). It will be automatically retried. |
2813: Add maxCollateralInputs to ProtocolParameters r=sevanspowell a=sevanspowell # Issue Number ADP-958 # Overview - Included the maxCollateralInputs protocol parameter in the ProtocolParameters data type. # Comments - No tests exist for this structure, I believe this structure is tested implicitly via the `ApiNetworkParameters` structure. But since modifying that structure would encroach on ADP-1061, I'm going to leave this without tests for now. If anyone can think of a test they'd like to see, don't hesitate to suggest one! Co-authored-by: Samuel Evans-Powell <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]>
bors retry |
Already running a review |
Build failed: However it looks like it completed?
|
bors retry |
Oops, sorry I pushed a minor fix to |
Issue Number
ADP-958
Overview
Comments
ApiNetworkParameters
structure. But since modifying that structure would encroach on ADP-1061, I'm going to leave this without tests for now. If anyone can think of a test they'd like to see, don't hesitate to suggest one!