wormhole-explorer/fly/cmd/backfiller
agodnic 3c7bab3f8a
Remove duplicated code: MongoDB connection handling (#590)
### Description

This pull request removes duplicated code related to MongoDB connection/disconnection attempts. This code was copied across all 8 microservices.

The functionality is now unified under the `common/dbutil` package.
2023-08-07 16:05:08 -03:00
..
README.md
backfiler.go Fix txHash encoding by chain (#410) 2023-06-15 09:57:39 -03:00
main.go Fix txHash encoding by chain (#410) 2023-06-15 09:57:39 -03:00
txhash_encoding_strategy.go Remove duplicated code: MongoDB connection handling (#590) 2023-08-07 16:05:08 -03:00
txhash_strategy.go
vaa_strategy.go
workpool.go Remove duplicated code: MongoDB connection handling (#590) 2023-08-07 16:05:08 -03:00

README.md

generic backfiller

reads a bulk csv dump of stuff (VAAs, TxHash, etc) and upsert it into mongodb

compile

go build

run

./backfiller -strategy vaa -file test.csv

When you run the backfiller must pass a valid strategy Current supported strategies are:

  • vaa for backfilling VAAs
  • txhash for backfilling of txHash

config

The mongodb uri is set via env using the variable MONGODB_URI If is not set it will use the default mongodb://localhost:27017/