mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 21:11:20 +00:00
24 lines
616 B
Bash
24 lines
616 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
network=$1
|
||
|
datadir=$2
|
||
|
|
||
|
git reset --hard
|
||
|
git checkout devel
|
||
|
git pull
|
||
|
# it will return only .seg of 500K (because Erigon send to Downloader only such files)
|
||
|
go run -trimpath ./cmd/downloader torrent_hashes --datadir="$datadir" >./../erigon-snpshots/"$network".toml
|
||
|
cd ./../erigon-snapshots
|
||
|
git add "$network".toml
|
||
|
git commit -m "cd: $network"
|
||
|
git push
|
||
|
# update Erigon submodule
|
||
|
cd ./../erigon
|
||
|
cd turbo/snapshotsync/snapshothashes/erigon-snapshots
|
||
|
git checkout main
|
||
|
git pull
|
||
|
cd ../../../../
|
||
|
git add turbo/snapshotsync/snapshothashes/erigon-snapshots
|
||
|
git commit -m "cd: $network snapshots"
|
||
|
git push
|