public async Task OnIrreversibleBlockChangedAsync(long blockNumber, string blockHash) { await _listener.HandleNewLastIrreversibleBlockAsync ( new LastIrreversibleBlockUpdatedEvent ( blockNumber, blockHash ) ); }
private async Task HandleMonitoringTimer(ITimerTrigger timer, TimerTriggeredHandlerArgs args, System.Threading.CancellationToken cancellationToken) { var evt = await _irreversibleBlockProvider.GetLastAsync(); await _irreversibleBlockListener.HandleNewLastIrreversibleBlockAsync(evt); }