Skip to content

Commit

Permalink
Feature/attestation logging (#359)
Browse files Browse the repository at this point in the history
* fix arb-main to arbitrum-main

* chore: add attestation status update

* chore: update README

---------

Co-authored-by: taariq <[email protected]>
  • Loading branch information
byte-bandit and taariq authored Mar 15, 2024
1 parent ee6a927 commit 367184e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This repo does not accept issues. Please use https://github.com/palomachain/palo
### To get the latest prebuilt `pigeon` binary:

```shell
wget -O - https://github.com/palomachain/pigeon/releases/download/v1.10.2/pigeon_Linux_x86_64.tar.gz | \
wget -O - https://github.com/palomachain/pigeon/releases/download/v1.10.3/pigeon_Linux_x86_64.tar.gz | \
sudo tar -C /usr/local/bin -xvzf - pigeon
sudo chmod +x /usr/local/bin/pigeon

Expand All @@ -69,7 +69,7 @@ mkdir ~/.pigeon
```shell
git clone https://github.com/palomachain/pigeon.git
cd pigeon
git checkout v1.10.2
git checkout v1.10.3
make build
sudo mv ./build/pigeon /usr/local/bin/pigeon

Expand Down
3 changes: 3 additions & 0 deletions relayer/message_attester.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ func (r *Relayer) attestMessages(ctx context.Context, processors []chain.Process
err := p.ProvideEvidence(ctx, queue.FromString(queueName), messagesInQueue)
if err != nil {
logger.WithError(err).Error("error attesting messages")
if err := r.palomaClient.NewStatus().WithArg("error", err.Error()).WithLog("error attesting messages").Error(ctx); err != nil {
logger.WithError(err).Error("failed to send Paloma status update")
}
return err
}
}
Expand Down

0 comments on commit 367184e

Please sign in to comment.