use of com.hedera.services.ledger.properties.TestAccountCommitInterceptor in project hedera-services by hashgraph.
the class TransactionalLedgerTest method setup.
@BeforeEach
private void setup() {
scopedCheck = new TestAccountScopedCheck();
accountsLedger = new TransactionalLedger<>(AccountProperty.class, MerkleAccount::new, backingAccounts, new ChangeSummaryManager<>());
final var accountsCommitInterceptor = new AccountsCommitInterceptor(new SideEffectsTracker());
accountsLedger.setCommitInterceptor(accountsCommitInterceptor);
subject = new TransactionalLedger<>(TestAccountProperty.class, TestAccount::new, backingTestAccounts, changeManager);
final var testAccountCommitInterceptor = new TestAccountCommitInterceptor(new SideEffectsTracker());
subject.setCommitInterceptor(testAccountCommitInterceptor);
}
Aggregations