(self, node)
| 13 | |
| 14 | class LongpollThread(threading.Thread): |
| 15 | def __init__(self, node): |
| 16 | threading.Thread.__init__(self) |
| 17 | # query current longpollid |
| 18 | templat = node.getblocktemplate() |
| 19 | self.longpollid = templat['longpollid'] |
| 20 | # create a new connection to the node, we can't use the same |
| 21 | # connection from two threads |
| 22 | self.node = get_rpc_proxy(node.url, 1, timeout=600, coveragedir=node.coverage_dir) |
| 23 | |
| 24 | def run(self): |
| 25 | self.node.getblocktemplate({'longpollid':self.longpollid}) |
nothing calls this directly
no test coverage detected