ledgerloops / strategy-pit

Testing ground for LedgerLoop strategies
Apache License 2.0
0 stars 0 forks source link

Loops found many times in hourglass #19

Closed michielbdejong closed 3 months ago

michielbdejong commented 3 months ago

Bob reports finding a loop for genRanHex2:genRanHex11 many times: https://github.com/ledgerloops/strategy-pit/blob/a7988cd3d401d10942ed3ea45a68c7cc91f96ca3/__tests__/fixtures/batched-giraffe-hourglass.json#L7606-L7936

michielbdejong commented 3 months ago

Bob is the top of the kite Charlie is the fork Alice is participating Dave and Edward should stay out of it

issue-19 (2)

blue lines are probe genRanHex2 green line is trace genRanHex2 genRanHex11 genRanHex12 which correctly ends at Charlie, waiting for the other leg.

black lines are trace genRanHex2 genRanHex11 genRanHex13 which ends up getting copied endlessly.

michielbdejong commented 3 months ago

It's correct for Dave and Edward to forward the trace, but then Alice should see it coming in from Dave, recognise it as a leg she already forwarded (to both Charlie and Edward), and ignore it.