From cdf6fdb9d0d864e38ff31a3b06402e5c7dd1090d Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 17 Jul 2024 09:25:24 +0300 Subject: removing ak-find-latest-mined-sblock --- lib/_ak_schain | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/_ak_schain') diff --git a/lib/_ak_schain b/lib/_ak_schain index 987ee83..809a454 100755 --- a/lib/_ak_schain +++ b/lib/_ak_schain @@ -8,13 +8,13 @@ GENESIS="00000000000000000000000000000000000000000000000000000000000000000000000 _ak_schain_latest_cached(){ if [ ! -f $AK_WORKDIR/schain.latest ] then - ak-find-latest-mined-sblock > $AK_WORKDIR/schain.latest + _ak_schain_get_latest > $AK_WORKDIR/schain.latest fi cat $AK_WORKDIR/schain.latest } _ak_schain_tidy(){ - SLATEST=$(ak-find-latest-mined-sblock | jq -r '.latest_block') + SLATEST=$(_ak_schain_get_latest | jq -r '.latest_block') if [ ! -d $AK_SCHAINSDIR ] then mkdir $AK_SCHAINSDIR @@ -22,7 +22,7 @@ _ak_schain_tidy(){ } _ak_schain_block_latest_block_hash(){ - ak-find-latest-mined-sblock | jq -r '.latest_block' + _ak_schain_get_latest | jq -r '.latest_block' } _ak_schain_crawl(){ -- cgit v1.2.3