• Steven Allen's avatar
    mocknet: use peer ID in peer address · f4229470
    Steven Allen authored
    RandLocalTCPAddress is mostly useful when we *actually* want to listen on a real
    address. Unfortunately, when running a bunch of tests, we can actually run
    out.
    
    With this change, a collision means we have a duplicate peer ID so yeah...
    
    fixes #473
    f4229470
mock_net.go 8.29 KB