def METHOD_NAME(self, filename):
    with open(filename, 'r', encoding="utf8") as f:
        d = json.load(f)
        blocks = d['blocks']
        self.mocktime = d['mocktime']
        self.expected_stats = d['stats']
    # Set the timestamps from the file so that the nodes can get out of Initial Block Download
    self.nodes[0].setmocktime(self.mocktime)
    self.nodes[1].setmocktime(self.mocktime)
    for b in blocks:
        self.nodes[0].submitblock(b)