Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Keszey Dániel authored and Keszey Dániel committed Jul 4, 2024
1 parent 98cf744 commit 54461ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions packages/protocol/contracts/L1/BasedOperator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,10 @@ contract BasedOperator is EssentialContract, TaikoErrors {
whenNotPaused
returns (TaikoData.BlockMetadata memory _block)
{
console2.log("BO:1");
require(msg.value == PROVER_BOND, "Prover bond not expected");
console2.log("BO:2");

console2.log("Address is:");
console2.log(resolve("taiko", true));
_block = TaikoL1(resolve("taiko", false)).proposeBlock(params, txList);

console2.log("BO:3");

// Check if we have whitelisted proposers
if (!_isProposerPermitted(_block)) {
revert L1_INVALID_PROPOSER();
Expand Down
10 changes: 0 additions & 10 deletions packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,16 @@ contract TaikoL1 is EssentialContract, TaikoEvents, TaikoErrors {
{
TaikoData.Config memory config = getConfig();

console2.log("T:1");
// Decode the block data
_block = abi.decode(data, (TaikoData.BlockMetadata));

console2.log("T:2");
// Verify L1 data
// TODO(Brecht): needs to be more configurable for preconfirmations
require(_block.l1Hash == blockhash(_block.l1StateBlockNumber), "INVALID_L1_BLOCKHASH");
require(_block.difficulty == block.prevrandao, "INVALID_DIFFICULTY");
// Verify misc data
require(_block.gasLimit == config.blockMaxGasLimit, "INVALID_GAS_LIMIT");

console2.log("Irasd ki");
console2.logBytes(txList);
require(_block.blobUsed == (txList.length == 0), "INVALID_BLOB_USED");
// Verify DA data
if (_block.blobUsed) {
Expand All @@ -99,12 +95,6 @@ contract TaikoL1 is EssentialContract, TaikoEvents, TaikoErrors {

TaikoData.Block storage parentBlock = state.blocks[(state.numBlocks - 1)];

console2.log("Ennyi blokk van:", state.numBlocks);
console2.logBytes32(_block.parentMetaHash);
console2.logBytes32(parentBlock.metaHash);
console2.logBytes32(parentBlock.blockHash);
console2.log("ID-ja:",parentBlock.blockId);
console2.log("Timestamp-je:",parentBlock.timestamp);
require(_block.parentMetaHash == parentBlock.blockHash, "invalid parentMetaHash");

// Verify the passed in L1 state block number.
Expand Down

0 comments on commit 54461ce

Please sign in to comment.