Skip to content

Commit

Permalink
Removed old message pushing.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed May 20, 2024
1 parent c6c7a96 commit f1a9c31
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
22 changes: 11 additions & 11 deletions contracts/generated/ManagementContract/ManagementContract.go

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions contracts/src/management/ManagementContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ contract ManagementContract is Initializable, OwnableUpgradeable {
}

// solc-ignore-next-line unused-param
function AddRollup(Structs.MetaRollup calldata r, string calldata _rollupData, Structs.HeaderCrossChainData calldata crossChainData) public {
function AddRollup(Structs.MetaRollup calldata r, string calldata _rollupData, Structs.HeaderCrossChainData calldata) public {
address enclaveID = ECDSA.recover(r.Hash, r.Signature);
// revert if the EnclaveID is not attested
require(attested[enclaveID], "enclaveID not attested");
// revert if the EnclaveID is not permissioned as a sequencer
require(sequencerEnclave[enclaveID], "enclaveID not a sequencer");

AppendRollup(r);
pushCrossChainMessages(crossChainData);
}

// InitializeNetworkSecret kickstarts the network secret, can only be called once
Expand Down
1 change: 0 additions & 1 deletion go/enclave/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ func NewEnclave(
}
}

// todo - this does not query atomically. If stuff reorgs we might get weird exports.
func (e *enclaveImpl) ExportCrossChainData(ctx context.Context, fromSeqNo uint64, toSeqNo uint64) (*common.ExtCrossChainBundle, common.SystemError) {
return e.Sequencer().ExportCrossChainData(ctx, fromSeqNo, toSeqNo)
}
Expand Down

0 comments on commit f1a9c31

Please sign in to comment.