use of com.hedera.services.sigs.verification.PrecheckVerifier in project hedera-services by hashgraph.
the class SigVerifierRegressionTest method setupFor.
private void setupFor(TxnHandlingScenario scenario) throws Throwable {
accounts = scenario.accounts();
platformTxn = scenario.platformTxn();
aliasManager = mock(AliasManager.class);
keyOrder = new SigRequirements(defaultLookupsFor(aliasManager, null, () -> accounts, () -> null, ref -> null, ref -> null), mockSignatureWaivers);
final var nodeInfo = mock(NodeInfo.class);
given(nodeInfo.selfAccount()).willReturn(DEFAULT_NODE);
isQueryPayment = PrecheckUtils.queryPaymentTestFor(nodeInfo);
SyncVerifier syncVerifier = new CryptoEngine()::verifySync;
precheckKeyReqs = new PrecheckKeyReqs(keyOrder, isQueryPayment);
precheckVerifier = new PrecheckVerifier(syncVerifier, precheckKeyReqs);
}
Aggregations