Skip to content

Commit

Permalink
feat. reduce block range and scanning interval
Browse files Browse the repository at this point in the history
  • Loading branch information
kilted-andres committed Mar 20, 2024
1 parent 933ef79 commit 6afbedb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/revoker/expiredInventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AttestationInfo } from './scanAttestations';
import { shouldBeRemoved } from './shouldBeExpired';
import { batchQueryRevoked } from './batchQueryRevoked';

const SCAN_INTERVAL_MS = 24 * 60 * 60 * 1000;
const SCAN_INTERVAL_MS = 60 * 60 * 1000;

export const attestationsToRevoke: AttestationInfo[] = [];
export const attestationsToRemove: AttestationInfo[] = [];
Expand Down
2 changes: 1 addition & 1 deletion src/backend/revoker/subScan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { subscan } = configuration;

const SUBSCAN_MAX_ROWS = 100;
const QUERY_INTERVAL_MS = 1000;
const BLOCK_RANGE_SIZE = 100_000;
const BLOCK_RANGE_SIZE = 10_000;

const subscanAPI = `https://${subscan.network}.api.subscan.io`;
const eventsListURL = `${subscanAPI}/api/v2/scan/events`;
Expand Down

0 comments on commit 6afbedb

Please sign in to comment.