How bitnodes/bitnodespro works
BitNodesPro Core is an experimental peer-to-peer digital currency node, with command-line/RPC and Qt wallet interfaces. Its principal workflow is to receive transactions and blocks from peers, validate and track them in chain and spendable-coin state, persist that state, and expose wallet/network status or payment operations. Distinct subsystems include peer networking, consensus and chain state, wallet/key management, masternode services, RPC, and the Qt client. The excerpts show selected validation, database and UI details; several subsystem links below are documented only by imports or README-level behavior, so uncertain links are omitted or dashed.
Main entry points: main.cpp Chain validation · bitnodespro.cpp Qt wallet · clientmodel.cpp Client model · net.cpp P2P transport
Components 20
User interfaces
- Qt wallet
src/qt/bitnodespro.cpp - Client model
src/qt/clientmodel.cpp - RPC server
src/rpcserver.cpp - RPC methods
src/rpcwallet.cpp
Peer network
- P2P transport
src/net.cpp - Network parameters
src/chainparams.cpp
Ledger and consensus
- Transaction model
src/primitives/transaction.cpp - Block model
src/primitives/block.cpp - Script engine
src/script/interpreter.cpp - Transaction pool
src/txmempool.cpp - Chain validation
src/main.cpp
Wallet and services
- Masternode management
src/masternodeman.h - Wallet operations
src/wallet.cpp - Keys and keystore
src/keystore.cpp
Persistence
- Spendable coin state
src/coins.cpp - Chain database
src/txdb.cpp - LevelDB engine
src/leveldb/db/db_impl.cc
Other components
- User
- RPC clients
- Peer nodes
Connections 20
- User → Qt wallet: uses
- RPC clients → RPC server: requests
- Peer nodes → P2P transport: exchange messages
- Qt wallet → Client model: displays status
- Client model → P2P transport: reads peer status
src/qt/clientmodel.cpp - Client model → Chain validation: reads chain status
src/qt/clientmodel.cpp - RPC server → RPC methods: dispatches
- P2P transport → Chain validation: delivers blocks
- Chain validation → Masternode management: uses services
src/main.cpp - Chain validation → Transaction model: validates
- Chain validation → Block model: processes
- Chain validation → Script engine: checks scripts
- Chain validation → Transaction pool: adds transactions
src/main.cpp - Chain validation → Spendable coin state: updates state
src/main.cpp - Chain validation → Chain database: initializes database
src/main.cpp - Chain database → LevelDB engine: stores records
- Chain validation → Network parameters: uses parameters
src/main.cpp - Wallet operations → Keys and keystore: uses keys
- RPC methods → Wallet operations: serves wallet calls
- Qt wallet → Wallet operations: wallet actions