rpcclient: fix getpeers test

Signed-off-by: edgedlt <edgedlt@protonmail.com>
This commit is contained in:
edgedlt 2024-06-27 14:00:08 +01:00
parent aab2620548
commit ba4ebbd107

View file

@ -568,7 +568,7 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
invoke: func(c *Client) (any, error) {
return c.GetPeers()
},
serverResponse: `{"id":1,"jsonrpc":"2.0","result":{"unconnected":[{"address":"172.200.0.1","port":20333}],"connected":[{"address":"127.0.0.1","port":20335}],"bad":[{"address":"172.200.0.254","port":20332}]}}`,
serverResponse: `{"id":1,"jsonrpc":"2.0","result":{"unconnected":[{"address":"172.200.0.1","port":20333}],"connected":[{"address":"127.0.0.1","port":20335, "useragent":"/NEO-GO:0.106.2/", "lastknownheight":1000}],"bad":[{"address":"172.200.0.254","port":20332}]}}`,
result: func(c *Client) any {
return &result.GetPeers{