From 5ed647aaca410ee12a6fb2d0da1b93d1ab20a2b2 Mon Sep 17 00:00:00 2001 From: Boris Simonov Date: Thu, 23 May 2024 13:55:20 +0300 Subject: [PATCH] PK-2485: test github workflow --- .github/workflows/release.yaml | 4 +++- readme.md | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7607aed..559f614 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,7 +19,9 @@ jobs: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 + with: + go-version: '>=1.22.0' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 diff --git a/readme.md b/readme.md index 8541e05..478a6f2 100644 --- a/readme.md +++ b/readme.md @@ -7,10 +7,11 @@ JSON-RPC/substrate aware reverse proxy in Go. Conisist of two parts: `proxy` - simple reverse proxy supports websocket/http + `consumer` (optional) - monitors extrinsics (seen by proxy) inclusion to blockchain, provide observability and retry mechanism to resist node failures after transaction was accepted by RPC node but before it was included into block -##### Proxy +#### Proxy configuration * `SUB_LISTEN (default ":9944,:9933")` - Comma-separated list of local addresses to listen * `SUB_HOSTS (default "http+ws://127.0.0.1:9944/")` - Comma-separated list of upstream urls, each upstream schemes supported: ws, http, http+ws, https, wss, https+wss @@ -28,7 +29,7 @@ Conisist of two parts: * `SUB_IGNORE_HEALTHCHECKS` - Removes upstream healthchecking logic considering that it's always alive * `SUB_DENY_METHODS (default "author_rotateKeys")` - Comma-separated list of methods that proxy must not forward to upstream -##### How Proxy choose upstream +#### How Proxy choose upstream Only one load-balancing strategy supported: **random** @@ -41,7 +42,7 @@ Only one load-balancing strategy supported: **random** 5. if there is no server that can handle websocket request then proxy will wait 10 seconds and then retry to pick upstream and finally proxy will giveup and forward request to **random** server if no apropriate was found. -##### Consumer +#### Consumer configuration Tracks extrinsic inclusion and optionally tries to resubmit them, configuration: @@ -52,13 +53,13 @@ Worth mentioning: * `SUB_TRY_RESUBMIT` - resubmit extrinsic if it not appeared on-chain so far -##### Similar projects +#### Similar projects * [dshackle](https://github.com/emeraldpay/dshackle) * [subway](https://github.com/acalanetwork/subway) -##### Features +#### Features Decode storage with any http client ```curl -s -d '{"id":1, "jsonrpc":"extensions/get-storage/1.0","method":"system.events"}' -v http://127.0.0.1:9944 | jq