aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ak-get-balances10
-rwxr-xr-xlib/_ak_coin14
2 files changed, 15 insertions, 9 deletions
diff --git a/bin/ak-get-balances b/bin/ak-get-balances
index 0386a04..5fe56ea 100755
--- a/bin/ak-get-balances
+++ b/bin/ak-get-balances
@@ -17,18 +17,10 @@ source $AK_LIBDIR/_ak_gpg
source $AK_LIBDIR/_ak_zchain
source $AK_LIBDIR/_ak_schain
source $AK_LIBDIR/_ak_sblock
+source $AK_LIBDIR/_ak_coin
#set -xe
AK_DB="$AK_WORKDIR/db"
-# coin max is 10,000.0000000
-# but we count in integer to avoid floating point arithmetic :P
-#
-# Note that this is subject to change when implemented in C
-#
-COINBASE=100000000000
-
-GENESIS="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
-
AK_BALANCESDIR="$AK_WORKDIR/balances"
if [ ! -d $AK_BALANCESDIR ]
then
diff --git a/lib/_ak_coin b/lib/_ak_coin
new file mode 100755
index 0000000..fda3bc0
--- /dev/null
+++ b/lib/_ak_coin
@@ -0,0 +1,14 @@
+#!/bin/bash
+# coin max is 10,000.0000000
+# but we count in integer to avoid floating point arithmetic :P
+#
+# Note that this is subject to change when implemented in C
+#
+COINBASE=100000000000
+
+GENESIS="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+
+_ak_coin_stats(){
+ echo "Coinbase: $COINBASE"
+ echo "Genesis: $GENESIS"
+}