txq
Version:
TXQ: Bitcoin Transaction Storage Queue Service
27 lines (24 loc) • 561 B
text/typescript
import { Service, Inject } from 'typedi';
import { UseCase } from '../UseCase';
import { UseCaseOutcome } from '../UseCaseOutcome';
('updateTxDlq')
export default class UpdateTxDlq extends UseCase {
constructor(
('txsyncService') private txsyncService,
('logger') private logger
) {
super();
}
public async run(params: {
txid: string;
dlq: string;
}): Promise<UseCaseOutcome> {
await this.txsyncService.updateDlq(
params.txid,
params.dlq,
);
return {
success: true
}
}
}