diff --git a/cmd/neofs-adm/internal/modules/morph/balance.go b/cmd/neofs-adm/internal/modules/morph/balance.go index 480a3e9de..cbd4ca60e 100644 --- a/cmd/neofs-adm/internal/modules/morph/balance.go +++ b/cmd/neofs-adm/internal/modules/morph/balance.go @@ -38,7 +38,7 @@ const ( // notaryEnabled signifies whether contracts were deployed in a notary-enabled environment. // The setting is here to simplify testing and building the command for testnet (notary currently disabled). // It will be removed eventually. - notaryEnabled = true + notaryEnabled = false ) func dumpBalances(cmd *cobra.Command, _ []string) error { diff --git a/cmd/neofs-adm/internal/modules/morph/initialize.go b/cmd/neofs-adm/internal/modules/morph/initialize.go index 1af3c1d86..7c6e6ac93 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize.go @@ -7,7 +7,6 @@ import ( "path/filepath" "time" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" "github.com/nspcc-dev/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/crypto/keys" @@ -414,16 +413,16 @@ func getNativeHashes(c Client) (map[string]util.Uint160, error) { return nil, fmt.Errorf("can't get native contract hashes: %w", err) } - notaryEnabled := false + //notaryEnabled := false nativeHashes := make(map[string]util.Uint160, len(ns)) for i := range ns { - if ns[i].Manifest.Name == nativenames.Notary { - notaryEnabled = len(ns[i].UpdateHistory) > 0 - } + //if ns[i].Manifest.Name == nativenames.Notary { + // notaryEnabled = len(ns[i].UpdateHistory) > 0 + //} nativeHashes[ns[i].Manifest.Name] = ns[i].Hash } - if !notaryEnabled { - return nil, errors.New("notary contract must be enabled") - } + //if !notaryEnabled { + // return nil, errors.New("notary contract must be enabled") + //} return nativeHashes, nil } diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index 494300e93..97ba0c29f 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -70,7 +70,6 @@ var ( containerContract, neofsIDContract, netmapContract, - proxyContract, reputationContract, subnetContract, } @@ -521,7 +520,7 @@ func getContractDeployParameters(cs *contractState, deployData []interface{}) [] func (c *initializeContext) getContractDeployData(ctrName string, keysParam []interface{}) []interface{} { items := make([]interface{}, 1, 6) - items[0] = false // notaryDisabled is false + items[0] = true // notaryDisabled is false switch ctrName { case neofsContract: @@ -588,7 +587,7 @@ func (c *initializeContext) getAlphabetDeployItems(i, n int) []interface{} { items := make([]interface{}, 6) items[0] = false items[1] = c.Contracts[netmapContract].Hash - items[2] = c.Contracts[proxyContract].Hash + items[2] = util.Uint160{} items[3] = innerring.GlagoliticLetter(i).String() items[4] = int64(i) items[5] = int64(n) diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_roles.go b/cmd/neofs-adm/internal/modules/morph/initialize_roles.go index 2103b9f8f..faabb74d4 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_roles.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_roles.go @@ -9,6 +9,7 @@ import ( ) func (c *initializeContext) setNotaryAndAlphabetNodes() error { + return nil if ok, err := c.setRolesFinished(); ok || err != nil { if err == nil { c.Command.Println("Stage 2: already performed.") diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_transfer.go b/cmd/neofs-adm/internal/modules/morph/initialize_transfer.go index f0ceb7bfb..a09a69420 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_transfer.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_transfer.go @@ -135,6 +135,7 @@ func (c *initializeContext) multiSign(tx *transaction.Transaction, accType strin } func (c *initializeContext) transferGASToProxy() error { + return nil gasHash := c.nativeHash(nativenames.Gas) proxyCs := c.getContract(proxyContract)