From 0ec60b27f709bc21f21a32e83b6d97f18388aca2 Mon Sep 17 00:00:00 2001 From: hai pham Date: Fri, 5 Jun 2026 11:54:07 +0700 Subject: [PATCH 1/2] feat: add internal solver tx source --- pkg/types/pendingtx.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/types/pendingtx.go b/pkg/types/pendingtx.go index 6885654..44c9c52 100644 --- a/pkg/types/pendingtx.go +++ b/pkg/types/pendingtx.go @@ -19,6 +19,7 @@ const ( MerkleMempool BlinkV3Mempool BloxRoute + InternalSolver ) type Message struct { @@ -124,7 +125,7 @@ func (m Message) GetAllLogs() []*types.Log { } return results } - case MevBlockerMempool, PublicMempool, BlinkMempool, MerkleMempool, BlinkV3Mempool, BloxRoute: + case MevBlockerMempool, PublicMempool, BlinkMempool, MerkleMempool, BlinkV3Mempool, BloxRoute, InternalSolver: if m.InternalTx != nil { return m.InternalTx.getLogs() } From d1a517d73a90ef5e9e9bad09689d529c557d1933 Mon Sep 17 00:00:00 2001 From: hai pham Date: Fri, 5 Jun 2026 12:04:28 +0700 Subject: [PATCH 2/2] feat: add logs --- pkg/types/pendingtx.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkg/types/pendingtx.go b/pkg/types/pendingtx.go index 44c9c52..bd3624c 100644 --- a/pkg/types/pendingtx.go +++ b/pkg/types/pendingtx.go @@ -111,6 +111,18 @@ type MinedBlock struct { Transactions []Transaction `json:"transactions"` } +func (m Message) GetLogsFromSimulatedLog() []*types.Log { + logs := make([]*types.Log, 0, len(m.Logs)) + for _, log := range m.Logs { + logs = append(logs, &types.Log{ + Address: log.Address, + Topics: log.Topics, + Data: log.Data, + }) + } + return logs +} + func (m Message) GetAllLogs() []*types.Log { switch m.Source { case FlashbotMempool: @@ -126,9 +138,11 @@ func (m Message) GetAllLogs() []*types.Log { return results } case MevBlockerMempool, PublicMempool, BlinkMempool, MerkleMempool, BlinkV3Mempool, BloxRoute, InternalSolver: + logs := m.GetLogsFromSimulatedLog() if m.InternalTx != nil { - return m.InternalTx.getLogs() + return append(logs, m.InternalTx.getLogs()...) } + return logs default: return nil }