VeriBlock / vbk-ri-btc

Bitcoin Core integration/staging tree
https://bitcoincore.org/en/download
Other
4 stars 6 forks source link

Error when APM is started twice #245

Closed Leonardiae closed 4 years ago

Leonardiae commented 4 years ago

When the APM is started twice, an error occurs. This makes sense, but maybe it's possible to show the user a message which tells what's wrong (probably the miner started twice).

2020-07-13 14:47:39 main       INFO  PluginService             - Loading plugins...
2020-07-13 14:47:40 main       INFO  PluginService             - Loaded plugin implementations: test, nxt, btc
2020-07-13 14:47:40 main       INFO  PluginService             - Loaded plugin vbtc (btc impl) from config
2020-07-13 14:47:40 main       INFO  PluginService             - Loaded plugin test (test impl) from config
2020-07-13 14:47:40 main       WARN  AltchainPoPMiner          - Fatal error: Unable to initialize VBK block store
2020-07-13 14:47:40 main       INFO  AltchainPoPMiner          - Application exit
Application terminated unexpectedly, press any key to exit
BernatCarbo commented 4 years ago

Solved with https://github.com/VeriBlock/nodecore/commit/c1b0937e9d7456e849a43abb9593bbb1e57f3345

You can start twice the APM but not over the same data folder :)

Leonardiae commented 4 years ago

Thanks @BernatCarbo