MCPcopy Create free account
hub / github.com/LUX-Core/lux / get_header

Method get_header

qa/rpc-tests/test_framework/blockstore.py:46–50  ·  view source on GitHub ↗
(self, blockhash)

Source from the content-addressed store, hash-verified

44 return ret
45
46 def get_header(self, blockhash):
47 try:
48 return self.headers_map[blockhash]
49 except KeyError:
50 return None
51
52 # Note: this pulls full blocks out of the database just to retrieve
53 # the headers -- perhaps we could keep a separate data structure

Callers 1

headers_forMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected