aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-18 01:04:55 -0700
committerAdam Soltys <[email protected]>2026-08-18 01:04:55 -0700
commit4069f813820f1814bef5b93c679619bc7ed8ddba (patch)
tree94d3782664cbc61e68773d1d55d590245c1dce90 /src/features
parent6fc84e13bd739b634bccd8f147fc881013d8fad8 (diff)
downloadcoinosv3-4069f813820f1814bef5b93c679619bc7ed8ddba.tar.gz
coinosv3-4069f813820f1814bef5b93c679619bc7ed8ddba.zip
The board drive gets a second witness: the wallet's own chain view vouches for confirmations when the ark esplora is rate-limited or walled off, and chain errors finally surface instead of masquerading as unconfirmed
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz
Diffstat (limited to 'src/features')
-rw-r--r--src/features/ark.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index cefb877..bff84a9 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -329,6 +329,13 @@ export function arkFeature(ctx) {
arkUrl: cfg.ark,
esploraUrl: cfg.esplora,
network: getNetwork(),
+ // the wallet's own tx table as a second witness for confirmations —
+ // its data source is user-configurable and often healthier than the
+ // ark preset's esplora from this device
+ statusHint: (txid2) => {
+ const tx = (wallet.txs || []).find((t2) => t2.txid === txid2);
+ return tx && tx.confirmed ? { confirmed: true, block_height: tx.blockHeight || NaN } : null;
+ },
onUpdate: () => render(),
});
ui.arkError = '';