-
Notifications
You must be signed in to change notification settings - Fork 59
Fix scan_txlog.py handling of holding fees #2478
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
Conversation
[ci] Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
scripts/scan-txlog/scan_txlog.py
Outdated
| amulet_cc_input, | ||
| all_inputs, | ||
| ) = transfer_inputs.summary(self.args.subtract_holding_fees_per_round) | ||
| ) = transfer_inputs.summary(event.template_id.package_id) |
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.
amuletrules_transfer
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.
have you considered making summar take an ExercisedEvent as the argument and then read the package id from there? That feels like it may be more robust against e.g. the issue where you used the template id of the amulet.
scripts/scan-txlog/scan_txlog.py
Outdated
| amulet_cc_input, | ||
| all_inputs, | ||
| ) = transfer_inputs.summary(self.args.subtract_holding_fees_per_round) | ||
| ) = transfer_inputs.summary(event.template_id.package_id) |
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.
AmuletRules_BuyMemberTraffic
scripts/scan-txlog/scan_txlog.py
Outdated
| amulet_cc_input, | ||
| all_inputs, | ||
| ) = transfer_inputs.summary(self.args.subtract_holding_fees_per_round) | ||
| ) = transfer_inputs.summary(event.template_id.package_id) |
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.
AmuletRules_CreateExternalPartySetupProposal or AmuletRules_CreateTransferPreapproval or TransferPreapproval_Renew
(all in splice-amulet)
Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
moritzkiefer-da
left a comment
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.
Nice thanks for the fix! I assume you tested it against the failing test on 3.4.
scripts/scan-txlog/scan_txlog.py
Outdated
| amulet_cc_input, | ||
| all_inputs, | ||
| ) = transfer_inputs.summary(self.args.subtract_holding_fees_per_round) | ||
| ) = transfer_inputs.summary(event.template_id.package_id) |
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.
have you considered making summar take an ExercisedEvent as the argument and then read the package id from there? That feels like it may be more robust against e.g. the issue where you used the template id of the amulet.
Yes, removed the pause block too. But do let me know if you find it broken again |
wanna make a PR against the 3.4 branch with that? |
Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
Fixes #2380
Testing locally on 3.4... Success!
