Skip to content

Commit 9842a40

Browse files
authored
Merge pull request #65 from xian-network/update-makefile
Update makefile for cometbft
2 parents 2a94c08 + 3510228 commit 9842a40

File tree

2 files changed

+6
-52
lines changed

2 files changed

+6
-52
lines changed

Makefile

+4-50
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,3 @@
1-
# Origin
2-
version_branch = v0.34.24
3-
tendermint = https://raw.githubusercontent.com/tendermint/tendermint/$(version_branch)
4-
5-
# Outputs
6-
tmabci = protos/tendermint/abci/types.proto
7-
tmtypes = protos/tendermint/types/types.proto
8-
tmpubkey = protos/tendermint/crypto/keys.proto
9-
tmproof = protos/tendermint/crypto/proof.proto
10-
tmparams = protos/tendermint/types/params.proto
11-
tmversions = protos/tendermint/version/types.proto
12-
tmvalidator = protos/tendermint/types/validator.proto
13-
14-
# Only run this to rebuild/update protobufs from the tendermint source
15-
update-proto:
16-
curl $(tendermint)/proto/tendermint/abci/types.proto > $(tmabci)
17-
curl $(tendermint)/proto/tendermint/crypto/keys.proto > $(tmpubkey)
18-
curl $(tendermint)/proto/tendermint/crypto/proof.proto > $(tmproof)
19-
curl $(tendermint)/proto/tendermint/types/params.proto > $(tmparams)
20-
curl $(tendermint)/proto/tendermint/types/types.proto > $(tmtypes)
21-
curl $(tendermint)/proto/tendermint/types/validator.proto > $(tmvalidator)
22-
curl $(tendermint)/proto/tendermint/version/types.proto > $(tmversions)
23-
curl $(tendermint)/version/version.go | grep -F -eTMVersionDefault -eABCISemVer > tm_version.txt
24-
@python build_proto.py
25-
26-
test_tm:
27-
@rm -Rf .test_pyabci
28-
@tendermint --home .test_pyabci init
29-
@tendermint --home .test_pyabci node
301

312
test:
323
pytest .
@@ -37,44 +8,27 @@ dev:
378
clean:
389
@rm -Rf dist/
3910

40-
# PyPi package deploy:
41-
# 1. build-dist
42-
# 2. test-pypi
43-
# 3. update-pypi
44-
build-dist:
45-
python -m build
46-
47-
publish-test:
48-
twine upload dist/* --repository testpypi
49-
50-
publish:
51-
twine upload dist/* --repository pypi
52-
53-
rc:
54-
cp ~/.tendermint/xian ~/.tendermint/xian_last -r
55-
rm -rf ~/.tendermint/xian
56-
5711
wipe:
5812
rm -rf ~/.tendermint/xian
5913
./tendermint unsafe-reset-all
6014

6115
up:
6216
cd ./src/xian && CONFIG_PATH=config/config-testnet.toml pm2 start xian_abci.py
63-
pm2 start "./tendermint node --rpc.laddr tcp://0.0.0.0:26657" --name tendermint
17+
pm2 start "./cometbft node --rpc.laddr tcp://0.0.0.0:26657" --name cometbft
6418
pm2 logs --lines 1000
6519

6620
down:
67-
pm2 delete tendermint xian_abci
21+
pm2 delete cometbft xian_abci
6822

6923
restart:
7024
make down
7125
make up
7226

7327
init:
74-
./tendermint init
28+
./cometbft init
7529

7630
node-id:
77-
./tendermint show-node-id
31+
./cometbft show-node-id
7832

7933
dwu:
8034
make down

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Set up the environment on Ubuntu 22.04 with the following steps:
2222
```
2323
git clone https://github.com/xian-network/xian-core.git
2424
cd xian-core
25-
git clone https://github.com/XianChain/contracting.git
25+
git clone https://github.com/xian-network/contracting.git
2626
```
2727
2828
4. Set up Python virtual environment and dependencies:
@@ -39,7 +39,7 @@ Set up the environment on Ubuntu 22.04 with the following steps:
3939
rm cometbft_0.38.6_linux_amd64.tar.gz
4040
./cometbft init
4141
---- LOCAL ----
42-
python src/xian/tools/configure.py --moniker "Node" --copy-genesis True --genesis-file-name genesis.json --validator_privkey "cd6cc45ffe7cebf09c6c6025575d50bb42c6c70c07e1dbc5150aaadc98705c2b"
42+
python src/xian/tools/configure.py --moniker "Node" --copy-genesis True --genesis-file-name genesis.json --validatorprivkey "cd6cc45ffe7cebf09c6c6025575d50bb42c6c70c07e1dbc5150aaadc98705c2b"
4343
---- JOIN TESTNET ----
4444
python src/xian/tools/configure.py --moniker "Node" --copy-genesis True --genesis-file-name genesis-testnet.json --seed-node "91.108.112.184" --validator-privkey "7d53884dcc7aa3095aa594c905752698f8323f91848556725f642a7e86589d5a"
4545
./cometbft node --rpc.laddr tcp://0.0.0.0:26657

0 commit comments

Comments
 (0)