aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/enter10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/enter b/bin/enter
index 3d1897c..d2e2bb9 100755
--- a/bin/enter
+++ b/bin/enter
@@ -60,8 +60,9 @@ then
if [ -v $previous ]
then
- echo "Block $block has no previous zblock"
- exit 3
+ logthis "Block $block has no previous zblock $previous"
+ echo '"previous":"genesis"},{"genesis":"genesis"}]'
+ exit 0
else
echo '"previous":"'$previous'"},'
zblock=$previous
@@ -170,8 +171,9 @@ do
# code 3
if [ -v $previous ]
then
- echo "Block $block has no previous zblock"
- exit 3
+ logthis "Block $block has no previous zblock"
+ echo '"previous":"genesis"},{"genesis":"genesis"}]'
+ exit 0
# Otherwise, we inform of the sequence
else