-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdash1.txt
191 lines (108 loc) · 5.63 KB
/
dash1.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
Install Ubuntu 18 and 16 version to your VM Machine
##########################################################
sudo apt-get update
sudo apt-get install build-essential gcc make perl dkms
sudo reboot
sudo apt-get install git
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install libboost-all-dev
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler
sudo apt-get install openssl1.0
sudo apt-get install libssl1.0-dev
##################################################################
On the Ubuntu 18 istall go lang
sudo apt install golang-go
####### If show error ##########
sudo killall apt apt-get
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
sudo apt update
### Try install go again ####
sudo apt install golang-go
sudo apt install gccgo-go
cd Desktop
git clone https://github.com/vuicash/generate-genesis
cd generate-genesis
go get -d -v
go build
go test
##################################################################
git clone https://github.com/dashpay/dash.git
cd dash
openssl ecparam -genkey -name secp256k1 -out mainnet.pem
openssl ec -in mainnet.pem -text > mainnet.hex
date +%s
############# Reg Test = Dev net for latest of Dash ###################
./generate-genesis -algo x11 -bits 207fffff -psz "Make Dash great again Feb 16/2022" -pubkey "04ce3e098125b0292f3bc2a91060c53674bf6cbdb92ce2a637bb01cb3bf3003428d150b0ebdebdbb265f22667b0f0fec4e18a744db9dc122fa551fce82d57ea26f" -timestamp 1645026221 -nonce 0
Ctrl Hash: 0x6629bdf7b8fb68c7ececb832faa1372499611f39eafa9b6769ed46a0f516ad8b
Target: 0x7fffff0000000000000000000000000000000000000000000000000000000000
Blk Hash: 0x6629bdf7b8fb68c7ececb832faa1372499611f39eafa9b6769ed46a0f516ad8b
Mkl Hash: 0x679600f651ba8617c649cc63b987253c7f4e4a674a0c48e4c370a9efaacf3ad1
Nonce: 0
Timestamp: 1645026221
Pubkey: 04ce3e098125b0292f3bc2a91060c53674bf6cbdb92ce2a637bb01cb3bf3003428d150b0ebdebdbb265f22667b0f0fec4e18a744db9dc122fa551fce82d57ea26f
Coins: 5000000000
Psz: 'Make Dash great again Feb 16/2022'
############# Test net ###################
./generate-genesis -algo x11 -bits 1e0ffff0 -psz "Make Dash great again Feb 16/2022" -pubkey "04ce3e098125b0292f3bc2a91060c53674bf6cbdb92ce2a637bb01cb3bf3003428d150b0ebdebdbb265f22667b0f0fec4e18a744db9dc122fa551fce82d57ea26f" -timestamp 1645028221 -nonce 0
Ctrl Hash: 0x000007aaf90782153e3111fb20cff710172825af00397ba31b91a1e80e192795
Target: 0x00000ffff0000000000000000000000000000000000000000000000000000000
Blk Hash: 0x000007aaf90782153e3111fb20cff710172825af00397ba31b91a1e80e192795
Mkl Hash: 0x679600f651ba8617c649cc63b987253c7f4e4a674a0c48e4c370a9efaacf3ad1
Nonce: 605870
Timestamp: 1645028221
Pubkey: 04ce3e098125b0292f3bc2a91060c53674bf6cbdb92ce2a637bb01cb3bf3003428d150b0ebdebdbb265f22667b0f0fec4e18a744db9dc122fa551fce82d57ea26f
Coins: 5000000000
Psz: 'Make Dash great again Feb 16/2022'
############# Main Net ###################
./generate-genesis -algo x11 -bits 1e0ffff0 -psz "Make Dash great again Feb 16/2022" -pubkey "04ce3e098125b0292f3bc2a91060c53674bf6cbdb92ce2a637bb01cb3bf3003428d150b0ebdebdbb265f22667b0f0fec4e18a744db9dc122fa551fce82d57ea26f" -timestamp 1645029221 -nonce 0
Ctrl Hash: 0x000009b1323ca3db939dde765caf07c0a588f870cb9a6724c7c49a41f5b2dbdb
Target: 0x00000ffff0000000000000000000000000000000000000000000000000000000
Blk Hash: 0x000009b1323ca3db939dde765caf07c0a588f870cb9a6724c7c49a41f5b2dbdb
Mkl Hash: 0x679600f651ba8617c649cc63b987253c7f4e4a674a0c48e4c370a9efaacf3ad1
Nonce: 252006
Timestamp: 1645029221
Pubkey: 04ce3e098125b0292f3bc2a91060c53674bf6cbdb92ce2a637bb01cb3bf3003428d150b0ebdebdbb265f22667b0f0fec4e18a744db9dc122fa551fce82d57ea26f
Coins: 5000000000
Psz: 'Make Dash great again Feb 16/2022'
############################### Change magic key make new chain #################################
consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000000000000000000");// Start
https://en.bitcoin.it/wiki/List_of_address_prefixes
76 X
70-71 V
132-133 v
Important: Save for feature info (*)
############################### Build #################################
sudo apt-get install curl build-essential libtool autotools-dev automake pkg-config python3 libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install libqrencode-dev
cd depends
make -j4
### Take 30 min to complete
### Mat khoang 30 phut moi xong ^^
cd ..
./autogen.sh
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu
make -j4
### Take 15 min to complete
### Mat khoang 15 phut moi xong ^^
### OK
cd src/qt
./dash-qt
You will get Error
Invalid spork address specified with -sporkaddr
Whatis vSporkAddresses ???????????????????????????????????????????????
How to find and replace this
Please see my next Video ^^