Updated on 2024-06-03 GMT+08:00

Ledger Database

enable_ledger

Parameter description: Specifies whether to enable the ledger database. If this parameter is set to on, the ledger database is enabled, and a new tamper-proof mode can be created and the common mode can be changed to the tamper-proof mode.

Parameter type: Boolean

Unit: none

Value range:
  • on indicates that the ledger database is enabled.
  • off indicates that the ledger database is disabled.

Default value: off

Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Setting suggestion: The ledger database is disabled by default. To enable it, set enable_ledger to on.

ledger_hist_level

Parameter description: Specifies whether to record SQL statements in the global blockchain table.

Parameter type: int

Unit: none

Value range:
  • 0: SQL statements are not recorded in the global blockchain table.
  • 1: SQL statements are recorded in the global blockchain table.

Default value: 1

Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Setting suggestion: Retain the default value 1.