19 releases (11 breaking)

new 0.27.0 Nov 4, 2024
0.25.0 Aug 21, 2024
0.23.0 Jun 17, 2024
0.21.2 Mar 14, 2024
0.15.0 Nov 5, 2022

#768 in Magic Beans

Download history 110/week @ 2024-08-02 105/week @ 2024-08-09 141/week @ 2024-08-16 22/week @ 2024-08-23 2/week @ 2024-08-30 103/week @ 2024-09-06 61/week @ 2024-09-13 30/week @ 2024-09-20 8/week @ 2024-09-27 2/week @ 2024-10-04 112/week @ 2024-11-01

112 downloads per month

MIT/Apache

1MB
25K SLoC

Dynamic config helpers for the NEAR 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 neard process.

Other config values

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

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

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

~33–45MB
~667K SLoC