cardano-community / cncli

Apache License 2.0
53 stars 13 forks source link

Update scripts path #22

Closed sunapi386 closed 1 year ago

sunapi386 commented 2 years ago

Description

Removed path prefixes such as/home/westbam/.

Where should the reviewer start?

Check out the branch and run with cardano-cli and cardano-node fully synced.

Motivation and context

Originally the script contained author's specific path location, such /home/westbam/.cargo/bin/cncli, so the script doesn't work. Since the programs cncli and cardano-cli would've been available in the $PATH environment, I removed the prefix altogether. Assumes $CNODE_HOME env is set.

Which issue it fixes?

Link to issue: Closes #21

How has this been tested?

Locally verify that these scripts run: ./cncli-leaderlog-current.sh ./cncli-leaderlog-next.sh

Using the version

cardano-cli 1.35.3 - linux-x86_64 - ghc-8.10 git rev 950c4e222086fed5ca53564e642434ce9307b0b9

AndrewWestberg commented 1 year ago

This doesn't make sense to use cardano-cli to query the leadership schedule. This tool is cncli and does its own calculations.