RPC: Using the method `PUT` actually send a RPC with the method `GET`
To set up a connection with a known point, one may use the follow PUT
RPC : /network/points/IP:PORT.
However, I noticed that when I log this RPC, whether it fails or not, it logs the description of the RPC at the same path but which uses the GET method and furthermore the PUT RPC call itself is not logged.
saroupille@saroupille:~/Git/tezos/master/tezos$ tezos-client -l rpc put /network/points/136.243.125.114:9732
>>>>0: http://localhost:8732/network/version
<<<<0: 200 OK
{ "chain_name": "TEZOS_MAINNET", "distributed_db_version": 0,
"p2p_version": 1 }
Disclaimer:
The Tezos network is a new blockchain technology.
Users are solely responsible for any risks associated
with usage of the Tezos network. Users should do their
own research to determine if Tezos is the appropriate
platform for their needs and should apply judgement and
care in their network interactions.
>>>>1: http://localhost:8732/chains/main/blocks/head/protocols
<<<<1: 200 OK
{ "protocol": "Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",
"next_protocol": "Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd" }
>>>>2: http://localhost:8732/describe/network/points/136.243.125.114:9732?recurse=no
<<<<2: 200 OK
{ "static":
{ "get_service":
{ "meth": "GET",
"path":
[ "network", "points",
{ "id": "single", "name": "point",
"descr": "A network point (ipv4:port or [ipv6]:port)." } ],
"description": "Details about a given `IP:addr`.", "query": [], [ ...] } } }
Is this a bug? Is this intended?
Edited by Mathias Bourgoin