Fix comments
This commit is contained in:
parent
5eb571fe1c
commit
3b6ec4126d
|
@ -39,6 +39,10 @@ contract Proofs {
|
||||||
markers[id] = uint(blockhash(block.number - 1)) % period;
|
markers[id] = uint(blockhash(block.number - 1)) % period;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check whether a proof is required at the time of the block with the
|
||||||
|
// specified block number. A proof has to be submitted within the proof
|
||||||
|
// timeout for it to be valid. Whether a proof is required is determined
|
||||||
|
// randomly, but on average it is once every proof period.
|
||||||
function _isProofRequired(
|
function _isProofRequired(
|
||||||
bytes32 id,
|
bytes32 id,
|
||||||
uint blocknumber
|
uint blocknumber
|
||||||
|
|
|
@ -69,10 +69,6 @@ contract Storage is Contracts, Proofs {
|
||||||
return _missed(contractId);
|
return _missed(contractId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check whether a proof is required at the time of the block with the
|
|
||||||
// specified block number. A proof has to be submitted within the proof
|
|
||||||
// timeout for it to be valid. Whether a proof is required is determined
|
|
||||||
// randomly, but on average it is once every proof period.
|
|
||||||
function isProofRequired(
|
function isProofRequired(
|
||||||
bytes32 contractId,
|
bytes32 contractId,
|
||||||
uint blocknumber
|
uint blocknumber
|
||||||
|
|
|
@ -3,6 +3,7 @@ pragma solidity ^0.8.0;
|
||||||
|
|
||||||
import "./Contracts.sol";
|
import "./Contracts.sol";
|
||||||
|
|
||||||
|
// exposes internal functions of Contracts for testing
|
||||||
contract TestContracts is Contracts {
|
contract TestContracts is Contracts {
|
||||||
|
|
||||||
function newContract(
|
function newContract(
|
||||||
|
|
Loading…
Reference in New Issue