Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino committed Feb 19, 2024
1 parent 1019f38 commit a156cdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/relayer/processor/process_single.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"

"github.com/taikoxyz/taiko-mono/packages/relayer/bindings/bridge"
"github.com/taikoxyz/taiko-mono/packages/relayer/pkg/queue"
)

func (p *Processor) processSingle(ctx context.Context) error {
slog.Info("Processing tx", "p.estimateGas:", common.Hash(*p.targetTxHash).Hex())
slog.Info("processing tx", "estimateGas", common.Hash(*p.targetTxHash).Hex())

bridgeAbi, err := abi.JSON(strings.NewReader(bridge.BridgeABI))
if err != nil {
Expand Down
6 changes: 4 additions & 2 deletions packages/relayer/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ func (p *Processor) Start() error {
if err != nil {
slog.Error(err.Error())
}

os.Exit(0)
}

Expand Down Expand Up @@ -421,8 +422,9 @@ func (p *Processor) eventLoop(ctx context.Context) {
slog.Error("Err acking message", "err", err.Error())
}
} else {
slog.Error("err processing message", "err", err.Error())
if err := p.queue.Nack(ctx, msg); err != nil {
slog.Error("process message failed", "err", err.Error())

if err = p.queue.Nack(ctx, msg); err != nil {
slog.Error("Err nacking message", "err", err.Error())
}
}
Expand Down

0 comments on commit a156cdf

Please sign in to comment.