-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD & RUNNING - NON-TESTNET.txt
74 lines (35 loc) · 3 KB
/
BUILD & RUNNING - NON-TESTNET.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
WARNING: THIS DOCUMENT IS OBSOLETE BECAUSE IT DOES NOT USE DOCKER.
ВНИМАНИЕ: ЭТОТ ДОКУМЕНТ УСТАРЕЛ, ПОТОМУ ЧТО НЕ ИСПОЛЬЗУЕТ DOCKER.
1. Выполните весь пункт "9. Насчет cli-wallet" из файла "INSTRUCTION - BUILD & RUNNING.txt" до строчки "make -j $(nproc)" включительно
2. Если находитесь в папке build, которую создали при п.1, то сделайте cd ..
3. Постройте не-тестнет в папке build2:
mkdir build2
cd build2
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_GOLOS_TESTNET=FALSE -DBUILD_SHARED_LIBRARIES=FALSE -DCHAINBASE_CHECK_LOCKING=FALSE -DENABLE_MONGO_PLUGIN=TRUE ..
make -j $(nproc)
4. Запустите golosd, чтобы создать папку witness_node_data_dir (в папке build2/programs/golosd)
cd programs/golosd
./golosd
Должно запуститься и сразу вылететь, успев создать папку. (Если почему-то не вылетает - нажмите Ctrl+C. Если будет долго завершаться - убейте через диспетчер (здесь и далее)).
5. Зайдите в эту папку. Удалите в ней папку blockchain. После чего выйдите из этой папки обратно в golosd.
6. Скопируйте snapshot5392323.json из share/golosd в build2/programs/golosd
7. Так же сделайте и с seednodes
8. В этой же папке - build2/programs/golosd - создайте файл golosd.sh
В нем должно быть такое содержимое:
#!/bin/bash
SEED_NODES="$(cat seednodes | awk -F' ' '{print $1}')"
ARGS=""
for NODE in $SEED_NODES ; do
ARGS+=" --seed-node=$NODE"
done
./golosd $ARGS
9. Файлу golosd.sh надо дать права на выполнение (будучи в папке build2/programs/golosd (если вы не в ней, попадите туда через cd))
sudo chmod -R 777 golosd.sh
ВНИМАНИЕ: для запуска будет использовать golosd.sh, а не golosd напрямую.
10. Из папки share/golosd/config скопировать файл config_mongo.ini в папку build2/programs/golosd/witness_node_data_dir, при этом переименовать его в config.ini
10.1. Коль скоро докер в данном случае не используется, то закомментируйте строку с mongodb-uri в config.ini
11. ЗАПУСК:
Чтобы запустить, нужно, будучи в папке build2/programs/golosd (если вы не в ней, попадите туда через cd), выполнить это:
./golosd.sh
12. Через некоторое время в монго появится БД.
13. Внимание: следите за местом на диске.