File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2115,8 +2115,12 @@ window.loadResolvers=async function(){
21152115 if ( ! el ) return ;
21162116 el . innerHTML = '<div class="loading"><span class="blink">▪ ▪ ▪</span> loading resolvers</div>' ;
21172117 try {
2118+ // auto-scan if no cache or registry empty
2119+ if ( ! localStorage . getItem ( 'praxis_tx_cache' ) || _resolverRegistry . size === 0 ) {
2120+ await loadMarkets ( ) ;
2121+ }
21182122 const cache = localStorage . getItem ( 'praxis_tx_cache' ) ;
2119- if ( ! cache ) { el . innerHTML = '<div class="alert ay">No chain data — browse Markets first to scan blocks </div>' ; return ; }
2123+ if ( ! cache ) { el . innerHTML = '<div class="alert ay">No chain data — node may be offline </div>' ; return ; }
21202124 const txs = JSON . parse ( cache ) ;
21212125 const resolvers = new Map ( ) ;
21222126 for ( const tx of txs ) {
Original file line number Diff line number Diff line change @@ -2115,8 +2115,12 @@ window.loadResolvers=async function(){
21152115 if ( ! el ) return ;
21162116 el . innerHTML = '<div class="loading"><span class="blink">▪ ▪ ▪</span> loading resolvers</div>' ;
21172117 try {
2118+ // auto-scan if no cache or registry empty
2119+ if ( ! localStorage . getItem ( 'praxis_tx_cache' ) || _resolverRegistry . size === 0 ) {
2120+ await loadMarkets ( ) ;
2121+ }
21182122 const cache = localStorage . getItem ( 'praxis_tx_cache' ) ;
2119- if ( ! cache ) { el . innerHTML = '<div class="alert ay">No chain data — browse Markets first to scan blocks </div>' ; return ; }
2123+ if ( ! cache ) { el . innerHTML = '<div class="alert ay">No chain data — node may be offline </div>' ; return ; }
21202124 const txs = JSON . parse ( cache ) ;
21212125 const resolvers = new Map ( ) ;
21222126 for ( const tx of txs ) {
You can’t perform that action at this time.
0 commit comments