-
Notifications
You must be signed in to change notification settings - Fork 513
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
DID updates for endorser #1601
DID updates for endorser #1601
Conversation
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
Codecov Report
@@ Coverage Diff @@
## main #1601 +/- ##
==========================================
- Coverage 95.74% 95.64% -0.11%
==========================================
Files 528 528
Lines 32515 32587 +72
==========================================
+ Hits 31133 31169 +36
- Misses 1382 1418 +36 |
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
@@ -181,6 +224,7 @@ async def register_ledger_nym(request: web.BaseRequest): | |||
request: aiohttp request object | |||
""" | |||
context: AdminRequestContext = request["context"] | |||
outbound_handler = request["outbound_message_router"] | |||
async with context.profile.session() as session: | |||
ledger = session.inject_or(BaseLedger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, it's not updated by this PR, but BaseLedger should be injected via the profile not the session. Generally anything injected by the session shouldn't be touched after the async with block as it might refer to a closed session. This is also true for the IndyLedgerRequestExecutor instances which seem to be set up by the conductor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK thanks for the tip!
Signed-off-by: Ian Costanzo ian@anon-solutions.ca
Adds endorser support to the ledger register_nym function, allowing Authors to self-register a public DID.