mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-24 16:19:50 +08:00
1) New activation code that checks for tx confirmations 2) Time is measured in blocks and the loop checks for new blocks before checking again 3) Cleanup of code for register_daemon (no longer wait 15 mins for user to fill up profile) 4) Upgraded to latest version of coinrpc
34 lines
689 B
Python
Executable File
34 lines
689 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#-----------------------
|
|
# Copyright 2014 Halfmoon Labs, Inc.
|
|
# All Rights Reserved
|
|
#-----------------------
|
|
|
|
from blockdata.namecoind_cluster import get_server
|
|
from blockdata.register import update_name
|
|
from commontools import setup_logging
|
|
|
|
import json
|
|
|
|
import logging
|
|
setup_logging()
|
|
log = logging.getLogger()
|
|
|
|
from pymongo import MongoClient
|
|
client = MongoClient()
|
|
local_db = client['temp_db']
|
|
|
|
from time import sleep
|
|
|
|
|
|
#-----------------------------------
|
|
if __name__ == '__main__':
|
|
|
|
key = 'u/muneeb'
|
|
log.debug(get_server(key))
|
|
#value = json.loads('{"next":"u/awright"}')
|
|
#update_name(key,value)
|
|
|
|
#expiring_users =
|
|
#send_update() |