Update chain rollback log message (#98)

This commit is contained in:
Lee *!* Clagett 2024-03-31 13:31:56 -04:00 committed by GitHub
parent e7db291669
commit cdc21aa232
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1710,7 +1710,9 @@ namespace db
{
if (current <= get_checkpoints().get_max_height())
{
MERROR("Attempting rollback past last checkpoint; invalid daemon chain response");
/* Either the daemon is performing an attack with a fake chain, or
the daemon is still syncing. */
MERROR("Attempting rollback past last checkpoint. Wait until daemon finishes syncing - otherwise daemon is performing an attack.");
return {lws::error::bad_blockchain};
}