Skip to content

Commit

Permalink
adds escrow clean up to migrate (WebOfTrust#733)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Griffin <[email protected]>
  • Loading branch information
m00sey authored Apr 2, 2024
1 parent 94c8c8d commit da94906
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/keri/app/cli/commands/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ def migrate(tymth, tock=0.0, **opts):

migrateKeys(hby.db)

# clear escrows
print("clearing escrows")
hby.db.gpwe.trim()
hby.db.gdee.trim()
hby.db.dpwe.trim()
hby.db.gpse.trim()
hby.db.epse.trim()
hby.db.dune.trim()

except ConfigurationError:
print(f"identifier prefix for {name} does not exist, incept must be run first", )
return -1
Expand Down
4 changes: 3 additions & 1 deletion src/keri/db/basing.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def reopen(self, **kwa):
self.ends = koming.Komer(db=self, subkey='ends.',
schema=EndpointRecord, )

# service endpont locations keyed by eid.scheme (endpoint identifier)
# service endpoint locations keyed by eid.scheme (endpoint identifier)
# data extracted from reply loc
self.locs = koming.Komer(db=self,
subkey='locs.',
Expand Down Expand Up @@ -1015,12 +1015,14 @@ def reopen(self, **kwa):

# Global settings for the Habery environment
self.hbys = subing.Suber(db=self, subkey='hbys.')

# Signed contact data, keys by prefix
self.cons = subing.Suber(db=self,
subkey="cons.")

# Transferable signatures on contact data
self.ccigs = subing.CesrSuber(db=self, subkey='ccigs.', klas=coring.Cigar)

# Chunked image data for contact information for remote identifiers
self.imgs = self.env.open_db(key=b'imgs.')

Expand Down

0 comments on commit da94906

Please sign in to comment.