mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-24 07:25:03 -05:00
increase wp timeout from 3 minutes (2 megabit) to 6 minutes (1 megabit) (#3022)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user