-
Notifications
You must be signed in to change notification settings - Fork 8
/
block-explorer.sh
57 lines (39 loc) · 1.32 KB
/
block-explorer.sh
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
#!/bin/bash
echo "downloading part2"
echo
wget https://raw.githubusercontent.com/supernetorg/komodo-block-explorer/master/block-explorer-part2.sh
echo "---------------"
# Install komodo dependencies:
echo "installing komodo"
echo
sudo apt-get -y install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils automake curl libcurl4-gnutls-dev
# download zcash source from fork with block explorer patches
git clone https://github.com/supernetorg/komodo-bitcore.git komodo
cd komodo
# switch to sprout version of source code; this will change in the future
git checkout komodo-insight
# download proving parameters
./zcutil/fetch-params.sh
# build patched komodo
./zcutil/build.sh -j$(nproc)
# install komodo
sudo cp src/komodod /usr/local/bin/
sudo cp src/komodo-cli /usr/local/bin/
echo "---------------"
echo "installing node and npm"
echo
# install node and dependencies
cd ..
sudo apt-get -y install npm
echo "---------------"
echo "installing nvm"
echo
# install nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
echo "logout of this shell, log back in and run:"
echo "bash block-explorer-part2.sh"