#dynamic #codebase #unc #helper #running #configure

unc-dyn-configs

Dynamic configure helpers for the unc codebase

10 releases (4 breaking)

new 0.10.2 May 15, 2024
0.10.0 May 8, 2024
0.7.3 Apr 12, 2024
0.6.1 Mar 21, 2024
0.1.0 Mar 6, 2024

#292 in Configuration

Download history 142/week @ 2024-03-04 270/week @ 2024-03-11 245/week @ 2024-03-18 90/week @ 2024-04-01 265/week @ 2024-04-08 61/week @ 2024-04-15 126/week @ 2024-05-06

197 downloads per month

GPL-2.0-or-later

1MB
18K SLoC

Dynamic config helpers for the UNC codebase.

This crate contains utilities that allow to reconfigure the node while it is running.

How to:

Logging and tracing

Make changes to log_config.json and send SIGHUP signal to the unc-node process.

Other config values

Makes changes to config.json and send SIGHUP signal to the unc-node process.

Fields of config that can be changed while the node is running:

  • expected_shutdown: the specified block height unc-node will gracefully shutdown at.

Changing other fields of config.json

The changes to other fields of config.json will be silently ignored as long as config.json remains a valid json object and passes internal validation.

Please be careful about making changes to config.json because when a node starts (or restarts), it checks the validity of the config files and crashes if detects any issues.

Dependencies

~37–51MB
~843K SLoC