Skip to content

Commit 73cebe7

Browse files
committed
Don't prove historical ethscription transfers
1 parent 2dd7fcb commit 73cebe7

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

contracts/src/Ethscriptions.sol

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ contract Ethscriptions is ERC721EthscriptionsUpgradeable {
443443
}
444444
}
445445

446-
// Queue ethscription for batch proving at block boundary
447-
prover.queueEthscription(txHash);
446+
// Queue ethscription for batch proving at block boundary once proving is live
447+
_queueForProving(txHash);
448448
}
449449

450450
/// @notice Get ethscription details (returns struct to avoid stack too deep)
@@ -804,4 +804,10 @@ contract Ethscriptions is ERC721EthscriptionsUpgradeable {
804804

805805
return content;
806806
}
807+
808+
function _queueForProving(bytes32 txHash) internal {
809+
if (block.timestamp >= 1760630077) {
810+
prover.queueEthscription(txHash);
811+
}
812+
}
807813
}

contracts/src/L2/L1Block.sol

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ contract L1Block {
8686
sstore(batcherHash.slot, calldataload(132)) // bytes32
8787
}
8888

89-
// Flush all queued ethscription proofs after updating block values
90-
// Each proof includes its own block number and timestamp from when it was queued
91-
IEthscriptionsProver(Predeploys.ETHSCRIPTIONS_PROVER).flushAllProofs();
89+
_flushProofsIfLive();
90+
}
91+
92+
function _flushProofsIfLive() internal {
93+
if (block.timestamp >= 1760630077) {
94+
// Each proof includes its own block number and timestamp from when it was queued
95+
IEthscriptionsProver(Predeploys.ETHSCRIPTIONS_PROVER).flushAllProofs();
96+
}
9297
}
9398
}

0 commit comments

Comments
 (0)