use of org.ethereum.rpc.dto.BlockResultDTO in project rskj by rsksmart.
the class Web3Impl method eth_getUncleByBlockHashAndIndex.
@Override
public BlockResultDTO eth_getUncleByBlockHashAndIndex(String blockHash, String uncleIdx) {
BlockResultDTO s = null;
try {
Block block = blockchain.getBlockByHash(stringHexToByteArray(blockHash));
if (block == null) {
return null;
}
s = getUncleResultDTO(uncleIdx, block);
return s;
} finally {
if (logger.isDebugEnabled()) {
logger.debug("eth_getUncleByBlockHashAndIndex({}, {}): {}", blockHash, uncleIdx, s);
}
}
}
Aggregations