Skip to content

Commit

Permalink
Limit enclave fed L1 receipts to obscuro-relevant tx
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Sep 4, 2023
1 parent 4cb161e commit dab025a
Show file tree
Hide file tree
Showing 26 changed files with 1,230 additions and 1,363 deletions.
8 changes: 0 additions & 8 deletions go/common/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ type Enclave interface {
StreamL2Updates() (chan StreamL2UpdatesResponse, func())
// DebugEventLogRelevancy returns the logs of a transaction
DebugEventLogRelevancy(hash gethcommon.Hash) (json.RawMessage, SystemError)

Config() (*ObscuroEnclaveInfo, SystemError)
}

// EnclaveScan represents the methods that are used for data scanning in the enclave
Expand All @@ -153,9 +151,3 @@ type ProducedSecretResponse struct {
RequesterID gethcommon.Address
HostAddress string
}

// ObscuroEnclaveInfo contains the data to return on Config requests
type ObscuroEnclaveInfo struct {
SequencerID gethcommon.Address
MessageBusAddress gethcommon.Address
}
4 changes: 2 additions & 2 deletions go/common/host/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ type L1BlockRepository interface {
// FetchNextBlock returns the next canonical block after a given block hash
// It returns the new block, a bool which is true if the block is the current L1 head and a bool if the block is on a different fork to prevBlock
FetchNextBlock(prevBlock gethcommon.Hash) (*types.Block, bool, error)
// FetchReceipts returns the receipts for a given L1 block
FetchReceipts(block *common.L1Block) types.Receipts
// FetchObscuroReceipts returns the receipts for a given L1 block
FetchObscuroReceipts(block *common.L1Block) types.Receipts
}

// L1BlockHandler is an interface for receiving new blocks from the repository as they arrive
Expand Down
Loading

0 comments on commit dab025a

Please sign in to comment.