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

unc-dyn-configs

Dynamic configure helpers for the unc codebase

8 unstable releases (3 breaking)

new 0.7.3 Apr 12, 2024
0.7.2 Apr 9, 2024
0.6.1 Mar 21, 2024
0.5.2 Mar 12, 2024
0.1.0 Mar 6, 2024

#240 in Configuration

Download history 123/week @ 2024-03-01 237/week @ 2024-03-08 219/week @ 2024-03-15 78/week @ 2024-03-22 9/week @ 2024-03-29 197/week @ 2024-04-05

516 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 uncd process.

Other config values

Makes changes to config.json and send SIGHUP signal to the uncd process.

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

  • expected_shutdown: the specified block height uncd 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

~36–53MB
~830K SLoC