From 486ad3b616de94a51ea7da3e1eb850f09461a020 Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Sun, 31 Mar 2024 13:31:56 -0400 Subject: [PATCH] Update chain rollback log message (#98) --- src/db/storage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/storage.cpp b/src/db/storage.cpp index b641acf..b05bade 100644 --- a/src/db/storage.cpp +++ b/src/db/storage.cpp @@ -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}; }