Skip to content

Commit

Permalink
fix(connector-xdai): add missing hasTransactionFinality
Browse files Browse the repository at this point in the history
This was overlooked by GitHub's auto-rebase of the PR
that introduced this issue so hot-fixing this
ASAP in order to stop blocking every single new PR from running the CI
suite correctly.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Apr 30, 2021
1 parent 99399a3 commit cc4f3e1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
IPluginKeychain,
} from "@hyperledger/cactus-core-api";

import { consensusHasTransactionFinality } from "@hyperledger/cactus-core";
import { PluginRegistry } from "@hyperledger/cactus-core";

import {
Expand Down Expand Up @@ -122,6 +123,11 @@ export class PluginLedgerConnectorXdai
this.prometheusExporter.startMetricsCollection();
}

public async hasTransactionFinality(): Promise<boolean> {
const consensusAlgorithmFamily = await this.getConsensusAlgorithmFamily();
return consensusHasTransactionFinality(consensusAlgorithmFamily);
}

public getPrometheusExporter(): PrometheusExporter {
return this.prometheusExporter;
}
Expand Down

0 comments on commit cc4f3e1

Please sign in to comment.