Uses of Class
com.privatechain.core.builder.BlockchainConfig.Builder
Packages that use BlockchainConfig.Builder
Package
Description
Assembly layer — the single location where all library modules are composed.
-
Uses of BlockchainConfig.Builder in com.privatechain.core.builder
Methods in com.privatechain.core.builder that return BlockchainConfig.BuilderModifier and TypeMethodDescriptionBlockchainConfig.Builder.blockTimeSeconds(int seconds) Sets the target block time in seconds.static BlockchainConfig.BuilderBlockchainConfig.builder()Returns a new, pre-populatedBlockchainConfig.Builderwith production-ready defaults.Sets the stable chain identifier embedded in the genesis block.BlockchainConfig.Builder.consensusEngine(ConsensusEngine engine) Sets the consensus engine.BlockchainConfig.Builder.difficulty(int difficulty) Sets the PoW difficulty (number of leading zero bits).BlockchainConfig.Builder.eventBus(BlockchainEventBus eventBus) Replaces the default event bus with a custom instance.BlockchainConfig.Builder.eventListener(BlockchainEventListener listener) Registers an event listener that will receive all blockchain events.BlockchainConfig.Builder.maxMempoolSize(int maxSize) Sets the maximum pool capacity (Milestone 8).BlockchainConfig.Builder.maxPeers(int maxPeers) Sets the maximum number of simultaneous peer connections.BlockchainConfig.Builder.mempoolTtl(Duration ttl) Sets the TTL for unconfirmed transactions in the mempool (Milestone 8).BlockchainConfig.Builder.networkPort(int port) Sets the TCP port for the P2P node server.BlockchainConfig.Builder.storage(BlockchainStorage storage) Sets the storage backend.BlockchainConfig.Builder.transactionPrioritizer(TransactionPrioritizer prioritizer) Sets the transaction prioritizer for mempool ordering (FR-MEMPOOL-02).BlockchainConfig.Builder.transactionValidator(TransactionValidator validator) Appends a transaction validator to the validation chain (FR-TX-03).