From b8d6f941aa3360e7a63d37d90a659b6c7e48000d Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Tue, 7 Feb 2023 20:08:07 -0800 Subject: [PATCH] revert provenat --- packages/protocol/contracts/L1/TaikoData.sol | 2 +- .../protocol/contracts/L1/libs/LibProving.sol | 2 -- .../protocol/contracts/L1/libs/LibUtils.sol | 4 +--- .../status-page/src/pages/home/Home.svelte | 19 ++++++++++++------- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/packages/protocol/contracts/L1/TaikoData.sol b/packages/protocol/contracts/L1/TaikoData.sol index 66604ec36ce..a95b0edaca5 100644 --- a/packages/protocol/contracts/L1/TaikoData.sol +++ b/packages/protocol/contracts/L1/TaikoData.sol @@ -101,7 +101,7 @@ library TaikoData { // the proof time moving average, note that for each block, only the // first proof's time is considered. uint64 avgProofTime; - uint64 lastProvenAt; + uint64 __reservedC1; // Reserved uint256[42] __gap; } diff --git a/packages/protocol/contracts/L1/libs/LibProving.sol b/packages/protocol/contracts/L1/libs/LibProving.sol index a1f3a51c282..62b366ced3e 100644 --- a/packages/protocol/contracts/L1/libs/LibProving.sol +++ b/packages/protocol/contracts/L1/libs/LibProving.sol @@ -365,8 +365,6 @@ library LibProving { fc.provers.push(prover); - state.lastProvenAt = uint64(block.timestamp); - emit BlockProven({ id: target.id, parentHash: parentHash, diff --git a/packages/protocol/contracts/L1/libs/LibUtils.sol b/packages/protocol/contracts/L1/libs/LibUtils.sol index 51e4719fea7..bd4e0d67227 100644 --- a/packages/protocol/contracts/L1/libs/LibUtils.sol +++ b/packages/protocol/contracts/L1/libs/LibUtils.sol @@ -30,7 +30,6 @@ library LibUtils { uint64 latestVerifiedHeight; uint64 latestVerifiedId; uint64 avgProofTime; - uint64 lastProvenAt; } event Halted(bool halted); @@ -75,8 +74,7 @@ library LibUtils { avgBlockTime: state.avgBlockTime, latestVerifiedHeight: state.latestVerifiedHeight, latestVerifiedId: state.latestVerifiedId, - avgProofTime: state.avgProofTime, - lastProvenAt: state.lastProvenAt + avgProofTime: state.avgProofTime }); } diff --git a/packages/status-page/src/pages/home/Home.svelte b/packages/status-page/src/pages/home/Home.svelte index 808facddac3..1e2f8a5f4d3 100644 --- a/packages/status-page/src/pages/home/Home.svelte +++ b/packages/status-page/src/pages/home/Home.svelte @@ -1,5 +1,5 @@