helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

Add cache cli #1401

Closed PaulVMo closed 2 years ago

PaulVMo commented 2 years ago

For validator operators who wish to control the prewarm of the cache, this change makes it easier by introducing a cli to prewarm the cache. For completeness, it also adds a clearing option too. And lastly, adds a little bit of logging around the cache functions for visibility.

Additionally, I also found an issue with the way that the default relx rpc timeout was being overwritten and put in place a new implementation to change the default to 900 seconds as originally intended by #1268.