From 3ccc3f86eb12bf3e7d096428e4e32df05dc2c337 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 7 Jul 2024 09:13:26 +0300 Subject: new: ak-sblock, lib/_ak_sblock + refactoring - moved ak-sblock-show to _ak_sblock_show function - `ak sblock show` can show a mined sblock now --- lib/_ak_sblock | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 lib/_ak_sblock (limited to 'lib/_ak_sblock') diff --git a/lib/_ak_sblock b/lib/_ak_sblock new file mode 100755 index 0000000..04038da --- /dev/null +++ b/lib/_ak_sblock @@ -0,0 +1,12 @@ +#!/bin/bash + +source $AK_LIBDIR/_ak_log + +_ak_sblock_show(){ + if [ ! -z $1 ] + then + cat $AK_MINEDBLOCKSDIR/$1 | jq + else + _ak_log_error "No sblock hash input" + fi +} -- cgit v1.2.3