本文整理汇总了Python中core.core.Core.start方法的典型用法代码示例。如果您正苦于以下问题:Python Core.start方法的具体用法?Python Core.start怎么用?Python Core.start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core.core.Core
的用法示例。
在下文中一共展示了Core.start方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BCJSONRPCWorkSource
# 需要导入模块: from core.core import Core [as 别名]
# 或者: from core.core.Core import start [as 别名]
worksource.settings.password = "TheSeven"
worksource.apply_settings()
examplesources.add_work_source(worksource)
worksource = BCJSONRPCWorkSource(core)
worksource.set_blockchain(blockchain)
worksource.settings.name = "BTCGuild (donation)"
worksource.settings.priority = 1
worksource.settings.host = "mine3.btcguild.com"
worksource.settings.username = "TheSeven_guest"
worksource.settings.password = "x"
worksource.settings.longpollconnections = 0
worksource.apply_settings()
examplesources.add_work_source(worksource)
worksource = BCJSONRPCWorkSource(core)
worksource.set_blockchain(blockchain)
worksource.settings.name = "Eligius (donation)"
worksource.settings.priority = 1
worksource.settings.host = "mining.eligius.st"
worksource.settings.port = 8337
worksource.settings.username = "1FZMW7BCzExsLmErT2o8oCMLcMYKwd7sHQ"
worksource.settings.longpollconnections = 0
worksource.apply_settings()
examplesources.add_work_source(worksource)
core.start()
try:
while True: time.sleep(100)
except KeyboardInterrupt:
core.stop()