Skip to content

Commit 02e2080

Browse files
committed
Added test for new standard; Check version for compatibility with namecoin newer version; update README
1 parent c006017 commit 02e2080

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

plugins/Zeroname/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@ Don't forget to change the `rpcuser` value and `rpcpassword` value!
2828

2929
You 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

4033
You will also need to create a site `python zeronet.py createSite` and regitser the info.
4134

plugins/Zeroname/updater/zeroname_updater.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,15 @@ def initRpc(config):
169169
rpc_auth, rpc_timeout = initRpc(namecoin_location + "namecoin.conf")
170170
rpc = AuthServiceProxy(rpc_auth, timeout=rpc_timeout)
171171

172+
node_version = rpc.getnetworkinfo()['version']
173+
172174
while 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):
192197
assert not processBlock(236824, test=True) # Utf8 domain name (invalid should skip)
193198
assert not processBlock(236752, test=True) # Uppercase domain (invalid should skip)
194199
assert 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

197203
print "- Parsing skipped blocks..."

0 commit comments

Comments
 (0)