// DragonX Wallet - ImGui Edition // Copyright 2024-2026 The Hush Developers // Released under the GPLv3 #pragma once namespace dragonx { namespace services { // The expensive z_gettotalbalance only changes the seed-migration adopt gate once the sweep is mined and // we have no post-mine figure yet (priorRemaining < 0). A manual Refresh forces it; an active sync // suppresses the automatic scan (the Refresh button still overrides). inline bool migrationWantsBalanceScan(bool forceBalance, bool syncing, int confs, double priorRemaining) { if (forceBalance) return true; return !syncing && confs >= 1 && priorRemaining < 0.0; } } // namespace services } // namespace dragonx