File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 7272from chia .types .peer_info import PeerInfo
7373from chia .util .batches import to_batches
7474from chia .util .db_wrapper import SQLITE_MAX_VARIABLE_NUMBER
75+ from chia .util .errors import Err , ValidationError
7576from chia .util .hash import std_hash
7677from chia .util .limited_semaphore import LimitedSemaphoreFullError
7778from chia .util .task_referencer import create_referenced_task
@@ -1133,6 +1134,12 @@ async def signed_values(
11331134 try :
11341135 await self .full_node .add_unfinished_block (new_candidate , None , True )
11351136 except Exception as e :
1137+ if isinstance (e , ValidationError ) and e .code == Err .NO_OVERFLOWS_IN_FIRST_SUB_SLOT_NEW_EPOCH :
1138+ self .full_node .log .info (
1139+ f"Failed to farm block { e } . Consensus rules prevent this block from being farmed. Not retrying"
1140+ )
1141+ return None
1142+
11361143 # If we have an error with this block, try making an empty block
11371144 self .full_node .log .error (f"Error farming block { e } { new_candidate } " )
11381145 candidate_tuple = self .full_node .full_node_store .get_candidate_block (
You can’t perform that action at this time.
0 commit comments