Skip to content
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

client init error #3432

Closed
Tobeyw opened this issue May 11, 2024 · 4 comments
Closed

client init error #3432

Tobeyw opened this issue May 11, 2024 · 4 comments
Labels
question Further information is requested

Comments

@Tobeyw
Copy link

Tobeyw commented May 11, 2024

When I initialized neoClient using neo-go.

        opts := rpcclient.Options{}
	neoClient, err := rpcclient.New(context.TODO(), "http://seed2t5.neo.org:20332", opts)
	if err != nil {
		fmt.Println("NeoN3 client connection failed:", err)
	}

	err = neoClient.Init()
	if err != nil {
		fmt.Println("NeoN3 client init failed:", err)
		os.Exit(1)
	}

	if err = neoClient.Ping(); err != nil {
		fmt.Println("NeoN3 client ping failed:", err)
		os.Exit(1)
	}


the following error occurred
NeoN3 client init failed: failed to get network magic: unexpected hardfork: Cockatrice

As far as I know, neo-node changed yesterday, which may have something to do with this.
https://github.com/neo-project/neo/pull/3222/files#diff-070cf635f0037a2b5b193f6b90475e463c6a41647572a9ffcd42585c159f9bf5

@Tobeyw Tobeyw added bug Something isn't working U2 Seriously planned labels May 11, 2024
@superboyiii
Copy link

Getversion in v3.7.1 testnet

{
    "jsonrpc": "2.0",
    "id": 3,
    "result": {
        "tcpport": 20333,
        "nonce": 1937452412,
        "useragent": "/Neo:3.7.1+1d957922a1aec90d0ec852402dc6eca496841ed4/",
        "rpc": {
            "maxiteratorresultitems": 1000,
            "sessionenabled": true
        },
        "protocol": {
            "addressversion": 53,
            "network": 894710606,
            "validatorscount": 7,
            "msperblock": 15000,
            "maxtraceableblocks": 2102400,
            "maxvaliduntilblockincrement": 5760,
            "maxtransactionsperblock": 5000,
            "memorypoolmaxtransactions": 50000,
            "initialgasdistribution": 5200000000000000,
            "hardforks": [
                {
                    "name": "Aspidochelone",
                    "blockheight": 210000
                },
                {
                    "name": "Basilisk",
                    "blockheight": 2680000
                },
                {
                    "name": "Cockatrice",
                    "blockheight": 3967000
                }
            ]
        }
    }
}

@roman-khimov
Copy link
Member

Yup, NeoGo 0.106.0 is not released yet. Likely it'll work if you're to go get github.com/nspcc-dev/neo-go@master, but it's not a stable release yet.

@AnnaShaleva
Copy link
Member

Likely it'll work

It will. We'll delver 0.106.0 ASAP, and then you have to upgrade your RPC client version, it should work OK afterwards.

@AnnaShaleva AnnaShaleva added question Further information is requested and removed bug Something isn't working U2 Seriously planned labels May 13, 2024
@AnnaShaleva
Copy link
Member

@Tobeyw, 0.106.0 is out, please update your RPC client and try it out. I'm closing this issue since new Client version should solve your problem. If not, then feel free to reopen it and comment.

@AnnaShaleva AnnaShaleva closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants