Skip to content

Commit

Permalink
chore: update tx-archive in portal loop (#3064)
Browse files Browse the repository at this point in the history
## Description

This PR updates the `tx-archive` version in portal loop to use the new
standard `gnoland.TxWithMetadata` format for transaction sheets.

**BREAKING CHANGE**
The portal loop will now save transactions with the new metadata format

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
</details>
  • Loading branch information
zivkovicmilos authored Nov 4, 2024
1 parent 879041f commit e3995b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions misc/loop/cmd/snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/docker/go-connections/nat"
"github.com/gnolang/tx-archive/backup"
"github.com/gnolang/tx-archive/backup/client/http"
"github.com/gnolang/tx-archive/backup/writer/legacy"
"github.com/gnolang/tx-archive/backup/writer/standard"
)

const (
Expand Down Expand Up @@ -204,7 +204,7 @@ func (s snapshotter) backupTXs(ctx context.Context, rpcURL string) error {
}
defer instanceBackupFile.Close()

w := legacy.NewWriter(instanceBackupFile)
w := standard.NewWriter(instanceBackupFile)

// Create the tx-archive backup service
c, err := http.NewClient(rpcURL)
Expand Down
2 changes: 1 addition & 1 deletion misc/loop/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-connections v0.4.0
github.com/gnolang/gno v0.1.0-nightly.20240627
github.com/gnolang/tx-archive v0.3.0
github.com/gnolang/tx-archive v0.4.0
github.com/prometheus/client_golang v1.17.0
github.com/sirupsen/logrus v1.9.3
)
Expand Down
2 changes: 2 additions & 0 deletions misc/loop/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3995b9

Please sign in to comment.