config-default.yaml

Overview

config-default.yaml serves as the default configuration file for the system's core networking, storage, security, and contract interaction parameters. It specifies connection endpoints, database paths, cryptographic keys, token lifetimes, and contract metadata required for the operation of the block manager and related components.

This YAML file primarily defines key-value pairs for service URLs, security credentials, and contract interfaces that other parts of the system load at startup or runtime to configure various modules.


Configuration Entries and Their Purpose

Network Endpoints

Storage Path

Security and Authentication

Contract Metadata

The contracts section defines local contract configurations that the system interacts with:


Important Implementation Details


Interaction with Other System Parts


Visual Diagram of config-default.yaml Structure

flowchart TD
A[config-default.yaml]
A --> B[Network Endpoints]
A --> C[Storage Path]
A --> D[Security & Authentication]
A --> E[Contracts]
B --> B1[bk_api_endpoint]
B --> B2[bk_stream_blocks_endpoint]
B --> B3[api_listen_addr]
B --> B4[default_bp]
C --> C1[db_path]
D --> D1[bm_owner_wallet_pubkey]
D --> D2[keys]
D --> D3[token_ttl]
E --> E1[bm_root]
E --> E2[license]
E1 --> E1a[address]
E1 --> E1b[abi]
E2 --> E2a[abi]

This diagram illustrates the main configuration categories and their key entries in the file. It shows the hierarchical structure and relationships between configuration elements.