UNPKG

txq

Version:

TXQ: Bitcoin Transaction Storage Queue Service

25 lines (22 loc) 546 B
import { Service, Inject } from 'typedi'; import { UseCase } from '../UseCase'; import { UseCaseOutcome } from '../UseCaseOutcome'; @Service('incrementTxRetries') export default class IncrementTxRetries extends UseCase { constructor( @Inject('txsyncService') private txsyncService, @Inject('logger') private logger ) { super(); } public async run(params: { txid: string; }): Promise<UseCaseOutcome> { await this.txsyncService.incrementRetries( params.txid ); return { success: true } } }