Skip to content

Commit

Permalink
changed Baser.mfes to .misfits since CesrIoSetSuber attribute name do…
Browse files Browse the repository at this point in the history
…es not need to match subkey .mfes

x
  • Loading branch information
SmithSamuelM committed Dec 31, 2023
1 parent 7fb7b59 commit 50de552
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,14 @@ def prefixes(self):
return self.db.prefixes


@property
def groups(self):
"""
Returns .db.gids oset of group hab ids (prefixes)
"""
return self.db.gids


@property
def transferable(self):
"""
Expand Down Expand Up @@ -2957,7 +2965,7 @@ def escrowMFEvent(self, serder, sigers, wigers=None,
if seqner and saider:
couple = seqner.qb64b + saider.qb64b
self.db.putPde(dgkey, couple) # idempotent
self.db.mfes.add(snKey(serder.preb, serder.sn), serder.saidb)
self.db.misfits.add(snKey(serder.preb, serder.sn), serder.saidb)
# log escrowed
logger.info("Kever state: escrowed misfit event=\n%s\n",
json.dumps(serder.ked, indent=1))
Expand Down Expand Up @@ -4607,7 +4615,7 @@ def escrowMFEvent(self, serder, sigers, wigers=None,
if seqner and saider:
couple = seqner.qb64b + saider.qb64b
self.db.putPde(dgkey, couple) # idempotent
self.db.mfes.add(snKey(serder.preb, serder.sn), serder.saidb)
self.db.misfits.add(snKey(serder.preb, serder.sn), serder.saidb)
# log escrowed
logger.info("Kevery process: escrowed misfit event=\n%s\n",
json.dumps(serder.ked, indent=1))
Expand Down
2 changes: 1 addition & 1 deletion src/keri/db/basing.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ def reopen(self, **kwa):
subkey='esrs.')

# misfit escrows whose processing may change the .esrs event source record
self.mfes = subing.CesrIoSetSuber(db=self, subkey='mfes.', klas=coring.Diger)
self.misfits = subing.CesrIoSetSuber(db=self, subkey='mfes.', klas=coring.Diger)

# events as ordered by first seen ordinals
self.fons = subing.CesrSuber(db=self, subkey='fons.', klas=coring.Seqner)
Expand Down

0 comments on commit 50de552

Please sign in to comment.