From 73d8f0e80fa5cdfdb31524444c079949037d8e34 Mon Sep 17 00:00:00 2001
From: holgern <holgernahrstaedt@gmx.de>
Date: Sat, 21 Mar 2020 09:12:05 +0100
Subject: [PATCH] Add HIVE to chain and fix cli

---
 beem/cli.py                |  2 ++
 beemgraphenebase/chains.py | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/beem/cli.py b/beem/cli.py
index 49cb386f..34a81c51 100644
--- a/beem/cli.py
+++ b/beem/cli.py
@@ -2397,6 +2397,8 @@ def witness(witness):
     config = stm.get_config()
     if "VIRTUAL_SCHEDULE_LAP_LENGTH2" in config:
         lap_length = int(config["VIRTUAL_SCHEDULE_LAP_LENGTH2"])
+    elif "HIVE_VIRTUAL_SCHEDULE_LAP_LENGTH2" in config:
+        lap_length = int(config["HIVE_VIRTUAL_SCHEDULE_LAP_LENGTH2"])
     else:
         lap_length = int(config["STEEM_VIRTUAL_SCHEDULE_LAP_LENGTH2"])
     rank = 0
diff --git a/beemgraphenebase/chains.py b/beemgraphenebase/chains.py
index 2509787d..b4039af4 100644
--- a/beemgraphenebase/chains.py
+++ b/beemgraphenebase/chains.py
@@ -4,6 +4,16 @@ from __future__ import print_function
 from __future__ import unicode_literals
 default_prefix = "STM"
 known_chains = {
+    "HIVE": {
+        "chain_id": "0" * int(256 / 4),
+        "min_version": '0.23.0',
+        "prefix": "STM",
+        "chain_assets": [
+            {"asset": "@@000000013", "symbol": "HBD", "precision": 3, "id": 0},
+            {"asset": "@@000000021", "symbol": "HIVE", "precision": 3, "id": 1},
+            {"asset": "@@000000037", "symbol": "VESTS", "precision": 6, "id": 2}
+        ],
+    },
     "STEEMAPPBASE": {
         "chain_id": "0" * int(256 / 4),
         "min_version": '0.19.10',
-- 
GitLab