diff --git a/contracts/contracts/BlockTracker.sol b/contracts/contracts/BlockTracker.sol index 0f13820db..ef4d41d8e 100644 --- a/contracts/contracts/BlockTracker.sol +++ b/contracts/contracts/BlockTracker.sol @@ -21,7 +21,7 @@ contract BlockTracker is Ownable { event NewBlocksPerWindow(uint256 blocksPerWindow); uint256 public currentWindow = 1; - uint256 public blocksPerWindow = 64; + uint256 public blocksPerWindow = 10; // Mapping from block number to the winner's address mapping(uint256 => address) public blockWinners; diff --git a/contracts/scripts/DeployScripts.s.sol b/contracts/scripts/DeployScripts.s.sol index 3b1c546a0..540dda379 100644 --- a/contracts/scripts/DeployScripts.s.sol +++ b/contracts/scripts/DeployScripts.s.sol @@ -47,13 +47,11 @@ contract DeployScript is Script, Create2Deployer { uint256 minStake = 1 ether; address feeRecipient = address(0x68bC10674b265f266b4b1F079Fa06eF4045c3ab9); uint16 feePercent = 2; - uint256 blocksPerWindow = 10; // Forge deploy with salt uses create2 proxy from https://github.com/primevprotocol/deterministic-deployment-proxy bytes32 salt = 0x8989000000000000000000000000000000000000000000000000000000000000; BlockTracker blockTracker = new BlockTracker{salt: salt}(msg.sender); console.log("BlockTracker deployed to:", address(blockTracker)); - blockTracker.setBlocksPerWindow(blocksPerWindow); // todo: move to env var BidderRegistry bidderRegistry = new BidderRegistry{salt: salt}(minStake, feeRecipient, feePercent, msg.sender, address(blockTracker)); console.log("BidderRegistry deployed to:", address(bidderRegistry));