[feat]: Automatically detect and delete corrupt peers.dat #98
Labels
Enhancement
New feature or request
Known Solution
General solution is known, just requires implementation
Needs Scoping
Requirements are not fully defined
Needs Triage
Not enough information to determine priority
Prerequisites
Describe the Feature Request
Some of our users (including me) are still experiencing this. This feature will allow bitcoind to get out of its endless restart loop. If peers.dat is corrupt when bitcoin starts, it shuts down (presumably usually caused by a power outage/unplugging of the pi while peers.dat is being written). Since embassyd trys to restart stopped containers, bitcoind just goes into and endless restart loop:
Log excerpt from restart loop:
Describe the Use Case
Bitcoin and all other services dependent on bitcoin are dead in the water until peers.dat is deleted and bitcoin can start syncing again.
Describe Preferred Solution
Detect the corrupt peers.dat in the log file, and automatically delete it if it's corrupt. This will require less human intervention and attention, so it's much better than the alternative solution.
Describe Alternatives
"Delete peers.dat" option under Services > Bitcoin Core > Actions
The text was updated successfully, but these errors were encountered: