(cls, filename)
| 49 | |
| 50 | @classmethod |
| 51 | def load_cache(cls, filename): |
| 52 | disk_cache = json.loads(open(filename, 'r').read()) |
| 53 | for k, raw_hex in disk_cache.items(): |
| 54 | cls.cache[k] = Tx.parse(BytesIO(bytes.fromhex(raw_hex))) |
| 55 | |
| 56 | @classmethod |
| 57 | def dump_cache(cls, filename): |
no test coverage detected