Conversation
7296e91 to
93dbc8b
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3813 +/- ##
==========================================
- Coverage 25.53% 25.45% -0.09%
==========================================
Files 669 668 -1
Lines 42940 42846 -94
==========================================
- Hits 10966 10906 -60
+ Misses 30971 30946 -25
+ Partials 1003 994 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
93dbc8b to
09edf3c
Compare
|
Testsuit run is in progress, but the PR itself is ready for review. |
|
Full testsuite passed successfully: https://github.com/nspcc-dev/neofs-node/actions/runs/21943824243 |
No functional changes. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
09edf3c to
f45bd0b
Compare
Replace custom AppCall argument parsers with built-in NeoGo's ones. Other related functional changes: 1. Remove container.PutNamed structure since it duplicates container.Put functionality starting from c6c6aea. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This type argument is excessive and misleading since scparser doesn't operate with VM types. Also, scparser offers detailed error information by himsel, no further extension is necessary. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
It's used in two places, and it's a duplicate of event.WrongNumberOfParameters. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Parsers from `pkg/morph/event/...` will reuse this common code. No functional changes. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Reuse `event.GetValueFromArg`, `event.GetArgs` and `event.WrapInvalidArgError` where possible. Take care of errors text, unify invalid argument errors, remove excessive information. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This code complicates things for nothing and may lead to bugs related to structure fields order initialization. Raw parsing is more clear and takes less space. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
f45bd0b to
123dbc9
Compare
|
@nspcc-dev/neofs-core updated, ready for review. |
| } | ||
|
|
||
| // CreateContainerRequest wraps container creation request to provide | ||
| // CreateContainerV2Request wraps container creation request to provide |
| err error | ||
| ) | ||
|
|
||
| if err = res.Container.FromStackItem(stack.Pop().Item()); err != nil { |
There was a problem hiding this comment.
Just as a thought: type Item interface can be implemented by Instruction as well (all type switches based on specific stackitems will go wild though).
| func ParsePutNotary(ne event.NotaryEvent) (event.Event, error) { | ||
| var ev Put | ||
| const putArgCnt = 3 | ||
| var ev = new(Put) |
| ### Changed | ||
| - SN retries notary requests if `insufficient amount of gas` error appears (#3739) | ||
| - Speed up metabase resync by using batch operations (#3804) | ||
| - Notary events parsing is now done via NeoGo `scparser` package (#3813) |
There was a problem hiding this comment.
Not sure it's worth mentioning at all, it's deeply internal to node. And this is outdated wrt 0.51.1 release as well.
TODO: