Updated on 2026-10-21 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: The ledger database is enabled.
  • off: 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.

Risks and impacts of improper settings: Change the parameter value after fully understanding the parameter meaning and verifying it through testing.

ledger_hist_level

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

Parameter type: integer

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.

Risks and impacts of improper settings: Change the parameter value after fully understanding the parameter meaning and verifying it through testing.