1. 13 Jan, 2015 2 commits
    • Juan Batiz-Benet's avatar
      p2p/net/swarm: fix connect self problems · 4d877044
      Juan Batiz-Benet authored
      This adds two checks after a successful conn.Dial
      * if the remote peer is not who we wanted, close conn
      * if the remove peer is outselves, close conn
      
      (the second is redundant, but the codebase may evolve to
      end up disabling the first check, so keeping the second
      in place helps)
      
      note:
      Loopback addresses are actually sent out (they _have to be_,
      in cases where there are >1 node in the same machine), so
      many times when trying connections, nodes end up dialing
      themselves.
      4d877044
    • Juan Batiz-Benet's avatar
      63145110
  2. 12 Jan, 2015 1 commit
  3. 11 Jan, 2015 4 commits
  4. 10 Jan, 2015 1 commit
    • Brian Tiger Chow's avatar
      test: benchmark Sign and Verify operations · 2f19d9fb
      Brian Tiger Chow authored
      BenchmarkSign1B             1000           2406924 ns/op
      BenchmarkSign10B            1000           2360527 ns/op
      BenchmarkSign100B           1000           2354136 ns/op
      BenchmarkSign1000B           500           2361775 ns/op
      BenchmarkSign10000B          500           2415993 ns/op
      BenchmarkSign100000B         500           2718051 ns/op
      BenchmarkVerify1B          30000             52117 ns/op
      BenchmarkVerify10B         30000             50968 ns/op
      BenchmarkVerify100B        30000             51037 ns/op
      BenchmarkVerify1000B       30000             56768 ns/op
      BenchmarkVerify10000B      10000            105744 ns/op
      BenchmarkVerify100000B      2000            628530 ns/op
      2f19d9fb
  5. 09 Jan, 2015 2 commits
  6. 08 Jan, 2015 2 commits
  7. 05 Jan, 2015 4 commits
  8. 02 Jan, 2015 13 commits