-
Notifications
You must be signed in to change notification settings - Fork 38
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
Drop contract group scope #2625
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2625 +/- ##
==========================================
+ Coverage 29.04% 29.22% +0.17%
==========================================
Files 417 416 -1
Lines 31559 31318 -241
==========================================
- Hits 9166 9152 -14
+ Misses 21590 21366 -224
+ Partials 803 800 -3
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
67b551e
to
be5bfea
Compare
signer.Scopes = transaction.CustomGroups | ||
signer.AllowedGroups = keys.PublicKeys{groupKey} | ||
balanceHash, err := nnsReader.ResolveFSContract(nns.NameBalance) | ||
if err != nil && c.Contracts[balanceContract] != nil { |
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.
but what if err != nil
and no hash has been cached?
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 means that we don't know the hash and it stays zero. In this case it's irrelevant, we don't have data from contract, we don't have data from the network, let's hope it works, but if it doesn't we can't help much.
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.
passing zero hash and continuing working scares me. but ok
Conflicts. |
It's a part of a Signer as well and it can be used. Signed-off-by: Roman Khimov <roman@nspcc.ru>
And fail if SetGroupSignerScope() fails, it MUST work on a valid network. Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
It's not the most elegant way to handle the problem since normally each contract handler should decide on these things by its own (even per-call), but given the structure we have this is the easiest "universal" set of rules. It has a downside in that it MUST be synchronized with contracts changes, but those are not very frequent, so I think it's good enough. Managing group key is far worse problem than that. Signed-off-by: Roman Khimov <roman@nspcc.ru>
No longer needed. Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
be5bfea
to
e501986
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.
I would wait for @AnnaShaleva's review.
Ok, not this time. |
Starting from c08e2b5 (#2625), there is no need to maintain committee group and its private key because CustomGroups witness scope is no longer used. Completely purge committee group from NeoFS Sidechain auto-deployment procedure. As a result, contract manifests are no longer modified. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Starting from c08e2b5 (#2625), there is no need to maintain committee group and its private key because CustomGroups witness scope is no longer used. Completely purge committee group from NeoFS Sidechain auto-deployment procedure. As a result, contract manifests are no longer modified. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Starting from c08e2b5 (#2625), there is no need to maintain committee group and its private key because CustomGroups witness scope is no longer used. Completely purge committee group from NeoFS Sidechain auto-deployment procedure. As a result, contract manifests are no longer modified. Closes #2642. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
I'm not yet sure we need it, but old adm (before nspcc-dev/neofs-node#2625) creates a broken deploy script with actual data that has no fields inside. Not a problem for updates, not a problem for newer adm, but still. Signed-off-by: Roman Khimov <roman@nspcc.ru>
No description provided.