From 5550d933694909ab0c4041e7a82e79830226ac13 Mon Sep 17 00:00:00 2001 From: Kartik Chopra Date: Wed, 6 Nov 2024 16:47:43 -0500 Subject: [PATCH] feat: sets up relay for 0.7 release --- mevcommitclient/mev_commit_client.go | 4 ++++ services/housekeeper/housekeeper.go | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mevcommitclient/mev_commit_client.go b/mevcommitclient/mev_commit_client.go index 943822c2..6fae36fa 100644 --- a/mevcommitclient/mev_commit_client.go +++ b/mevcommitclient/mev_commit_client.go @@ -159,6 +159,7 @@ func (m *MevCommitClient) ListenForBuildersEvents() (<-chan MevCommitProvider, < for providerRegisteredIterator.Next() { event := providerRegisteredIterator.Event + // TODO: when event.BLSPublicKey becomes array of public keys do a for loop here builderRegistryEventCh <- MevCommitProvider{ Pubkey: event.BlsPublicKey, EOAAddress: event.Provider, @@ -175,6 +176,9 @@ func (m *MevCommitClient) ListenForBuildersEvents() (<-chan MevCommitProvider, < close(builderRegistryEventCh) return case event := <-providerRegisteredEventCh: + // TODO: when event.BLSPublicKey becomes array of public keys do a for loop here + // for now, we only have one public key per builder + // and the event.Provider is the EOA address builderRegistryEventCh <- MevCommitProvider{ Pubkey: event.BlsPublicKey, EOAAddress: event.Provider, diff --git a/services/housekeeper/housekeeper.go b/services/housekeeper/housekeeper.go index 881bbb74..9ba7174a 100644 --- a/services/housekeeper/housekeeper.go +++ b/services/housekeeper/housekeeper.go @@ -206,7 +206,6 @@ func (hk *Housekeeper) monitorMevCommitBuilderRegistrations() { if err != nil { hk.log.WithError(err).Errorf("failed to delete mev-commit block builder %s", builderAddress) } - break } } }