Check Kaspa's sync flag before distributing mining work

A Kaspa node can return a candidate block template even while it considers itself out of sync. Mining coordinators can inspect the flag alongside the template.

Gate new work on the response

After restarting node A, the pool receives a well-formed template with is_synced set to false. Hold that candidate and request a fresh template from a synchronized node on the same network using the intended payout address. Record which node supplied each job for later diagnostics.

node A: template present, is_synced = false
node B: template present, is_synced = true

Refresh when the node catches up

When A becomes ready, request a new candidate rather than releasing the one cached during catch-up. The flag describes the node's own sync assessment at template creation. It cannot promise that a solved block will still be timely when submitted.

Sources