mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-28 11:46:07 +08:00
new reservations
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
import csv
|
||||
from blockdata.register import register_name, update_name
|
||||
from coinrpc.namecoin.namecoind_wrapper import check_registration, namecoind_name_show
|
||||
|
||||
from coinrpc import namecoind
|
||||
|
||||
from pymongo import Connection
|
||||
con = Connection()
|
||||
db = con['namecoin']
|
||||
@@ -47,9 +47,9 @@ def main_loop(key, name=None):
|
||||
|
||||
reply = queue.find_one({'key':key})
|
||||
|
||||
if check_registration(key):
|
||||
if namecoind.check_registration(key):
|
||||
|
||||
profile = namecoind_name_show(key)
|
||||
profile = namecoind.name_show(key)
|
||||
profile = profile['value']
|
||||
if 'status' in profile and profile['status'] == 'reserved':
|
||||
print "already reserved: " + key
|
||||
|
||||
Reference in New Issue
Block a user