Skip to content

Commit 66f07f8

Browse files
committed
6s->60s ANR; reversed root/temporal in peer fetch
1 parent 35a3f6f commit 66f07f8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ex/lib/consensus/fabric_sync_attest_gen.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ defmodule FabricSyncAttestGen do
131131
rooted = Fabric.rooted_tip_entry()
132132
rooted_height = rooted.header_unpacked.height
133133

134-
{height_abs, height_rooted_abs, height_bft} = NodeANR.highest_validator_height()
134+
{height_rooted_abs, height_abs, height_bft} = NodeANR.highest_validator_height()
135135

136136
old_highest_abs = highestTemporalHeight()
137137
new_highest_abs = max(temporal_height, height_abs)

ex/lib/node/node_state.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ defmodule NodeState do
1515
def handle(:new_phone_who_dis_reply, istate, term) do
1616
anr = NodeANR.verify_and_unpack(term.anr)
1717

18-
#signed within 6 seconds
18+
#signed within 60 seconds
1919
ts = :os.system_time(1)
20-
fresh6s = abs(ts - term.anr.ts) <= 6
20+
fresh6s = abs(ts - term.anr.ts) <= 60
2121

2222
if !!anr and istate.peer.ip4 == anr.ip4 and fresh6s do
2323
send(NodeGen, {:handle_sync, :new_phone_who_dis_reply_ns, istate, %{pk: anr.pk, anr: anr}})

0 commit comments

Comments
 (0)