Skip to content

Commit b04ed21

Browse files
authored
Merge pull request #138 from GLEIF-IT/fix/dependencies
Fix observing
2 parents 1b7eb0d + 4c59749 commit b04ed21

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/keri/cf/verifier-config-test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"http://127.0.0.1:7723/oobi/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao"
1616
],
1717
"trustedLeis": [],
18-
"revocationCheck": true,
18+
"revocationCheck": false,
1919
"allowedSchemas": [
2020
"ECR_SCHEMA",
2121
"ECR_SCHEMA_PROD"

src/verifier/core/observing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def _mark_as_revocation_check_failed(self, said: str, reason: str):
4242
cur_state: CredProcessState = self.vdb.iss.get(keys=(aid,))
4343
rev_state = CredProcessState(aid=aid, said=said, info=reason, state=OBSERVER_REVOCATION_CHECK_FAILED,
4444
witness_url=cur_state.witness_url)
45-
self.vdb.iss.pin(keys=(aid,), val=rev_state)
45+
if self.vdb.iss.get(keys=(aid,)):
46+
self.vdb.iss.pin(keys=(aid,), val=rev_state)
4647
self.vdb.iss.pin(keys=(said,), val=rev_state)
4748
self.vdb.accts.rem(keys=(aid,))
4849
add_state_to_state_history(self.vdb, aid, rev_state)

0 commit comments

Comments
 (0)