Skip to content

Commit

Permalink
updated locallyWitnessed to return boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithSamuelM committed Dec 30, 2023
1 parent 0b2c878 commit 4607b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@ def locallyWitnessed(self, serder=None):
else:
wits, _, _ = self.deriveBacks(serder=serder)

return (oset(self.prefixes) & oset(wits))
return True if (self.prefixes & oset(wits)) else False


def reload(self, state):
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 @@ -947,7 +947,7 @@ def reopen(self, **kwa):
schema=EventSourceRecord,
subkey='esrs.')

# event source local (protected) or non-local (remote not protected)
# misfit escrows whose processing may change the .esrs event source record
self.mfes = subing.CesrIoSetSuber(db=self, subkey='mfes.', klas=coring.Diger)

# events as ordered by first seen ordinals
Expand Down

0 comments on commit 4607b53

Please sign in to comment.