mirror of
				https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
				synced 2024-08-15 00:33:12 +00:00 
			
		
		
		
	remove caches from html template
This commit is contained in:
		
							parent
							
								
									ad91f74acd
								
							
						
					
					
						commit
						143018b5aa
					
				
					 4 changed files with 1 additions and 26 deletions
				
			
		
							
								
								
									
										1
									
								
								main.cpp
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								main.cpp
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -41,6 +41,7 @@ struct jsonresponse: public crow::response
 | 
			
		|||
int
 | 
			
		||||
main(int ac, const char* av[])
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    // get command line options
 | 
			
		||||
    xmreg::CmdLineOptions opts {ac, av};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -700,7 +700,6 @@ index2(uint64_t page_no = 0, bool refresh_page = false)
 | 
			
		|||
 | 
			
		||||
        uint64_t tx_i {0};
 | 
			
		||||
 | 
			
		||||
        // this vector will go into block_tx cache
 | 
			
		||||
        //          tx_hash     , txd_map
 | 
			
		||||
        vector<pair<crypto::hash, mstch::node>> txd_pairs;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -111,14 +111,3 @@
 | 
			
		|||
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{{#show_cache_times}}
 | 
			
		||||
    <div class="center">
 | 
			
		||||
        <h6 style="margin-top: 1px;color:#949490">
 | 
			
		||||
            Tx details construction time: {{construction_time_total}} s
 | 
			
		||||
            <br/>
 | 
			
		||||
            includes {{construction_time_cached}} s from block cache ({{cache_hits}} hits)
 | 
			
		||||
            and {{construction_time_non_cached}} s from non cache ({{cache_misses}} misses)
 | 
			
		||||
        </h6>
 | 
			
		||||
    </div>
 | 
			
		||||
{{/show_cache_times}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -300,18 +300,4 @@
 | 
			
		|||
    {{/with_ring_signatures}}
 | 
			
		||||
{{/have_raw_tx}}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{{#show_cache_times}}
 | 
			
		||||
    <div class="center">
 | 
			
		||||
        {{#construction_time}}
 | 
			
		||||
            <h6 style="margin-top: 1px;color:#949490">
 | 
			
		||||
                Tx details construction time: {{construction_time}} s
 | 
			
		||||
                {{#from_cache}}
 | 
			
		||||
                    <br/>Tx read from the tx cache
 | 
			
		||||
                {{/from_cache}}
 | 
			
		||||
            </h6>
 | 
			
		||||
        {{/construction_time}}
 | 
			
		||||
    </div>
 | 
			
		||||
{{/show_cache_times}}
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue