Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds escrow clean up to migrate #733

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading