Respond to RFCs in PR #2808

pull/2808/head
Kieran R. Prasch 2021-10-29 00:15:18 -07:00
parent 1fe16c6735
commit 47d99a9f62
3 changed files with 4 additions and 4 deletions

View File

@ -392,7 +392,7 @@ class Alice(Character, BlockchainPolicyAuthor):
ursula = self.known_nodes[node_id]
revocation = policy.revocation_kit[node_id]
try:
response = self.network_middleware.revoke_node(ursula, revocation)
response = self.network_middleware.request_revocation(ursula, revocation)
except self.network_middleware.NotFound:
failed[node_id] = (revocation, self.network_middleware.NotFound)
except self.network_middleware.UnexpectedResponse:

View File

@ -203,8 +203,8 @@ class RestMiddleware:
backend=default_backend())
return certificate
def revoke_node(self, ursula, revocation):
# TODO: Implement offchain revocation
def request_revocation(self, ursula, revocation):
# TODO: Implement offchain revocation #2787
response = self.client.post(
node_or_sprout=ursula,
path=f"revoke",

View File

@ -43,7 +43,7 @@ def test_decentralized_grant(blockchain_alice, blockchain_bob, blockchain_ursula
treasure_map = blockchain_bob._decrypt_treasure_map(policy.treasure_map,
policy.publisher_verifying_key)
# The number of actually destinations is exactly equal to shares.
# The number of actual destinations is exactly equal to shares.
assert len(treasure_map.destinations) == shares
# Let's look at the destinations.