#!/bin/bash

#
#  VARIABLES
#
export APPS_PATH=`dirname "$(readlink -f "$0")"`
export TMP_PATH=$APPS_PATH/../tmp
export DATA_PATH=$APPS_PATH/../data
export FLAG_PATH=$APPS_PATH/../flags

export TS=`date +%s`
export MINUTE=`date +%M | sed 's/^0*//'`
export DATE=`date +%Y%m%d0000`
export DATEHOUR=`date +%Y%m%d%H`

#
# Synchronize the Blockchain
#
$APPS_PATH/scripts/synchronize.sh

#
# Draw the HASHES
#
$APPS_PATH/scripts/hashes.sh

#
# Draw the BLOCKS
#
$APPS_PATH/scripts/blocks2.sh

#
# Send a TWEET
#
$APPS_PATH/scripts/tweet.sh

#
# Clean OLD DATA
#
$APPS_PATH/scripts/clean_data.sh

#
# the 100 lastest BLOCKS must have at least the nonce method
#
$APPS_PATH/scripts/100blocks.sh

