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

Remove unused ba and br in RegStateRecord state fn #669

Merged
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
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
Loading