5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-09-19 16:09:36 +00:00

Add some information about dhtPing to admin.md

This commit is contained in:
Arceliar 2018-12-10 19:59:18 -06:00 committed by GitHub
parent b5f1dba723
commit 2d90cf63df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,3 +288,18 @@ Removes an existing crypto-key source subnet.
Returns: Returns:
- Zero or more successful `string` source subnets in the `"removed"` section - Zero or more successful `string` source subnets in the `"removed"` section
- Zero or more failed `string` source subnets in the `"not_removed"` section - Zero or more failed `string` source subnets in the `"not_removed"` section
#### `dhtPing`
Expects:
- `box_pub_key=` `string`, hex-encoded public key of the remote node to ping, in the same format as e.g. verbose output from a `getDHT` response
- `coords=` `string`, location of the remote node in the network, in the same format as e.g. a `getDHT` response
- `target=` `string`, hex-encoded 512-bit NodeID to ask about, affects what the response from the remote node will be, optional
Asks a remote node to respond with information from the DHT
Returns a `nodes` section with information about each node included in the DHT lookup response, indexed by IPv6.
For each IPv6 address, this includes:
- `box_pub_key` (`string`) contains the `EncryptionPublicKey` of the remote node
- `coords` (`string`) contains the coordinates of the node on the spanning tree