示例#1
0
def main():

    wallet = Wallet(password=args.password, port=args.port)
    while True:
        fuseable = wallet.estimate_fusion(100000, [args.address])
        print("Outputs fuseable: {}".format(fuseable))
        try:
            print("Sending Fusion")
            fusion_result = wallet.send_fusion_transaction(100000, 3, [args.address], args.address)
            print("Fusion result: {}".format(y))
            time.sleep(args.wait)
        except ValueError:
            print("Node threw an error, continuing...")
示例#2
0
# This script is for debugging/development
# It initializes Wallatd and TurtleCoinD with debug logging enabled

import logging

from turtlecoin import Walletd, TurtleCoind

logger = logging.getLogger()
handler = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s %(levelname)-8s %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)

wallet = Walletd(password='******')
#daemon = TurtleCoind()
import ipdb; ipdb.set_trace()

#wallet.get_balance()