Files
aitbc/docs/4_blockchain/2_configuration.md
AITBC System b033923756 chore: normalize file permissions across repository
- Remove executable permissions from configuration files (.editorconfig, .env.example, .gitignore)
- Remove executable permissions from documentation files (README.md, LICENSE, SECURITY.md)
- Remove executable permissions from web assets (HTML, CSS, JS files)
- Remove executable permissions from data files (JSON, SQL, YAML, requirements.txt)
- Remove executable permissions from source code files across all apps
- Add executable permissions to Python
2026-03-08 11:26:18 +01:00

1.5 KiB

Blockchain Node Configuration

Configure your blockchain node for optimal performance.

Configuration File

Location: ~/.aitbc/chain.yaml

Node Configuration

node:
  name: my-node
  network: ait-devnet  # or ait-mainnet
  data_dir: /opt/blockchain-node/data
  log_level: info

RPC Configuration

rpc:
  enabled: true
  bind_host: 0.0.0.0
  bind_port: 8080
  cors_origins:
    - http://localhost:8009
    - http://localhost:8000
  rate_limit: 1000  # requests per minute

P2P Configuration

p2p:
  enabled: true
  bind_host: 0.0.0.0
  bind_port: 7070
  bootstrap_nodes:
    - /dns4/node-1.aitbc.com/tcp/7070/p2p/...
  max_peers: 50
  min_peers: 5

Mempool Configuration

mempool:
  backend: database  # or memory
  max_size: 10000
  min_fee: 0
  eviction_interval: 60

Database Configuration

database:
  adapter: postgresql  # or sqlite
  url: postgresql://user:pass@localhost/aitbc_chain
  pool_size: 10
  max_overflow: 20

Validator Configuration

validator:
  enabled: true
  key: <VALIDATOR_PRIVATE_KEY>
  block_time: 2  # seconds
  max_block_size: 1000000  # bytes
  max_txs_per_block: 500

Environment Variables

export AITBC_CHAIN_DATA_DIR=/opt/blockchain-node/data
export AITBC_CHAIN_RPC_PORT=8080
export AITBC_CHAIN_P2P_PORT=7070

Next