Skip to content

Commit

Permalink
Merge pull request lavanet#1084 from lavanet/lava_autocompletion_fix
Browse files Browse the repository at this point in the history
Lava auto-completion script's fix
  • Loading branch information
Yaroms authored Dec 31, 2023
2 parents da82ac1 + 3657f45 commit 240ec56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ LAVA_BINARY=lavad make install

Or check out the latest [release](https://github.com/lavanet/lava/releases).

### Add `lavad` autocomplete
### Add `lavad`/`lavap` autocomplete

You can add a useful autocomplete feature to `lavad` with a simple bash [script](https://github.com/lavanet/lava/blob/update-readme-autocomplete/scripts/lavad_auto_completion_install.sh).
You can add a useful autocomplete feature to `lavad` & `lavap` with a simple bash [script](https://github.com/lavanet/lava/blob/main/scripts/lavad_auto_completion_install.sh).

### Quick Start

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ case $terminal_type in
bashrc_file="$HOME/.bash_profile"
fi

if ! grep -q "source $file" $bashrc_file; then
if ! grep -q "source \$file" $bashrc_file; then
echo >> $bashrc_file
echo "if [ -d $comp_dir ]; then" >> $bashrc_file
echo " for file in $comp_dir/*; do" >> $bashrc_file
Expand All @@ -66,7 +66,7 @@ case $terminal_type in
bashrc_file="$HOME/.bash_profile"
fi

if ! grep -q "source $file" $bashrc_file; then
if ! grep -q "source \$file" $bashrc_file; then
echo >> $bashrc_file
echo "if [ -d $comp_dir ]; then" >> $bashrc_file
echo " for file in $comp_dir/*; do" >> $bashrc_file
Expand Down
5 changes: 3 additions & 2 deletions x/rewards/keeper/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,9 @@ func TestRefillPoolsTimerStore(t *testing.T) {
require.Equal(t, expectedMonthsLeft, monthsLeft)

ts.AdvanceMonths(1)
month = ts.GetNextMonth(ts.BlockTime()) - ts.BlockTime().UTC().Unix()
ts.AdvanceBlock()
testkeeper.EndBlock(ts.Ctx, ts.Keepers)
// testkeeper.EndBlock(ts.Ctx, ts.Keepers)
defaultBlockTime := ts.Keepers.Downtime.GetParams(ts.Ctx).DowntimeDuration.Seconds()
month = ts.GetNextMonth(ts.BlockTime()) - ts.BlockTime().UTC().Unix() - int64(defaultBlockTime)
}
}

0 comments on commit 240ec56

Please sign in to comment.