Skip to content

Commit

Permalink
Remove unused ba and br in RegStateRecord state fn (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentbull authored Feb 4, 2024
1 parent 708254f commit ca41fdc
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/keri/vdr/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ def state(pre,
sn,
ri,
eilk,
br,
ba,
dts=None, # default current datetime
toad=None, # default based on wits
wits=None, # default to []
Expand All @@ -436,8 +434,6 @@ def state(pre,
said (str): digest of latest event
ri (str): qb64 AID of credential registry
eilk (str): message type (ilk) oflatest event
br (list): witness remove list (cuts)
ba (list): witness add list (adds)
a (dict): key event anchored seal data
dts (str) ISO 8601 formated current datetime
toad (int): int of witness threshold
Expand All @@ -464,8 +460,6 @@ def state(pre,
"n": "EZ-i0d8JZAoTNZH3ULvaU6JR2nmwyYAfSVPzhzS6b5CM",
"bt": "1",
"b": ["DnmwyYAfSVPzhzS6b5CMZ-i0d8JZAoTNZH3ULvaU6JR2"],
"br": ["Dd8JZAoTNZH3ULvaU6JR2nmwyYAfSVPzhzS6b5CMZ-i0"],
"ba": ["DnmwyYAfSVPzhzS6b5CMZ-i0d8JZAoTNZH3ULvaU6JR2"]
"di": "EYAfSVPzhzS6b5CMaU6JR2nmwyZ-i0d8JZAoTNZH3ULv",
"c": ["EO"],
}
Expand Down Expand Up @@ -504,14 +498,6 @@ def state(pre,

cnfg = cnfg if cnfg is not None else []

if len(oset(br)) != len(br): # duplicates in cuts
raise ValueError("Invalid cuts = {} in latest est event, has duplicates"
".".format(br))

if len(oset(ba)) != len(ba): # duplicates in adds
raise ValueError("Invalid adds = {} in latest est event, has duplicates"
".".format(ba))

rsr = viring.RegStateRecord(
vn=list(version), # version number as list [major, minor]
i=ri, # qb64 registry SAID
Expand Down Expand Up @@ -797,8 +783,6 @@ def state(self): #state(self, kind=Serials.json)
"""
br = self.cuts
ba = self.adds

cnfg = []
if self.noBackers:
Expand All @@ -819,8 +803,6 @@ def state(self): #state(self, kind=Serials.json)
#a=dict(s=seqner.sn, d=diger.qb64),
toad=self.toad,
wits=self.baks,
br=br,
ba=ba,
cnfg=cnfg,
#kind=kind
)
Expand Down

0 comments on commit ca41fdc

Please sign in to comment.