Skip to content

Commit

Permalink
Merge pull request #172 from RaulBernal/Chore--Lint-errors-fixing
Browse files Browse the repository at this point in the history
Chore: Lint errors fixing
RaulBernal authored May 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents ee1771e + a1c1e7e commit c831abd
Showing 34 changed files with 2,074 additions and 834 deletions.
27 changes: 27 additions & 0 deletions .github/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
497 changes: 1 addition & 496 deletions .gitignore

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions 1.install-compile.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Install / Compile last BitCanna binary
**bcnad** is a blockchain application built using Cosmos SDK v.0.45.8 and Tendermint v.0.34.21 and IBC-go v3.2.0.
**bcnad** is a blockchain application built using Cosmos SDK v.0.45.15 and Comet-BFT v.0.34.27 and IBC-go v3.4.0.

In this guide you will find how to install the last binary or compile it by yourself.

@@ -18,18 +18,18 @@ If we don't raise this value, nodes will crash once the network grows large enou
```
## Option 1. Download and install the last binary
By downloading the binary we avoid compiling the source code.
1. Download the latest version (v.1.4.2) from Github:
1. Download the latest version (v.1.6.3) from Github:
```
cd $HOME
wget -nc https://github.com/BitCannaGlobal/bcna/releases/download/v1.4.2/bcna_linux_amd64.tar.gz
wget -nc https://github.com/BitCannaGlobal/bcna/releases/download/v1.6.3/bcna_linux_amd64.tar.gz
```
2. Check the sha256sum for the downloaded file.
```
sha256sum bcna_linux_amd64.tar.gz
```
It must return: `903c63b9f668bf5208566955648279bdf0c15e73aab415d5ea5efc09ec1fc890`
It must return: `21e7f032244362c0eeb43d477e39ab5b1f2ae12cd5b2799468444fb32f39da5e`
3. Verify that the version is `1.4.2`
3. Verify that the version is `1.6.3`
```
rm -f ./bcnad #delete old file if exist
tar zxvf bcna_linux_amd64.tar.gz
@@ -47,7 +47,7 @@ By downloading the binary we avoid compiling the source code.
```
## Option 2. Compile instructions:
### Install GoLang v1.18.x
### Install GoLang v1.19.x
The official instructions can be found here: https://golang.org/doc/install
@@ -57,7 +57,7 @@ The official instructions can be found here: https://golang.org/doc/install
```
2. Download the software:
```
curl https://dl.google.com/go/go1.18.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
curl https://dl.google.com/go/go1.19.6.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
```
3. Update environment variables to include Go (copy everything & paste)
```
@@ -74,21 +74,21 @@ The official instructions can be found here: https://golang.org/doc/install
```
go version
```
Should return `go version go1.18.5 linux/amd64`
Should return `go version go1.19.6 linux/amd64`
### Download source code and compile
5. Download the source code using `git`
```
git clone https://github.com/BitCannaGlobal/bcna.git
cd bcna
git checkout v1.4.2
git checkout v1.6.3
make build #it build the binary in build/ folder
```
6. Verify the version:
```
build/bcnad version
```
The output must be `1.4.2`
The output must be `1.6.3`
7. You now have two options:
* Move the binary to the /usr/local/bin path with:
29 changes: 18 additions & 11 deletions 2.2.snapshot.md
Original file line number Diff line number Diff line change
@@ -2,16 +2,23 @@
This is a fast way to sync a node with `bitcanna-1` chain.
A snapshot is nothing more than someone sharing a copy of his/her blockchain's data folder in a compressed file.

Our current authorized providers are (in alphabetical order):

* **Paranormal Brothers**:
https://bc.paranorm.pro/
* **Polkachu**:
https://polkachu.com/tendermint_snapshots/bitcanna
Our current authorized providers are:

- https://polkachu.com/tendermint_snapshots/bitcanna
- https://bc.paranorm.pro/
- https://github.com/obajay/StateSync-snapshots/tree/main/Bitcanna
- https://nodejumper.io/bitcanna/sync
- https://github.com/Voynitskiy/Voynitskiy/blob/main/mainnet/BitCanna/README.md#snapshot-2-times-a-day
- https://snapshot-bcna.kjinc.io/
- https://services.kjnodes.com/mainnet/bitcanna/snapshot
- https://github.com/Michel-Leidson/Snapshots
- https://bitszn.com/snapshots.html
- https://nodiums.com/index.php/2022/11/20/bitcanna-snapshot-state-sync-and-api-rpc/
- https://stakepool.dev.br/snapshots.html

(make sure to include them in your delegations ;)!)

The fastest way to sync a peer is using State Sync and is described [here as an alternative](https://github.com/BitCannaGlobal/bcna/blob/main/2.1.statesync.md).
> The fastest way to sync a peer is using State Sync and is described [here as an alternative](https://github.com/BitCannaGlobal/bcna/blob/main/2.1.statesync.md).

For this step, its necesary that you have followed [this manual](https://github.com/BitCannaGlobal/bcna/blob/main/1.install-compile.md) previously in order to install the `bcnad` binary.
@@ -20,7 +27,7 @@ For this step, its necesary that you have followed [this manual](https://github.
```
bcnad version
```
Output should be: `.1.3.1`
Output should be: `v1.6.3`
If you are using Cosmovisor,
```
@@ -29,8 +36,8 @@ For this step, its necesary that you have followed [this manual](https://github.
Output should be:
```
cosmovisor run version
11:11AM INF running app args=["version"] module=cosmovisor path=/home/raul/.bcna/cosmovisor/upgrades/ruderalis/bin/bcnad
--> .1.3.1
11:11AM INF running app args=["version"] module=cosmovisor path=/home/raul/.bcna/cosmovisor/upgrades/grow-vigorous-fix/bin/bcnad
--> v1.6.3
```
2. If you are a new user, you should **Initialize the folders:** change **_Moniker_** by your validator name (use quotes for two or more separated words *"Royal Queen Seeds"*)
```
@@ -50,7 +57,7 @@ For this step, its necesary that you have followed [this manual](https://github.
4. **Add to _config.toml_ file: server SEEDs:**
```
sed -E -i 's/seeds = \".*\"/seeds = \"[email protected]:26656,23671067d0fd40aec523290585c7d8e91034a771@seed2.bitcanna.io:26656\"/' $HOME/.bcna/config/config.toml
sed -E -i 's/seeds = \".*\"/seeds = \"[email protected]:26656,e2e7c704f766ef6b9e2c8dd61d963f8393b87966@seed3.bitcanna.io:26656\"/' $HOME/.bcna/config/config.toml
```
5. You can **set the minimum gas prices** for transactions to be accepted into your node’s mempool. This sets a lower bound on gas prices, preventing spam.
```
Loading

0 comments on commit c831abd

Please sign in to comment.