(self, blockhash)
| 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 |