github.com/kotalco/kotal@v0.3.0/clients/bitcoin/types.go (about)

     1  package bitcoin
     2  
     3  const (
     4  	// EnvBitcoinData is environment variable used to set data directory
     5  	EnvBitcoinData = "BITCOIN_DATA"
     6  )
     7  
     8  const (
     9  	// BitcoinArgChain is argument used to set chain
    10  	BitcoinArgChain = "-chain"
    11  	// BitcoinArgListen is argument used to accept connections from outside
    12  	BitcoinArgListen = "-listen"
    13  	// BitcoinArgBind is argument used to bind and listen to the given address
    14  	BitcoinArgBind = "-bind"
    15  	// BitcoinArgServer is argument used to enable CLI and JSON-RPC server
    16  	BitcoinArgServer = "-server"
    17  	// BitcoinArgRPCPort is argument used to set JSON-RPC port
    18  	BitcoinArgRPCPort = "-rpcport"
    19  	// BitcoinArgDataDir is argument used to set data directory
    20  	BitcoinArgDataDir = "-datadir"
    21  	// BitcoinArgRPCBind is argument used to set JSON-RPC server host
    22  	BitcoinArgRPCBind = "-rpcbind"
    23  	// BitcoinArgRPCAllowIp is argument used to allow JSON-RPC connections from specific sources
    24  	BitcoinArgRPCAllowIp = "-rpcallowip"
    25  	// BitcoinArgRPCAuth is argument used to set JSON-RPC user and password in the format of user:salt$hash
    26  	BitcoinArgRPCAuth = "-rpcauth"
    27  	// BitcoinArgDisableWallet is argument used to disable wallet and RPC calls
    28  	BitcoinArgDisableWallet = "-disablewallet"
    29  	// BitcoinArgReIndex is argument used to rebuild chain state and block index
    30  	BitcoinArgReIndex = "-reindex"
    31  	// BitcoinArgTransactionIndex is argument used to maintain a full transaction index
    32  	BitcoinArgTransactionIndex = "-txindex"
    33  	// BitcoinArgCoinStatsIndex is argument used to maintain coinstats index
    34  	BitcoinArgCoinStatsIndex = "-coinstatsindex"
    35  	// BitcoinArgBlocksOnly is argument used to reject transactions from network peers
    36  	BitcoinArgBlocksOnly = "-blocksonly"
    37  	// BitcoinArgPrune is argument used to allows pruneblockchain RPC to be called to delete specific blocks
    38  	BitcoinArgPrune = "-prune"
    39  	// BitcoinArgRpcWhitelist is argument used to set default rpc whitelist
    40  	BitcoinArgRpcWhitelist = "-rpcwhitelist"
    41  	// BitcoinArgDBCacheSize is argument used to set maximum database cache size
    42  	BitcoinArgDBCacheSize = "-dbcache"
    43  	// BitcoinArgMaxConnections is argument used to set maximum connections to peers
    44  	BitcoinArgMaxConnections = "-maxconnections"
    45  )