feat(merge): run per-address consolidation as a paced background job
"Keep in each address" posted one task that called z_mergetoaddress for every batch of every address back to back; each call is a whole-wallet scan under cs_main, and the daemon runs the ops one at a time anyway. It is now an App-owned services::ConsolidationRun: - one RPC at a time; the next merge only after the previous batch left the queue and a gap as long as the last call took (2-120 s); - pauses while the node syncs, the wallet is locked, a send of ours is in progress, or another wallet scan is running; - failures classified: nothing that may have queued is ever resent; a breaker stops after 3 dead addresses or 3 failed ops in a row; - each merge is charged to the scan budget; one re-read and one forced balance at the end; - it keeps running when the dialog closes: a status-bar chip, a run view with progress, the wait reason and a Stop button. The "Into one" merge can no longer be confirmed twice while its call is in flight. fake_dragonxd gains FAKE_SCAN_SECS, FAKE_MERGE_SERIAL and FAKE_MERGE_FAIL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1183,6 +1183,22 @@
|
||||
"merge_max_inputs": "Máx. de entradas por lote",
|
||||
"merge_no_spendable": "Ainda não há entradas disponíveis para consolidar.",
|
||||
"merge_progress": "Consolidando… isso pode levar alguns minutos. Você pode fechar esta janela.",
|
||||
"merge_run_aborted_toast": "A conexão com o nó foi redefinida, então a consolidação parou. Execute-a novamente para continuar.",
|
||||
"merge_run_busy": "Uma consolidação está em andamento. Aguarde que termine ou interrompa-a primeiro.",
|
||||
"merge_run_chip_fmt": "Consolidando %d/%d",
|
||||
"merge_run_err_timeout": "O nó não respondeu a tempo; o lote ainda pode estar na fila.",
|
||||
"merge_run_halted_fmt": "Consolidação interrompida após falhas repetidas: %s",
|
||||
"merge_run_migration_pending": "Conclua ou cancele a migração da semente antes de consolidar.",
|
||||
"merge_run_progress_fmt": "Consolidando… lote %d de cerca de %d, %d notas mescladas até agora. Você pode fechar esta janela; a operação continua em segundo plano.",
|
||||
"merge_run_start_failed": "Não foi possível iniciar a consolidação — o nó não está conectado.",
|
||||
"merge_run_status_not_run": "%s — não consolidado (%d notas)",
|
||||
"merge_run_status_waiting": "%s — aguardando (%d notas)",
|
||||
"merge_run_stop": "Parar",
|
||||
"merge_run_stopped_toast": "Consolidação interrompida. Execute-a novamente para mesclar o restante.",
|
||||
"merge_run_stopping": "Parando após os lotes já enviados…",
|
||||
"merge_run_wait_batch": "Espaçando os lotes para que o nó continue respondendo…",
|
||||
"merge_run_wait_send": "Pausado até que sua transação pendente seja concluída.",
|
||||
"merge_run_wait_sync": "Pausado: o nó ainda está sincronizando.",
|
||||
"merge_scope_failed_fmt": "Não foi possível ler suas entradas: %s",
|
||||
"merge_scope_fmt": "%d entradas transparentes + %d blindadas · ~%s DRGX disponíveis",
|
||||
"merge_scope_loading": "Verificando suas entradas…",
|
||||
|
||||
Reference in New Issue
Block a user