aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-02 04:33:41 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-02 04:33:41 +0300
commit28a34e20d81b7948d88e190517198174822726a4 (patch)
treeef9607901f4e5c87659de546acf9065e7ee916fe
parentb61b49bd34514c9b3b7f5abca054ffb8351c119a (diff)
downloadarching-kaos-tools-28a34e20d81b7948d88e190517198174822726a4.tar.gz
arching-kaos-tools-28a34e20d81b7948d88e190517198174822726a4.tar.bz2
arching-kaos-tools-28a34e20d81b7948d88e190517198174822726a4.zip
Outputs the actual previous block, regardless of being the genesis one
-rwxr-xr-xbin/ak-enter2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ak-enter b/bin/ak-enter
index 7dd7ad7..7b72813 100755
--- a/bin/ak-enter
+++ b/bin/ak-enter
@@ -271,7 +271,7 @@ do
if [ -v $previous ]
then
logit "WARNING" "Block $block has no previous zblock, appending pseudo genesis to exit with 2."
- echo -n '"previous":"genesis"},{"genesis":"genesis"}]'
+ echo -n '"previous":"'$seed'"},{"genesis":"genesis"}]'
logit "INFO" "Reached pseudo-genesis, counted $counter zblocks."
exit 2