|
|
@ -1473,7 +1473,6 @@ defmodule Explorer.Chain do |
|
|
|
def indexed_ratio_internal_transactions do |
|
|
|
def indexed_ratio_internal_transactions do |
|
|
|
if indexer_running?() and internal_transactions_fetcher_running?() do |
|
|
|
if indexer_running?() and internal_transactions_fetcher_running?() do |
|
|
|
%{max: max_saved_block_number} = BlockNumber.get_all() |
|
|
|
%{max: max_saved_block_number} = BlockNumber.get_all() |
|
|
|
pbo_count = PendingBlockOperationCache.estimated_count() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
min_blockchain_trace_block_number = Application.get_env(:indexer, :trace_first_block) |
|
|
|
min_blockchain_trace_block_number = Application.get_env(:indexer, :trace_first_block) |
|
|
|
|
|
|
|
|
|
|
@ -1485,6 +1484,8 @@ defmodule Explorer.Chain do |
|
|
|
full_blocks_range = |
|
|
|
full_blocks_range = |
|
|
|
max_saved_block_number - min_blockchain_trace_block_number - BlockNumberHelper.null_rounds_count() + 1 |
|
|
|
max_saved_block_number - min_blockchain_trace_block_number - BlockNumberHelper.null_rounds_count() + 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pbo_count = PendingBlockOperation.count_in_range(min_blockchain_trace_block_number, max_saved_block_number) |
|
|
|
|
|
|
|
|
|
|
|
processed_int_transactions_for_blocks_count = max(0, full_blocks_range - pbo_count) |
|
|
|
processed_int_transactions_for_blocks_count = max(0, full_blocks_range - pbo_count) |
|
|
|
|
|
|
|
|
|
|
|
ratio = get_ratio(processed_int_transactions_for_blocks_count, full_blocks_range) |
|
|
|
ratio = get_ratio(processed_int_transactions_for_blocks_count, full_blocks_range) |
|
|
|