Skip to content

Commit

Permalink
fixed cyclic depth
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Mar 24, 2021
1 parent 7ddbe9b commit 93af7e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/handler/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,8 @@ func TestCyclic(t *testing.T) {
pow5 := proofofwork.New(MinimumProofBitsAddress, addr5.Hash().String(), 0)
pow5.WorkMulticore()

MaxRedirectDepth = 5

// Insert some records
insertAddressRecord(*addr4, "../../testdata/key-4.json", fakeRoutingId.String(), pow4, "")
insertAddressRecord(*addr2, "../../testdata/key-2.json", fakeRoutingId.String(), pow2, addr4.Hash().String())
Expand Down

0 comments on commit 93af7e6

Please sign in to comment.