Skip to content

UTXO Persister Service Settings

Related Topic: UTXO Persister Service

Configuration Settings

Setting Type Default Environment Variable Usage
UTXOPersisterBufferSize string "4KB" utxoPersister_buffer_size CRITICAL - Buffer size for UTXO file I/O operations
UTXOPersisterDirect bool true direct Direct I/O operations control

Configuration Dependencies

Buffer Management

  • UTXOPersisterBufferSize is parsed using bytesize.Parse()
  • Falls back to 4KB (4096 bytes) if parsing fails
  • Used for buffered I/O operations when reading/writing UTXO files

I/O Operations

  • UTXOPersisterDirect controls direct I/O behavior
  • Affects how buffer operations are performed

Service Dependencies

Dependency Interface Usage
BlockStore blob.Store CRITICAL - UTXO set storage and retrieval
BlockchainClient blockchain.ClientI CRITICAL - Blockchain operations and block notifications

Validation Rules

Setting Validation Impact
UTXOPersisterBufferSize Must be valid byte size format I/O performance
UTXOPersisterDirect Controls I/O operation mode Performance behavior

Configuration Examples

Basic Configuration

utxoPersister_buffer_size = "4KB"
direct = true

Performance Tuning

utxoPersister_buffer_size = "64KB"
direct = true

Memory Constrained

utxoPersister_buffer_size = "1KB"
direct = false