aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-schain-latest-cached
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-schain-latest-cached')
-rwxr-xr-xbin/ak-schain-latest-cached9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ak-schain-latest-cached b/bin/ak-schain-latest-cached
new file mode 100755
index 0000000..87d9194
--- /dev/null
+++ b/bin/ak-schain-latest-cached
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+PROGRAM="$(basename $0)"
+source $AK_LIBDIR/logit
+if [ ! -f $AK_WORKDIR/schain.latest ]
+then
+ ak-find-latest-mined-sblock > $AK_WORKDIR/schain.latest
+fi
+cat $AK_WORKDIR/schain.latest