From 3b6ec4126da29b5147a91b7e24b670b4a7803c6f Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 2 Nov 2021 09:46:15 +0100 Subject: [PATCH] Fix comments --- contracts/Proofs.sol | 4 ++++ contracts/Storage.sol | 4 ---- contracts/TestContracts.sol | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/contracts/Proofs.sol b/contracts/Proofs.sol index 6a6c736..399f83a 100644 --- a/contracts/Proofs.sol +++ b/contracts/Proofs.sol @@ -39,6 +39,10 @@ contract Proofs { 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( bytes32 id, uint blocknumber diff --git a/contracts/Storage.sol b/contracts/Storage.sol index 0d62748..6e1ab5d 100644 --- a/contracts/Storage.sol +++ b/contracts/Storage.sol @@ -69,10 +69,6 @@ contract Storage is Contracts, Proofs { 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( bytes32 contractId, uint blocknumber diff --git a/contracts/TestContracts.sol b/contracts/TestContracts.sol index 9916ceb..b8a3c7c 100644 --- a/contracts/TestContracts.sol +++ b/contracts/TestContracts.sol @@ -3,6 +3,7 @@ pragma solidity ^0.8.0; import "./Contracts.sol"; +// exposes internal functions of Contracts for testing contract TestContracts is Contracts { function newContract(