MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / get_node_output

Function get_node_output

test/functional/tool_bitcoin.py:90–105  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

88
89
90def get_node_output(node):
91 ret = node.process.wait(timeout=60)
92 node.stdout.seek(0)
93 node.stderr.seek(0)
94 out = node.stdout.read()
95 err = node.stderr.read()
96 node.stdout.close()
97 node.stderr.close()
98
99 # Clean up TestNode state
100 node.running = False
101 node.process = None
102 node.rpc_connected = False
103 node.rpc = None
104
105 return ret, out, err
106
107
108def get_exe_name(version_str):

Callers 1

test_argsMethod · 0.85

Calls 4

waitMethod · 0.45
seekMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by 1

test_argsMethod · 0.68