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.
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
Audit changes #445
Audit changes #445
Changes from 1 commit
579ecbe
fc36439
38c0718
b525aeb
98b5e81
47f54a5
2ff0e46
73d8ab2
a94db0a
580b35c
f2cfce6
8764a1a
798c8c3
492d057
817c777
c59f14c
96b3250
34aa2af
291df89
5f696fd
c8cf373
73c209f
2275916
f44b98e
6ffc16e
089191f
47e99e6
14da58f
1ccb4b1
5114f60
5c6adbe
db84394
72e2820
cc595b1
63bb587
97d1460
bdf3676
2e6897d
57fec8c
cd8e5de
5e465f4
13271b9
395cc53
9d4be2d
1555195
4854587
f33029e
55c00e2
785be72
cdc788b
c1d6f45
82f2b7f
ee333f6
70a0bee
1554e51
1654dbb
bb45ed1
3e1b3a1
f08e504
b15fc69
bbe4122
943d937
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is it something useful elsewhere that we should put on top level?
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.
Something that could be reused was already existing indeed and I now used it:
isOutputWithDatumHash
. Thanks!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.
I find the names confusing. This ends with
Data
and returns a list of hashes, the previous one ends withHashedData
and returns a map that resolve to the actual data.Also I find "consumed" a bit misleading. This is the same as "spent"? This means the datum hashes of every piece of datum found in the inputs, doesn't it? Not a subset.
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.
I changed the name to
txSkelInputDataAsHashes
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.
Maybe we should have a flag in the prettyprinting options to enable this on demand and hide it by default. The default printing might be starting to get a bit crowded (this is not the reason, this is just a drop, it just makes me think about it). In general, we don't really track datum hashes and this would be lighter by default.
For instance
pcOptPrintDatumHashes
like there already is apcOptPrintTxHashes
, false by default.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.
I will leave these changes to later changes in the pretty printer.