Files
stacks-puppet-node/blockstack_cli_0.14.1/blockstack_registrar/new.py
Muneeb Ali f266a73560 This commit adds:
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
2014-11-21 17:33:27 -05:00

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()