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

unc-dyn-configs

Dynamic configure helpers for the unc codebase

11 releases (5 breaking)

0.12.2 May 30, 2024
0.10.2 May 15, 2024
0.7.3 Apr 12, 2024
0.6.1 Mar 21, 2024
0.1.0 Mar 6, 2024

#280 in Configuration

Download history 145/week @ 2024-03-05 267/week @ 2024-03-12 245/week @ 2024-03-19 106/week @ 2024-04-02 251/week @ 2024-04-09 59/week @ 2024-04-16 126/week @ 2024-05-07 142/week @ 2024-05-14 5/week @ 2024-05-21 154/week @ 2024-05-28 7/week @ 2024-06-04

308 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

~36–54MB
~801K SLoC