-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update ledger and consensus #99
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30fc0cb
to
f3738af
Compare
3a0b123
to
ce2d0c3
Compare
carbolymer
commented
Jul 7, 2023
carbolymer
commented
Jul 7, 2023
e54c15f
to
58065eb
Compare
67a089a
to
d677991
Compare
d677991
to
6bdb471
Compare
68c2bbf
to
1ff60d1
Compare
7dd594c
to
92563d2
Compare
carbolymer
commented
Jul 7, 2023
@@ -66,6 +66,5 @@ writeFileJSON :: ToJSON a | |||
-> IO (Either (FileError ()) ()) | |||
writeFileJSON path x = | |||
runExceptT $ | |||
handleIOExceptT (FileIOError path) $ | |||
BS.writeFile path (serialiseToJSON x) | |||
fileIOExceptT path (`BS.writeFile` serialiseToJSON x) |
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.
This will throw an error (throwError
) when path
does not exist - fileIOExceptT
can't be used here
Improves the error situation when dealing with file paths. Before all IO related errors where wrapped around the constructor FileIOError. Now the existence of the file is checked and if it does not exist a FileDoesNotExistError is thrown. Added `fileIOExceptT` function that abstracts away this existence check, so we can get read of all the FileIOError wraps.
(cherry picked from commit 8de46ea)
(cherry picked from commit 4cd2216)
92563d2
to
82d68db
Compare
82d68db
to
3902e8c
Compare
Jimbo4350
approved these changes
Jul 7, 2023
credentials Remove voting credential parameter from createVotingProcedure
3902e8c
to
511ea88
Compare
disassembler
approved these changes
Jul 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
Context
Update to the latest ledger.
Requires:
FileDoesNotExistError
and bump to ouroboros-consensus 0.8 #45Checklist
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.