Skip to content

Commit

Permalink
Updated some comments on nodeinterface
Browse files Browse the repository at this point in the history
  • Loading branch information
yahgwai committed Apr 25, 2022
1 parent ae5c3ba commit 784d149
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/src/node-interface/NodeInterface.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pragma solidity >=0.4.21 <0.9.0;
* 0x00000000000000000000000000000000000000C8
* This is a cute trick to allow an Arbitrum node to provide data without us having to implement additional RPCs
*/

interface NodeInterface {
/**
* @notice Estimate the cost of putting a message in the L2 inbox that is reexecuted
Expand Down Expand Up @@ -50,17 +49,18 @@ interface NodeInterface {

/**
* @notice Finds the L1 batch containing a requested L2 block, reverting if none does
* @param block The L2 block being queried
* Throws if block doesn't exist, or if block number is 0
* @param blockNum The L2 block being queried
* @return batch The L1 block containing the requested L2 block
*/
function findBatchContainingBlock(uint64 block) external view returns (uint64 batch);
function findBatchContainingBlock(uint64 blockNum) external view returns (uint64 batch);

/**
* @notice Gets the number of L1 confirmations of the sequencer batch producing the requested L2 block
* This gets the number of L1 confirmations for the input message producing the L2 block,
* which happens well before the L1 rollup contract confirms the L2 block.
* @param blockHash The hash of the L2 block being queried
* @return confirmations The number of L1 confirmations the sequencer batch has
* @return confirmations The number of L1 confirmations the sequencer batch has. Returns 0 if block does not exist.
*/
function getL1Confirmations(bytes32 blockHash) external view returns (uint64 confirmations);
}

0 comments on commit 784d149

Please sign in to comment.