From e462af2717a9a04e42a9a878d333fb236db0ef92 Mon Sep 17 00:00:00 2001 From: lenkan Date: Tue, 30 Apr 2024 16:44:30 +0200 Subject: [PATCH] fix: multisig join operatoin never resolves --- src/keria/app/grouping.py | 2 +- tests/app/test_grouping.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keria/app/grouping.py b/src/keria/app/grouping.py index 0d61df22..3b7ae821 100644 --- a/src/keria/app/grouping.py +++ b/src/keria/app/grouping.py @@ -141,7 +141,7 @@ def on_post(req, rep, name): serder = serdering.SerderKERI(sad=rot) agent.groups.append(dict(pre=hab.pre, serder=serder, sigers=sigers, smids=smids, rmids=rmids)) - op = agent.monitor.submit(serder.pre, longrunning.OpTypes.group, metadata=dict(sn=0)) + op = agent.monitor.submit(serder.pre, longrunning.OpTypes.group, metadata=dict(sn=serder.sn)) rep.content_type = "application/json" rep.status = falcon.HTTP_202 diff --git a/tests/app/test_grouping.py b/tests/app/test_grouping.py index 532aff25..3849d500 100644 --- a/tests/app/test_grouping.py +++ b/tests/app/test_grouping.py @@ -294,7 +294,7 @@ def make(self, serder, sigers): assert res.status_code == 202 assert res.json == {'done': False, 'error': None, - 'metadata': {'sn': 0}, + 'metadata': {'sn': 3}, 'name': 'group.EDWg3-rB5FTpcckaYdBcexGmbLIO6AvAwjaJTBlXUn_I', 'response': None}