Skip to content

Commit ad48ab7

Browse files
committed
chain/ethereum: rename latest_block_header to latest_block_ptr
1 parent 617a847 commit ad48ab7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

chain/ethereum/src/adapter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ pub trait EthereumAdapter: Send + Sync + 'static {
10851085
async fn latest_block(&self, logger: &Logger) -> Result<LightEthereumBlock, bc::IngestorError>;
10861086

10871087
/// Get the latest block, with only the header and transaction hashes.
1088-
async fn latest_block_header(&self, logger: &Logger) -> Result<BlockPtr, bc::IngestorError>;
1088+
async fn latest_block_ptr(&self, logger: &Logger) -> Result<BlockPtr, bc::IngestorError>;
10891089

10901090
async fn load_block(
10911091
&self,

chain/ethereum/src/ethereum_adapter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
12881288
Ok(ident)
12891289
}
12901290

1291-
async fn latest_block_header(&self, logger: &Logger) -> Result<BlockPtr, IngestorError> {
1291+
async fn latest_block_ptr(&self, logger: &Logger) -> Result<BlockPtr, IngestorError> {
12921292
let alloy = self.alloy.clone();
12931293
retry("eth_getBlockByNumber(latest) no txs RPC call", logger)
12941294
.redact_log_urls(true)

chain/ethereum/src/ingestor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl PollingBlockIngestor {
206206
logger: &Logger,
207207
eth_adapter: &Arc<EthereumAdapter>,
208208
) -> Result<BlockPtr, IngestorError> {
209-
eth_adapter.latest_block_header(&logger).await
209+
eth_adapter.latest_block_ptr(&logger).await
210210
}
211211

212212
async fn eth_adapter(&self) -> anyhow::Result<Arc<EthereumAdapter>> {

0 commit comments

Comments
 (0)