Skip to content

Commit 9179353

Browse files
authored
fixed head and upped test timeouts (#8639)
* fixed head and upped test timeouts * upped test timeouts
1 parent 4fddb5c commit 9179353

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

chia/full_node/full_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def sql_trace_callback(req: str):
175175
peak: Optional[BlockRecord] = self.blockchain.get_peak()
176176
if peak is not None:
177177
full_peak = await self.blockchain.get_full_peak()
178-
await self.peak_post_processing(full_peak, peak, max(peak.height - 1, 0), None, [])
178+
await self.peak_post_processing(full_peak, peak, max(peak.height - 1, 0), None, ([], {}))
179179
if self.config["send_uncompact_interval"] != 0:
180180
sanitize_weight_proof_only = False
181181
if "sanitize_weight_proof_only" in self.config:
@@ -995,7 +995,7 @@ async def _finish_sync(self):
995995

996996
peak_fb: FullBlock = await self.blockchain.get_full_peak()
997997
if peak is not None:
998-
await self.peak_post_processing(peak_fb, peak, max(peak.height - 1, 0), None, [])
998+
await self.peak_post_processing(peak_fb, peak, max(peak.height - 1, 0), None, ([], {}))
999999

10001000
if peak is not None and self.weight_proof_handler is not None:
10011001
await self.weight_proof_handler.get_proof_of_weight(peak.header_hash)

tests/core/full_node/test_mempool.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ def test_duplicate_large_integer_ladder(self, opcode):
20062006
[ConditionWithArgs(opcode, [int_to_bytes(28)])],
20072007
)
20082008
]
2009-
assert run_time < 1
2009+
assert run_time < 1.5
20102010
print(f"run time:{run_time}")
20112011

20122012
@pytest.mark.parametrize(
@@ -2031,7 +2031,7 @@ def test_duplicate_large_integer(self, opcode):
20312031
[ConditionWithArgs(opcode, [bytes([100])])],
20322032
)
20332033
]
2034-
assert run_time < 2
2034+
assert run_time < 2.5
20352035
print(f"run time:{run_time}")
20362036

20372037
@pytest.mark.parametrize(
@@ -2130,7 +2130,7 @@ def test_duplicate_reserve_fee_negative(self):
21302130
# amount
21312131
assert npc_result.error == Err.RESERVE_FEE_CONDITION_FAILED.value
21322132
assert len(npc_result.npc_list) == 0
2133-
assert run_time < 1
2133+
assert run_time < 1.5
21342134
print(f"run time:{run_time}")
21352135

21362136
@pytest.mark.parametrize(
@@ -2146,7 +2146,7 @@ def test_duplicate_coin_announces(self, opcode):
21462146
# coin announcements are not propagated to python, but validated in rust
21472147
assert len(npc_result.npc_list[0].conditions) == 0
21482148
# TODO: optimize clvm to make this run in < 1 second
2149-
assert run_time < 13
2149+
assert run_time < 13.5
21502150
print(f"run time:{run_time}")
21512151

21522152
def test_create_coin_duplicates(self):

0 commit comments

Comments
 (0)