Example #1
0
 async def persist_sub_epoch_challenge_segments(
     self, sub_epoch_summary_height: uint32, segments: List[SubEpochChallengeSegment]
 ):
     cursor_1 = await self.db.execute(
         "INSERT OR REPLACE INTO sub_epoch_segments VALUES(?, ?)",
         (sub_epoch_summary_height, bytes(SubEpochSegments(segments))),
     )
     await cursor_1.close()
 async def persist_sub_epoch_challenge_segments(
         self, sub_epoch_summary_height: uint32,
         segments: List[SubEpochChallengeSegment]):
     self._sub_epoch_segments[sub_epoch_summary_height] = SubEpochSegments(
         segments)