You can see the default configuration here.
If mercury is in the synchronization mode, mercury will pull blocks from the CKB node and append the block data to the database. Otherwise, mercury will only handle RPC requests and do not append the block data.
type: bool
If this is true, mercury will synchronize blocks parallelly. Otherwise, it will synchronize blocks serially.
type: bool
The thread number allocated for RPC server.
type: usize
The millisecond interval for refreshing the transaction pool cache with the connected CKB node.
type: u64
The epoch number of the cellbase maturity. This is the same as the config of CKB. DO NOT CHANGE THIS UNLESS TESTING
type: u64
The epoch number of cheque from which cell can be withdrawn. This is same as the data hard-coded in cheque lock script. DO NOT CHANGE THIS UNLESS TESTING
type: u64
The center id of the database server. This is used to generate the unique distributed ID through snowflake algorithm.
type: u16
The machine id of the database server. This is used to generate the unique distributed ID through snowflake algorithm.
type: u16
The maximum number of connections to database pool.
type: u32
The minimum number of connections to database pool.
type: u32
The second of time to attempt connecting to the database.
type: u64
The maximum lifetime of individual connections.
type: u64
The maximum idle duration as seconds for individual connections. Any connection with an idle duration longer than this will be closed.
type: u64
The database type of Mercury, such as postgres
, mysql
, sqlite
. Notice: Mercury Only support PostgreSQL Now.
type: String
The host of the database.
type: String
The port of the database.
type: u16
The name of the database.
type: String
The user name of the database.
type: String
The password of the database.
type: String
The log level of the mercury, uppercase.
type: String
If this is true, mercury will automatically split the log file.
type: bool
The path of log files.
type: String
The network type of CKB node, such as ckb
, ckb_testnet
.
type: String
The URI of CKB node.
type: String
The listening URI of mercury RPC server.
type: String
The batch size that mercury pulls from the CKB node when synchronization.
type: usize
The maximum task number that synchronizes blocks parallelly.
type: usize
The built-in scripts information.
type: String