You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide will assist you with installing Coinpunk. This document assumes you are running Ubuntu 12.04 LTS, adjustments may need to be made for other OSes.
3
+
This guide will assist you with installing Vertpunk. This document assumes you are running Ubuntu 12.04 LTS, adjustments may need to be made for other OSes.
4
4
5
-
If you don't understand how to use this document, **Coinpunk is not for you**. Coinpunk requires a commanding understanding of UNIX system administration to be run safely. If you are learning, you can use Coinpunk's `testnet` mode to ensure that mistakes cannot lead to loss of money.
6
-
7
-
## System Requirements
8
-
9
-
A VPS with at least 2GB RAM is needed for the moment, due to the memory usage of bitcoind. This will hopefully be lowered in the future (either from bitcoind becoming more memory efficient, or from Coinpunk switching to a lighter SPV-based node).
5
+
If you don't understand how to use this document, **Vertpunk is not for you**. Vertpunk requires a commanding understanding of UNIX system administration to be run safely.
10
6
11
7
## Install Prerequisites
12
8
@@ -51,79 +47,96 @@ Change `appendfsync everysec` to `appendfsync always`.
51
47
52
48
Restart redis: `sudo service redis-server restart`.
53
49
54
-
## Install and Configure Bitcoind
50
+
## Install and Configure vertcoind
55
51
56
-
Currently Coinpunk depends on a custom build of Bitcoind using [this patch](https://github.com/bitcoin/bitcoin/pull/2861).
52
+
Currently Vertpunk depends on a custom build of vertcoind using [this patch](https://github.com/dayreiner/vertcoin-watchonly).
make -f makefile.unix USE_UPNP=0 USE_QRCODE=1 USE_IPV6=1
65
+
strip vertcoind
66
+
```
67
+
68
+
Create a user for vertcoind and move the binary to where it can access it:
69
+
```
70
+
adduser vertcoin
71
+
mkdir -p ~vertcoin/bin
72
+
mv vertcoind /usr/home/vertcoin/bin
73
+
```
73
74
74
-
Now you need to configure bitcoind:
75
+
Now you need to configure vertcoind:
75
76
76
77
```
77
-
mkdir -p ~/.bitcoin
78
-
vi ~/.bitcoin/bitcoin.conf
78
+
su - vertcoin
79
+
mkdir -p ~/.vertcoin
80
+
vi ~/.vertcoin/vertcoin.conf
79
81
```
80
82
81
-
And add the following information (set the `rpcuser` and `rpcpassword` to something else:
83
+
And add the following information (set the `rpcuser` and `rpcpassword` to something else):
82
84
83
85
```
84
86
rpcuser=NEWUSERNAME
85
87
rpcpassword=NEWPASSWORD
88
+
rpcallowip=127.0.0.1
89
+
rpcport=5888
90
+
port=5889
86
91
txindex=1
87
-
testnet=1
92
+
server=1
93
+
daemon=1
94
+
addnode=192.241.125.215
95
+
addnode=192.241.125.216
96
+
addnode=192.241.125.217
97
+
addnode=192.241.125.218
98
+
addnode=192.241.125.219
99
+
addnode=192.241.125.220
100
+
addnode=31.220.27.16
101
+
addnode=162.217.249.196
88
102
```
103
+
**If your vertcoind crashes due to memory consumption**, try limiting your connections by adding `maxconnections=10`. Try further adjusting to 3 if you are still having issues.
89
104
90
-
**If your bitcoind crashes due to memory consumption**, try limiting your connections by adding `maxconnections=10`. Try further adjusting to 3 if you are still having issues.
91
-
92
-
If you want to run Coinpunk in production rather than on testnet, remove `testnet=1` from the config. Testnet emulates the production Bitcoin network, but does so in a way that you can't lose money. You can send money to your Coinpunk accounts using Bitcoin Testnet Faucets like [the Mojocoin Testnet3 Faucet](http://faucet.xeno-genesis.com/). I strongly recommend this mode for testing.
105
+
Consider adding a startup script for vertcoind to either init.d or via upstart.
93
106
94
-
Start bitcoind:
107
+
Start vertcoind as the vertcoin user:
95
108
96
109
```
97
-
bitcoind &
110
+
su - vertcoin
111
+
vertcoind &
98
112
```
99
113
100
-
**Bitcoind will take several hours or moreto download the blockchain.**Coinpunk will not be able to function properly until this has occurred. Please be patient.
114
+
**vertcoind may take up to an hour (or more, depending on growth) to download the blockchain.**Vertpunk will not be able to function properly until this has occurred. Please be patient.
101
115
102
-
If you want something to monitor bitcoind to ensure it stays running and start it on system restart, take a look at [Monit](http://mmonit.com/monit/).
116
+
If you want something to monitor vertcoind to ensure it stays running and start it on system restart, take a look at [Monit](http://mmonit.com/monit/).
103
117
104
-
## Install and Configure Coinpunk
118
+
## Install and Configure Vertpunk
105
119
106
120
Go to your user's home directory (`cd ~`), clone the repository and install nodejs dependencies:
Alternately, you can use Nginx as your SSL endpoint and proxy requests over to Vertpunk instead of opening your node install directly to the world.
144
157
145
158
Now copy the client application's config:
146
159
147
160
```
148
161
cp public/config.template.json public/config.json
149
162
```
150
163
151
-
And change `network` to `prod` instead of `testnet`if you are using Coinpunk in production mode.
164
+
And change `network` to `prod` instead of `testnet`to use Vertpunk in production mode.
152
165
153
-
## Start Coinpunk
166
+
## Start Vertpunk
154
167
155
-
You can start Coinpunk from the command line:
168
+
You can start Vertpunk from the command line:
156
169
157
170
```
158
171
node start.js
159
172
```
160
173
174
+
Try to connect by going to http://YOURADDRESS.COM:8080 (If you're using the SSL config then try http://YOURADDRESS.COM:8085. OR https://YOURADDRESS.COM:8086) If it loads, then you should be ready to use Vertpunk!
175
+
176
+
## Vertcoin Price Cron Job
177
+
178
+
Edit the crontab of the user you are running vertpunk as, and insert the following entry:
Try to connect by going to http://YOURADDRESS.COM:8080 (If you're using the SSL config then try http://YOURADDRESS.COM:8085. OR https://YOURADDRESS.COM:8086) If it loads, then you should be ready to use Coinpunk!
184
+
This will run the get_vtc_exchange_rate.sh script every 15 minutes to grab the current VTC/USD exchange rate. This is a simple hack to get around the lack of a bitpay-style pricing API for coins other than bitcoin.
163
185
164
186
## Backing up Database
165
187
166
188
Redis maintains a file called `/var/lib/redis/dump.rdb`, which is a backup of your Redis database. It is safe to copy this file while Redis is running. **It is strongly recommended that you backup this file frequently.** You can also setup a Redis slave to listen to master in real time. Ideally you should do both!
167
189
168
190
## Extra Steps for Contributors
169
191
170
-
If you want to contribute code to this project, you will need to use Grunt. Grunt is a task-runner that presently handles minifying and uglifying Coinpunk's CSS and JS resources. Grunt is installed by the `npm install` you ran from the coinpunk directory.
192
+
If you want to contribute code to this project, you will need to use Grunt. Grunt is a task-runner that presently handles minifying and uglifying Vertpunk's CSS and JS resources. Grunt is installed by the `npm install` you ran from the Vertpunk directory.
171
193
172
-
Running `./node_modules/grunt-cli/bin/grunt` in your Coinpunk directory will minify and uglify everything, and running `./node_modules/grunt-cli/bin/grunt watch` will automatically uglify your JS files when they change.
194
+
Running `./node_modules/grunt-cli/bin/grunt` in your Vertpunk directory will minify and uglify everything, and running `./node_modules/grunt-cli/bin/grunt watch` will automatically uglify your JS files when they change.
173
195
174
196
You can also install grunt system-wide with `sudo npm install -g grunt-cli`.
0 commit comments