mirror of https://github.com/nucypher/nucypher.git
Special error for the scenario in which we have already contacted *too many* Ursulas.
parent
5ba1435c21
commit
ef4cf13dc6
|
@ -209,6 +209,12 @@ class Policy(object):
|
||||||
|
|
||||||
self._encrypted_challenge_pack = encrypted_challenge_pack
|
self._encrypted_challenge_pack = encrypted_challenge_pack
|
||||||
|
|
||||||
|
class MoreContractsThanKFrags(TypeError):
|
||||||
|
"""
|
||||||
|
Raised when a Policy has been used to generate Contracts with Ursulas in sufficient number
|
||||||
|
such that we don't have enough KFrags to give to each Ursula.
|
||||||
|
"""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def n(self):
|
def n(self):
|
||||||
return len(self.kfrags)
|
return len(self.kfrags)
|
||||||
|
|
Loading…
Reference in New Issue