-
Notifications
You must be signed in to change notification settings - Fork 81
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: add getCommitteeAddress method #3362
Conversation
94869d9
to
f39d295
Compare
It should be ported to the corresponding interop package and to the Neo-specific invoker. |
f39d295
to
29d4f7c
Compare
Tests are failing. |
beef651
to
77c921a
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.
Tests are still failing.
Block 20 stateroot from RPC tests needs to be updated because you change native Management's state by adding new method to native Neo's manifest. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3362 +/- ##
==========================================
- Coverage 84.81% 84.80% -0.02%
==========================================
Files 331 331
Lines 44961 44969 +8
==========================================
Hits 38135 38135
- Misses 5314 5321 +7
- Partials 1512 1513 +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.
Otherwise LGTM!
a38f009
to
8a37d9f
Compare
Port neo-project/neo#3154. Close #3334 Signed-off-by: Ekaterina Pavlova <[email protected]>
Signed-off-by: Ekaterina Pavlova <[email protected]>
8a37d9f
to
72484a3
Compare
Signed-off-by: Ekaterina Pavlova <[email protected]>
@@ -232,6 +232,10 @@ func newNEO(cfg config.ProtocolConfiguration) *NEO { | |||
md = newMethodAndPrice(n.getCommittee, 1<<16, callflag.ReadStates) | |||
n.AddMethod(md, desc) | |||
|
|||
desc = newDescriptor("getCommitteeAddress", smartcontract.Hash160Type) |
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.
It's only available after the Cockatrice hardfork, so at the very minimum this needs to be updated in #3213.
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 saw the Cockatrice attribute, but since we don't have it now, I've merged this PR as is. I'll search for all mentions of Cockatrice
in C# node anyway while implementing it.
Port neo-project/neo#3154.
Close #3334