increase wp timeout from 3 minutes (2 megabit) to 6 minutes (1 megabit) (#3022)

This commit is contained in:
wjblanke
2021-04-28 10:51:18 -07:00
committed by GitHub
parent 2d4159d0b6
commit ec48e968a9
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ class FullNode:
if self.blockchain.get_peak() is not None and heaviest_peak_weight <= self.blockchain.get_peak().weight:
raise ValueError("Not performing sync, already caught up.")
wp_timeout = 180
wp_timeout = 360
if "weight_proof_timeout" in self.config:
wp_timeout = self.config["weight_proof_timeout"]
self.log.debug(f"weight proof timeout is {wp_timeout} sec")
+1 -1
View File
@@ -273,7 +273,7 @@ full_node:
# Default is set to False, as the network needs only one or two blueboxes like this.
sanitize_weight_proof_only: False
# timeout for weight proof request
weight_proof_timeout: 180
weight_proof_timeout: 360
farmer_peer:
host: *self_hostname
+1 -1
View File
@@ -443,7 +443,7 @@ class WalletNode:
return
weight_request = RequestProofOfWeight(header_block.height, header_block.header_hash)
weight_proof_response: RespondProofOfWeight = await peer.request_proof_of_weight(
weight_request, timeout=180
weight_request, timeout=360
)
if weight_proof_response is None:
return