Merge branch 'main' of http://gitea.bubuit.net:3000/oib/aitbc
Some checks failed
CLI Tests / test-cli (push) Failing after 3s
Deploy to Testnet / deploy-testnet (push) Failing after 7s
Security Scanning / security-scan (push) Failing after 10s
Cross-Node Transaction Testing / transaction-test (push) Successful in 7s
Multi-Node Stress Testing / stress-test (push) Failing after 11m59s

aitbc3
This commit is contained in:
aitbc
2026-05-27 07:44:59 +02:00
2 changed files with 8 additions and 5 deletions

View File

@@ -484,11 +484,12 @@ class PoAProposer:
self._logger.error(f"Genesis file not found at /var/lib/aitbc/data/{self._config.chain_id}/genesis.json. Cannot create genesis block without genesis.json file.")
raise RuntimeError(f"Genesis file required but not found for chain {self._config.chain_id}. Please create genesis.json at /var/lib/aitbc/data/{self._config.chain_id}/genesis.json")
# Extract genesis data from file
genesis_hash = local_genesis_data.get("genesis_hash")
genesis_timestamp = local_genesis_data.get("timestamp")
genesis_state_root = local_genesis_data.get("state_root")
genesis_allocations = local_genesis_data.get("allocations", [])
# Extract genesis data from file (support both flat and nested formats)
block_data = local_genesis_data.get("block", {})
genesis_hash = local_genesis_data.get("genesis_hash") or block_data.get("hash")
genesis_timestamp = local_genesis_data.get("timestamp") or block_data.get("timestamp")
genesis_state_root = local_genesis_data.get("state_root") or block_data.get("state_root")
genesis_allocations = local_genesis_data.get("allocations", block_data.get("allocations", []))
if not genesis_hash or not genesis_timestamp or not genesis_state_root:
self._logger.error(f"Genesis file missing required fields: genesis_hash, timestamp, or state_root")

View File

@@ -877,6 +877,8 @@ def pairs(ctx, exchange: str):
if len(base_currencies[base]) > 10:
success(f" ... and {len(base_currencies[base]) - 10} more")
except Exception as e:
error(f"Error fetching pairs: {e}")
@exchange.command()