mirror of https://github.com/nucypher/nucypher.git
Instead of taking a single Contract, find_ursulas now makes the number of Contracts needed to offer one to each Ursula.
parent
7dd0953fa4
commit
5066cd1ad7
|
@ -292,7 +292,7 @@ class Policy(object):
|
|||
def draw_up_contract(self, deposit, expiration):
|
||||
return Contract(self.alice, self.hrac(), deposit, expiration)
|
||||
|
||||
def find_n_ursulas(self, networky_stuff, contract: Contract):
|
||||
def find_ursulas(self, networky_stuff, deposit, expiration, num_ursulas=None):
|
||||
# TODO: This is a number mismatch - we need not one contract, but n contracts.
|
||||
"""
|
||||
:param networky_stuff: A compliant interface (maybe a Client instance) to be used to engage the DHT swarm.
|
||||
|
|
Loading…
Reference in New Issue