I have a geth-based ethereum installation that started crashing with "Missing trie node" errors. In the chaindata folder I have hundreds of ldb
files, nearly all of which are around 2.1Mb - but the most recent one, started yesterday, is 151Mb, suggesting something has gone astray in it. It then turns out that transactions were not syncing to other nodes in my network, so this is my only copy of the data. The corrupted file means that geth
will not start, but that also means that the other (non-corrupted) transactions in older files are inaccessible.
How can I recover those transactions? Can I import individual ldb
files directly into a new setup rather than the whole chain data folder? Can I remove the problem file without breaking things too much?