From a56b385e8be417320bf44a50679524a6a8a030d4 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Fri, 16 Aug 2024 19:16:35 +0900 Subject: [PATCH] ignore other bridge id event --- executor/host/withdraw.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/executor/host/withdraw.go b/executor/host/withdraw.go index 7e6ac85..9e1da92 100644 --- a/executor/host/withdraw.go +++ b/executor/host/withdraw.go @@ -26,6 +26,10 @@ func (h *Host) proposeOutputHandler(_ context.Context, args nodetypes.EventHandl if err != nil { return err } + if bridgeId != uint64(h.bridgeId) { + // pass other bridge output proposal event + return nil + } case ophosttypes.AttributeKeyOutputIndex: outputIndex, err = strconv.ParseUint(attr.Value, 10, 64) if err != nil { @@ -74,7 +78,7 @@ func (h *Host) finalizeWithdrawalHandler(_ context.Context, args nodetypes.Event return err } if bridgeId != uint64(h.bridgeId) { - // pass other bridge deposit event + // pass other bridge withdrawal event return nil } case ophosttypes.AttributeKeyOutputIndex: