kona
kona copied to clipboard
fix(trusted-sync): Decrease info log spam between safehead updates at tip
Overview
After #318, trusted-sync successfully follows tip and waits for L2 safehead updates. However, with -vv (info level), the current loop spams the logs while waiting.
Instead of busy-waiting, we should subscribe to L1 head updates, to prevent the unnecessary work within the loop + decrease log spam.