File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,7 @@ Don't forget to change the `rpcuser` value and `rpcpassword` value!
2828
2929You can start your node : ` ./namecoind `
3030
31- ### Update ` updater/zeroname_updater.py `
32-
33-
34- You need update lines 117-118 with the correct ` rpcuser ` and ` rpcpassword ` .
35- ```
36- 'user': 'PLACEHOLDER',
37- 'password': 'PLACEHOLDER',
38- ```
31+ ### Create a Zeroname site
3932
4033You will also need to create a site ` python zeronet.py createSite ` and regitser the info.
4134
Original file line number Diff line number Diff line change @@ -169,10 +169,15 @@ def initRpc(config):
169169rpc_auth , rpc_timeout = initRpc (namecoin_location + "namecoin.conf" )
170170rpc = AuthServiceProxy (rpc_auth , timeout = rpc_timeout )
171171
172+ node_version = rpc .getnetworkinfo ()['version' ]
173+
172174while 1 :
173175 try :
174176 time .sleep (1 )
175- last_block = int (rpc .getinfo ()["blocks" ])
177+ if node_version < 160000 :
178+ last_block = int (rpc .getinfo ()["blocks" ])
179+ else :
180+ last_block = int (rpc .getblockchaininfo ()["blocks" ])
176181 break # Connection succeeded
177182 except socket .timeout : # Timeout
178183 print "." ,
@@ -192,6 +197,7 @@ def initRpc(config):
192197assert not processBlock (236824 , test = True ) # Utf8 domain name (invalid should skip)
193198assert not processBlock (236752 , test = True ) # Uppercase domain (invalid should skip)
194199assert processBlock (236870 , test = True ) # Encoded domain (should pass)
200+ assert processBlock (438317 , test = True ) # Testing namecoin standard artifaxradio.bit (should pass)
195201# sys.exit(0)
196202
197203print "- Parsing skipped blocks..."
You can’t perform that action at this time.
0 commit comments