Skip to content

Commit d57aab3

Browse files
authored
Merge pull request #141 from wileyj/chore/storage_note
Update storage requirement
2 parents ae0eace + a21cff7 commit d57aab3

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,18 @@ cp sample.env .env
3131
### Seed chainstate from Hiro Archiver
3232

3333
Using data from the [Hiro Archiver](https://docs.hiro.so/hiro-archive) service, this script will download the latest files, extract them and restore the postgres data. \
34-
_**Note**: it can take a long time to process the data, and you'll need at a minimum roughly 350GB of free space_ \
34+
_**Note**: it can take a long time to process the data, and you'll need at a minimum roughly **1.5TB** of free space to download and process the chainstate archives_\
3535
_**Note**: for faster downloads, install [aria2](https://aria2.github.io/) on your system_
3636

37+
Example aria2c install on a debian based system:
38+
```
39+
git clone https://github.com/aria2/aria2 aria2c && cd aria2c
40+
sudo apt-get install build-essential libssh2-1-dev libc-ares-dev libxml2-dev zlib1g-dev libsqlite3-dev sqlite3 pkg-config autopoint binutils autoconf automake autotools-dev libtool
41+
autoreconf -i
42+
./configure
43+
make && make install
44+
```
45+
3746
```bash
3847
sudo ./scripts/seed-chainstate.sh
3948
./manage.sh -n mainnet -a start

scripts/seed-chainstate.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ if [ ! -f "${ENV_FILE}" ];then
1313
cp -a "${SCRIPTPATH}/sample.env" "${ENV_FILE}"
1414
fi
1515
source "${ENV_FILE}"
16-
export CURRENT_USER=$(who am i | awk '{print $1}')
16+
17+
CURRENT_USER=$(who am i | awk '{print $1}')
18+
# some ttys don't return the expected value here (looking at you, tmux)
19+
if [ ! -n "${CURRENT_USER}" ];then
20+
CURRENT_USER=$(whoami | awk '{print $1}')
21+
fi
22+
export $CURRENT_USER
1723

1824
COLRED=$'\033[31m' # Red
1925
COLGREEN=$'\033[32m' # Green

0 commit comments

Comments
 (0)