From 90c60d04c222600ac371e72f17e625c74d41bbf4 Mon Sep 17 00:00:00 2001 From: Sergey Kroshnin Date: Mon, 5 Aug 2019 03:15:41 +0300 Subject: [PATCH] Use node_ prefix for node ID (#67) * Use node_ prefix for node ID https://github.com/nanocurrency/nano-node/pull/2191 * Minor typo * Clarify versions using node_ prefix --- docs/commands/rpc-protocol.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/commands/rpc-protocol.md b/docs/commands/rpc-protocol.md index 5f6db3bd8..8cfded95b 100644 --- a/docs/commands/rpc-protocol.md +++ b/docs/commands/rpc-protocol.md @@ -1485,7 +1485,8 @@ _enable_control required, version 17.0+_ --8<-- "debug-only-command.md" -Derive private key, public key and account number from node ID +Derive private key, public key and node ID number with checksum (similar to account representation). "as_account" field is **deprecated** +_version 20.0 will generate the node_id with `node_` prefix, earlier versions will generate with `nano_` prefix_ **Request:** ```json @@ -1498,7 +1499,8 @@ Derive private key, public key and account number from node ID { "private": "2AD75C9DC20EA497E41722290C4DC966ECC4D6C75CAA4E447961F918FD73D8C7", "public": "78B11E1777B8E7DF9090004376C3EDE008E84680A497C0805F68CA5928626E1C", - "as_account": "nano_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3" + "as_account": "nano_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3", + "node_id": "node_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3" } ``` @@ -1556,7 +1558,9 @@ Returns a list of pairs of online peer IPv6:port and its node protocol network v **Optional "peer_details"** _version 18.0+_ -Boolean, false by default. Returns a list of peers IPv6:port with its node protocol network version and node ID. The node ID is random and is not a Nano address. `type` returned in version 19.0+ as either `tcp` (preferred) or `udp` (fallback) used for peering with that node. +Boolean, false by default. Returns a list of peers IPv6:port with its node protocol network version and node ID. The node ID is random and is not a Nano address. `type` returned in version 19.0+ as either `tcp` (preferred) or `udp` (fallback) used for peering with that node. + +_version 20.0 will generate the node_id with `node_` prefix, earlier versions will generate with `nano_` prefix_ **Response:** ```json @@ -1564,7 +1568,7 @@ Boolean, false by default. Returns a list of peers IPv6:port with its node proto "peers": { "[::ffff:172.17.0.1]:32841": { "protocol_version": "16", - "node_id": "nano_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3", + "node_id": "node_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3", "type": "udp" } }