dont error out if we get a path we dont recognize from farmer broadcast

This commit is contained in:
Bill Blanke
2020-08-18 10:59:45 -07:00
committed by Gene Hoffman
parent b0c5d3163a
commit 9e46f68c70
+6 -1
View File
@@ -330,7 +330,12 @@ class Harvester:
A signature is created on the header hash using the harvester private key. This can also
be used for pooling.
"""
plot_info = self.provers[Path(request.plot_id).resolve()]
plot_info = None
try:
plot_info = self.provers[Path(request.plot_id).resolve()]
except KeyError:
log.warning(f"KeyError plot {request.plot_id} does not exist.")
return
local_sk = plot_info.local_sk
agg_pk = ProofOfSpace.generate_plot_public_key(