Compare commits

..

1 Commits

Author SHA1 Message Date
aarifullin afb37f8f61 [#62] morph: List morph rules chains by traversing iterator
Tests and linters / Lint (pull_request) Failing after 39s Details
Tests and linters / Tests (1.21) (pull_request) Failing after 1m29s Details
Tests and linters / Tests with -race (pull_request) Failing after 1m28s Details
Tests and linters / Tests (1.20) (pull_request) Failing after 1m38s Details
DCO action / DCO (pull_request) Successful in 1m29s Details
Tests and linters / Staticcheck (pull_request) Failing after 1m41s Details
* Make `ListMorphRuleChains` methods use `commonclient.ReadIteratorItems`.
* Make `NewContractStorage` receive `rpcInvoker` to initialize `Invoker`
  within `listChains`.
* Iterators are used because listing by `ListChainsByPrefix` may cause
  stack overflow from neo-go side (len(items) > 1024).

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-04-08 15:01:17 +03:00
1 changed files with 1 additions and 2 deletions

View File

@ -14,10 +14,9 @@ import (
"github.com/google/uuid"
"github.com/nspcc-dev/neo-go/pkg/neorpc/result"
"github.com/nspcc-dev/neo-go/pkg/rpcclient/actor"
neoinvoker "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
neoinvoker "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker"
"github.com/nspcc-dev/neo-go/pkg/wallet"
)