Skip to content

Commit 6ff2a9f

Browse files
committed
Fix executing cometbft
1 parent bf5ea8e commit 6ff2a9f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "xian-core"
3-
version = "1.0.2"
3+
version = "1.0.4"
44
description = "Xian Network Python ABCI Server for CometBFT"
55
authors = ["Xian Network <[email protected]>"]
66
readme = "README.md"

src/xian/cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def run_command(command):
1616

1717
def node_up(with_bds=False):
1818
"""Start the node"""
19+
cwd = os.getcwd()
1920
logger.info("Starting Xian node...")
2021

2122
if with_bds:
@@ -33,10 +34,10 @@ def node_up(with_bds=False):
3334
return False
3435

3536
# Start Xian ABCI
36-
run_command(f'pm2 start "{sys.executable} -m xian.xian_abci" --name xian -f')
37+
run_command(f'cd {cwd}/src/xian && pm2 start xian_abci.py --name xian -f')
3738

3839
# Start CometBFT
39-
run_command(f'pm2 start "cometbft node --rpc.laddr tcp://0.0.0.0:26657" --name cometbft -f')
40+
run_command(f'cd {cwd} && pm2 start "cometbft node --rpc.laddr tcp://0.0.0.0:26657" --name cometbft -f')
4041

4142
logger.info("Node started. Use 'xian logs' to view logs.")
4243
return True

0 commit comments

Comments
 (0)