Skip to content

Commit

Permalink
cleans up TraitDex usage
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Griffin <[email protected]>
  • Loading branch information
m00sey committed Oct 30, 2023
1 parent 7ad7e9d commit 93a12d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ def state(pre,
"n": "EZ-i0d8JZAoTNZH3ULvaU6JR2nmwyYAfSVPzhzS6b5CM",
"bt": "1",
"b": ["DnmwyYAfSVPzhzS6b5CMZ-i0d8JZAoTNZH3ULvaU6JR2"],
"c": ["eo"],
"c": ["EO"],
"ee":
{
"s": "1",
Expand Down Expand Up @@ -1773,8 +1773,8 @@ def reload(self, state):
self.cuts = state.ee.br
self.adds = state.ee.ba
self.estOnly = False
self.doNotDelegate = True if "DND" in state.c else False
self.estOnly = True if "EO" in state.c else False
self.doNotDelegate = True if TraitCodex.DoNotDelegate in state.c else False
self.estOnly = True if TraitCodex.EstOnly in state.c else False
self.lastEst = LastEstLoc(s=int(state.ee.s, 16),
d=state.ee.d)
self.delegator = state.di if state.di else None
Expand Down
2 changes: 1 addition & 1 deletion src/keri/vdr/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def state(pre,
"br": ["Dd8JZAoTNZH3ULvaU6JR2nmwyYAfSVPzhzS6b5CMZ-i0"],
"ba": ["DnmwyYAfSVPzhzS6b5CMZ-i0d8JZAoTNZH3ULvaU6JR2"]
"di": "EYAfSVPzhzS6b5CMaU6JR2nmwyZ-i0d8JZAoTNZH3ULv",
"c": ["eo"],
"c": ["EO"],
}
"""
Expand Down
3 changes: 0 additions & 3 deletions tests/app/test_habbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ def test_habery_reinitialization():
assert opre in hby.db.kevers # read through cache
assert opre in hby.db.prefixes

# hab = habbing.Habitat(name=name, ks=ks, db=db, icount=1, temp=False)
hab = hby.habByName(name)
assert hab.pre == opre
assert hab.prefixes is hab.db.prefixes
Expand Down Expand Up @@ -875,8 +874,6 @@ def test_postman_endsfor():
habbing.openHby(name="wes", salt=coring.Salter(raw=b'wess-the-witness').qb64, temp=True) as wesHby, \
habbing.openHab(name="agent", temp=True) as (agentHby, agentHab):

print()

wesHab = wesHby.makeHab(name='wes', isith="1", icount=1, transferable=False)
assert not wesHab.kever.prefixer.transferable
# create non-local kevery for Wes to process nonlocal msgs
Expand Down
5 changes: 1 addition & 4 deletions tests/core/test_eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ def test_state(mockHelpingNowUTC):
"n": "EZ-i0d8JZAoTNZH3ULvaU6JR2nmwyYAfSVPzhzS6b5CM",
"wt": "1",
"w": ["DnmwyYAfSVPzhzS6b5CMZ-i0d8JZAoTNZH3ULvaU6JR2"],
"c": ["eo"],
"c": ["EO"],
"ee":
{
"s": "1",
Expand Down Expand Up @@ -2215,9 +2215,6 @@ def test_kever(mockHelpingNowUTC):
ondices = kever.exposeds(sigers=sigers)
assert ondices ==[1]




with openDB() as db: # Non-Transferable case
# Setup inception key event dict
# create current key
Expand Down

0 comments on commit 93a12d0

Please sign in to comment.