wormhole-explorer/fly/cmd/backfiller
gipsh 2db8f58092
Fly backfiller (#106)
* change repo to support backfill of txhash

* generic backfiller for vaas and txhash

* update deps

* remove unused code

---------

Co-authored-by: gipsh <gipsh@gmail.com>
2023-01-30 10:20:38 -03:00
..
README.md Fly backfiller (#106) 2023-01-30 10:20:38 -03:00
main.go Fly backfiller (#106) 2023-01-30 10:20:38 -03:00
txhash_strategy.go Fly backfiller (#106) 2023-01-30 10:20:38 -03:00
vaa_strategy.go Fly backfiller (#106) 2023-01-30 10:20:38 -03:00
workpool.go Fly backfiller (#106) 2023-01-30 10:20:38 -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/