Skip to content

Commit

Permalink
add recovery feature
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed May 10, 2022
1 parent 149a8b2 commit b5f32f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terra/src/Monitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ export class Monitoring {
}
}

async loadTx(txhash: string): Promise<MonitoringData[]> {
const txInfo: TxInfo = await this.LCDClient.tx.txInfo(txhash);
const monitoringDatas = await this.parseTx(txInfo);

return monitoringDatas;
}

// load and process a single block
async load(lastHeight: number): Promise<[number, MonitoringData[]]> {
const latestHeight =
Expand Down

0 comments on commit b5f32f8

Please sign in to comment.