use of org.ethereum.db.RepositoryTrack in project rskj by rsksmart.
the class TransactionPoolImplTest method usingRepository.
@Test
public void usingRepository() {
TransactionPoolImpl transactionPool = createSampleNewTransactionPool(createBlockchain());
Repository repository = transactionPool.getRepository();
Assert.assertNotNull(repository);
Assert.assertTrue(repository instanceof RepositoryTrack);
}
use of org.ethereum.db.RepositoryTrack in project rskj by rsksmart.
the class ProgramTrace method getContractDetails.
private static ContractDetails getContractDetails(ProgramInvoke programInvoke) {
Repository repository = programInvoke.getRepository();
if (repository instanceof RepositoryTrack) {
repository = ((RepositoryTrack) repository).getOriginRepository();
}
RskAddress addr = new RskAddress(programInvoke.getOwnerAddress());
return repository.getContractDetails(addr);
}
Aggregations