Skip to content

Commit

Permalink
max interval
Browse files Browse the repository at this point in the history
  • Loading branch information
kajoseph committed Oct 31, 2023
1 parent af6881e commit c613824
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bitcore-node/src/services/pruning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if (Object.keys(args).includes('DRY') && args.DRY === undefined) {
args.DRY = '1';
}

if (INTERVAL_HRS > 72) {
throw new Error('INTERVAL_HRS cannot be over 72. Consider using a cron job.');
}

export class PruningService {
transactionModel: TransactionModel;
coinModel: CoinModel;
Expand Down

0 comments on commit c613824

Please sign in to comment.