Skip to content

Commit

Permalink
Merge pull request #298 from umbrella-network/hotfix/5.12.3
Browse files Browse the repository at this point in the history
added more logs to tx fetcher
  • Loading branch information
DZariusz authored Nov 3, 2024
2 parents 4d24c11 + d42a874 commit a221ff1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## [5.12.3] - 2024-11-03
### Added
- added more logs to tx fetcher

## [5.12.2] - 2024-07-25
### Fixed
- in `EvmTxsFetcher` fix case when we get error on first block and we checkpoint all blocks
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanctuary",
"version": "5.12.2",
"version": "5.12.3",
"repository": {
"type": "git",
"url": "git+https://github.com/umbrella-network/sanctuary.git"
Expand Down
2 changes: 1 addition & 1 deletion src/services/on-chain-stats/EvmTxsFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class EvmTxsFetcher {
arr.push(i);
}

this.logger.debug(`[EvmTxsFetcher] fetching txs for ${arr.length} blocks`);
this.logger.debug(`${chainId}[EvmTxsFetcher] fetching txs for ${arr.length} blocks`);

const allTxsSettled = await Promise.allSettled(
arr.sort().map((i) => promiseWithTimeout(provider.getBlockWithTransactions(i), 15000))
Expand Down
2 changes: 1 addition & 1 deletion src/services/on-chain-stats/KeysUpdateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class KeysUpdateService {

private async downloadFile(feedFile: string): Promise<string | undefined> {
if (!feedFile) {
this.logger.warn('${this.logPrefix} Skipping, no URL configured');
this.logger.warn(`${this.logPrefix} Skipping, no URL configured`);
return;
}

Expand Down
6 changes: 5 additions & 1 deletion src/services/on-chain-stats/OnChainTxFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class OnChainTxFetcher {

const feedsMap = await this.umbrellaFeedsMap(chainId);

this.logger.debug(`[OnChainTxFetcher][${chainId}] feedsMap: ${feedsMap.keys()}`);

this.logger.info(
`[OnChainTxFetcher][${chainId}] blocks to sync: ${rangeTo - rangeFrom} blocks, starting from ${rangeFrom}`
);
Expand Down Expand Up @@ -87,7 +89,9 @@ export class OnChainTxFetcher {
continue;
}

this.logger.info(`${logPrefix} found ${filteredTx.length} 'update()' txs`);
this.logger.info(
`${logPrefix} found ${filteredTx.length} 'update()' txs ${filteredTx.map((tx) => tx.blockNumber).sort()}`
);

const receipts = await this.txReceiptFetcher.call(
chainId,
Expand Down

0 comments on commit a221ff1

Please sign in to comment.