How psycure69/kronocore works
Bitcoin Core is a full node for the Bitcoin peer-to-peer network, with an optional wallet and graphical interface. Its principal workflow is to connect to peers, download blocks and transactions, validate them, and maintain local chain state. The graph also shows the wallet/UI and RPC surfaces and the cryptographic and storage layers beneath the node. README statements support the principal workflow; several internal links are dashed because their call paths were not shown in the sampled source.
Main entry points: bitcoind.cpp Bitcoin daemon · chainstate.cpp Chain state · tx_verify.cpp Block and transaction checks · net_processing.cpp Peer networking
Components 17
Node runtime
- Bitcoin daemon
src/bitcoind.cpp - Peer networking
src/net_processing.cpp - Kernel interfaces
src/kernel/bitcoinkernel.cpp
Chain validation
- Chain state
src/node/chainstate.cpp - Block and transaction checks
src/consensus/tx_verify.cpp - Block storage
src/node/blockstorage.cpp - Transaction mempool
src/txmempool.cpp - Chain indexes
src/index/base.cpp - Script validation
src/script/interpreter.cpp
User interfaces
- Wallet
src/wallet/context.h - Graphical interface
src/qt/bitcoingui.cpp - RPC service
src/rpc/server.cpp - Command-line client
src/bitcoin-cli.cpp
Storage and cryptography
- LevelDB engine
src/leveldb - Cryptographic primitives
src/secp256k1
Other components
- User
- Bitcoin peers
Connections 17
- User → Bitcoin daemon: runs node
README.md - Bitcoin daemon → Bitcoin peers: connects to
README.md - Bitcoin peers → Peer networking: send blocks
- Peer networking → Chain state: downloads data
README.md - Chain state → Block and transaction checks: validates blocks
- Chain state → Block storage: stores blocks
- Chain state → Transaction mempool: tracks transactions
- Block and transaction checks → Script validation: checks scripts
- Chain state → Chain indexes: updates indexes
- Bitcoin daemon → Wallet: includes wallet
README.md - User → Graphical interface: uses interface
README.md - Graphical interface → Wallet: uses wallet
- Bitcoin daemon → RPC service: serves RPC
- Command-line client → RPC service: sends requests
- Bitcoin daemon → Kernel interfaces: uses kernel
- Block storage → LevelDB engine: uses database
- Block and transaction checks → Cryptographic primitives: uses cryptography