Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed function to next slot lead because of wrong implementation #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Sailoshi
Copy link
Contributor

No description provided.

Copy link
Owner

@Chris-Graffagnino Chris-Graffagnino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple minor corrections. See comments below.

config/.bash_profile Outdated Show resolved Hide resolved
@@ -15,6 +15,38 @@ function stats() {
echo "$(jcli rest v0 node stats get -h http://127.0.0.1:${REST_PORT}/api)"
}

function current_blocktime() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current_blocktime & next should be moved down to line 178, replacing the old version of "next".


function next() {
NEWEPOCH=$(stats | grep Date | grep -Eo '[0-9]{1,3}' | awk 'NR==1{print $1}')
maxSlots=$(leaders | grep -P 'scheduled_at_date: "'$NEWEPOCH'.' | grep -P '[0-9]+' | wc -l)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/leaders/leader_logs ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants