-
Notifications
You must be signed in to change notification settings - Fork 79
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
Native contract manifest build fixes #3704
Conversation
These conditions are about filtering methods out. A method is excluded if its ActiveFrom is strictly higher than the current HF, since if it's the same then it should be present. Otherwise contract is broken at the height of this particular HF. Signed-off-by: Roman Khimov <[email protected]>
Technically, we can always buildHFSpecificMD() if contract is active, but we just optimize the build out in some cases. switch slightly obfuscates this and requires having the call in two branches. Signed-off-by: Roman Khimov <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3704 +/- ##
==========================================
- Coverage 83.04% 83.04% -0.01%
==========================================
Files 335 335
Lines 46719 46729 +10
==========================================
+ Hits 38800 38806 +6
- Misses 6327 6332 +5
+ Partials 1592 1591 -1 ☔ View full report in Codecov by Sentry. |
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'm OK with this fix, let me just check the Cockatrice states compatibility for the public networks. Haven't you check it?
Tests suggest that it works fine, we do invoke some C-methods at the C height in tests. |
I'm more worried about proper native call scripts. Anyway, the check won't take long, my testnet node is already at 3M+ height. |
Both testnet and mainnet are OK up to Domovoi+ height:
|
Generic fixes from #3700.