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

Update query cues to use hex string instead of int for sequence number. #659

Merged
merged 1 commit into from
Jan 16, 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
2 changes: 1 addition & 1 deletion src/keri/app/querying.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, hby, hab, pre, sn, **opts):
self.pre = pre
self.sn = sn
self.witq = agenting.WitnessInquisitor(hby=self.hby)
self.witq.query(src=self.hab.pre, pre=self.pre, sn=self.sn)
self.witq.query(src=self.hab.pre, pre=self.pre, sn="{:x}".format(self.sn))
super(SeqNoQuerier, self).__init__(doers=[self.witq], **opts)

def recur(self, tyme, deeds=None):
Expand Down
2 changes: 1 addition & 1 deletion src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ def valSigsDelWigs(self, serder, sigers, verfers, tholder,
if self.escrowPWEvent(serder=serder, wigers=wigers, sigers=sigers,
seqner=delseqner, saider=delsaider):
# cue to query for witness receipts
self.cues.push(dict(kin="query", q=dict(pre=serder.pre, sn=serder.sn)))
self.cues.push(dict(kin="query", q=dict(pre=serder.pre, sn=serder.snh)))
raise MissingWitnessSignatureError(f"Failure satisfying toad={toader.num} "
f"on witness sigs="
f"{[siger.qb64 for siger in wigers]} "
Expand Down
4 changes: 2 additions & 2 deletions src/keri/peer/exchanging.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def processEvent(self, serder, tsgs=None, cigars=None, **kwargs):

if prefixer.qb64 not in self.kevers or self.kevers[prefixer.qb64].sn < seqner.sn:
if self.escrowPSEvent(serder=serder, tsgs=tsgs, pathed=pathed):
self.cues.append(dict(kin="query", q=dict(r="logs", pre=prefixer.qb64, sn=seqner.sn)))
self.cues.append(dict(kin="query", q=dict(r="logs", pre=prefixer.qb64, sn=seqner.snh)))
raise MissingSignatureError(f"Unable to find sender {prefixer.qb64} in kevers"
f" for evt = {serder.ked}.")

Expand All @@ -91,7 +91,7 @@ def processEvent(self, serder, tsgs=None, cigars=None, **kwargs):

if not tholder.satisfy(indices): # We still don't have all the sigers, need to escrow
if self.escrowPSEvent(serder=serder, tsgs=tsgs, pathed=pathed):
self.cues.append(dict(kin="query", q=dict(r="logs", pre=prefixer.qb64, sn=seqner.sn)))
self.cues.append(dict(kin="query", q=dict(r="logs", pre=prefixer.qb64, sn=seqner.snh)))
raise MissingSignatureError(f"Not enough signatures in {indices}"
f" for evt = {serder.ked}.")

Expand Down
Loading