From 7b3a9fbef2c28a6ea7c2b5a49f8a130f4d1bf05f Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 17 Jul 2024 09:08:37 +0300 Subject: ak-schain: -l | --get-latest --- bin/ak-schain | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/ak-schain') diff --git a/bin/ak-schain b/bin/ak-schain index 9fa41b0..5d4a442 100755 --- a/bin/ak-schain +++ b/bin/ak-schain @@ -8,6 +8,10 @@ ## ## -c, --crawl Crawl an schain or latest known ## +## -l, --get-latest Returns latest sblock from saved sblocks. The +## latest sblock would belong to the longest +## schain if more than one schains found. +## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) descriptionString="Schain tools" @@ -22,6 +26,7 @@ then case $1 in -h | --help) _ak_usage; exit;; -c | --crawl) shift; _ak_schain_crawl_interface $*; exit;; + -l | --get-latest) _ak_schain_get_latest; exit;; * ) _ak_usage;; esac else _ak_usage -- cgit v1.2.3