Skip to main content

IRelay

Git Source

Contains only the methods needed by tBTC v2. The Bitcoin relay provides the difficulty of the previous and current epoch. One difficulty epoch spans 2016 blocks.

Functions

getCurrentEpochDifficulty

Returns the difficulty of the current epoch.

function getCurrentEpochDifficulty() external view returns (uint256);

getPrevEpochDifficulty

Returns the difficulty of the previous epoch.

function getPrevEpochDifficulty() external view returns (uint256);