Skip to content

Commit 8e3f9db

Browse files
authored
only forward 4 most recent cached SPs (#16879)
1 parent 3c91881 commit 8e3f9db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chia/full_node/full_node_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ def new_peak(
830830
if eos_op is not None:
831831
self.recent_eos.put(eos_op.challenge_chain.get_hash(), (eos_op, time.time()))
832832

833-
return FullNodeStorePeakResult(new_eos, new_sps, new_ips)
833+
# Only forward the last 4 SPs that we have cached, as others will be too old
834+
return FullNodeStorePeakResult(new_eos, sorted(new_sps)[-4:], new_ips)
834835

835836
def get_finished_sub_slots(
836837
self,

0 commit comments

Comments
 (0)