From 93d50c6bb835a2c1d84c1a70dd29bf4a54c9e7f9 Mon Sep 17 00:00:00 2001 From: Srinivas Baride Date: Fri, 25 Jun 2021 19:50:03 +0530 Subject: [PATCH 1/5] Fix version issue --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dba4516..0bf78a4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGES := $(shell go list ./...) -VERSION := $(shell git rev-parse --short HEAD) +VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//') COMMIT := $(shell git log -1 --format='%H') BUILD_TAGS := $(strip netgo,ledger) From bee8d54243283567d38f707aa7ad2482ffe96fd9 Mon Sep 17 00:00:00 2001 From: Srinivas Baride Date: Fri, 25 Jun 2021 20:09:53 +0530 Subject: [PATCH 2/5] Fixed subscribe to node command --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8c027cc..2f67354 100644 --- a/README.md +++ b/README.md @@ -50,13 +50,12 @@ TBU 3. Subscribe to a node ```sh - sudo sentinelcli subscription subscribe-to-node \ + sudo sentinelcli tx subscription subscribe-to-node \ --home "${HOME}/.sentinelcli" \ --keyring-backend file \ --chain-id sentinelhub-2 \ --node https://rpc.sentinel.co:443 \ - --from \ - + --from ``` 4. Connect @@ -68,8 +67,7 @@ TBU --chain-id sentinelhub-2 \ --node https://rpc.sentinel.co:443 \ --yes \ - --from \ - + --from ``` ## Disconnect from a dVPN node From 0fe72ab73cbc23c9bfdcd888921e680d7fcfd4b8 Mon Sep 17 00:00:00 2001 From: Srinivas Baride Date: Fri, 25 Jun 2021 20:23:04 +0530 Subject: [PATCH 3/5] Added query subscription command --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2f67354..a3753a8 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ TBU 1. Create or recover a key + Need not perform this step again in case you have already done it once. + ```sh sentinelcli keys add \ --home "${HOME}/.sentinelcli" \ @@ -33,7 +35,7 @@ TBU ``` - Pass flag `--recover` to recover the key + Pass flag `--recover` to recover the key. 2. Query the active nodes and choose one @@ -50,7 +52,7 @@ TBU 3. Subscribe to a node ```sh - sudo sentinelcli tx subscription subscribe-to-node \ + sentinelcli tx subscription subscribe-to-node \ --home "${HOME}/.sentinelcli" \ --keyring-backend file \ --chain-id sentinelhub-2 \ @@ -58,7 +60,18 @@ TBU --from ``` -4. Connect +4. Query the active subscriptions of your account address + + ```sh + sentinelcli query subscriptions \ + --home "${HOME}/.sentinelcli" \ + --node https://rpc.sentinel.co:443 \ + --status Active \ + --page 1 \ + --address + ``` + +5. Connect ```sh sudo sentinelcli connect \ From 10c9dfa8d4e67190b2ae612f11a40736641dcf82 Mon Sep 17 00:00:00 2001 From: Srinivas Baride Date: Fri, 25 Jun 2021 20:38:32 +0530 Subject: [PATCH 4/5] Added resolvconf as dependency for Linux --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3753a8..941ccc2 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ Download the latest version of CLI client software from the releases section [here](https://github.com/sentinel-official/dvpn-node/releases/latest "here"). -## Install WireGuard +## Install dependencies ### Linux ```sh sudo apt-get update && \ -sudo apt install wireguard-tools +sudo apt-get install resolvconf wireguard-tools ``` ### Mac From eeee6bc011a80cdb3108d0aa4de81cc57f1ee343 Mon Sep 17 00:00:00 2001 From: Srinivas Baride Date: Fri, 25 Jun 2021 20:48:46 +0530 Subject: [PATCH 5/5] Updated WireGuard installation command for Mac --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 941ccc2..97411e3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,13 @@ sudo apt-get install resolvconf wireguard-tools ### Mac ```sh -TBU +brew install wireguard-tools +``` + +or + +```sh +port install wireguard-tools ``` ## Connect to a dVPN node