BREAKING CHANGES:
- Remove or unexport methods from FuzzedConnection: Active, Mode, ProbDropRW, ProbDropConn, ProbSleep, MaxDelayMilliseconds, Fuzz
- switch.AddPeerWithConnection is unexported and replaced by switch.AddPeer
- switch.DialPeerWithAddress takes a bool, setting the peer as persistent or not
FEATURES:
- Persistent peers: any peer considered a "seed" will be reconnected to when the connection is dropped
IMPROVEMENTS:
- Many more tests and comments
- Refactor configurations for less dependence on go-config. Introduces new structs PeerConfig, MConnConfig, FuzzConnConfig
- New methods on peer: CloseConn, HandshakeTimeout, IsPersistent, Addr, PubKey
- NewNetAddress supports a testing mode where the address defaults to 0.0.0.0:0
BREAKING CHANGES:
- DialSeeds now takes an AddrBook and returns an error:
DialSeeds(*AddrBook, []string) error
- NewNetAddressString now returns an error:
NewNetAddressString(string) (*NetAddress, error)
FEATURES:
NewNetAddressStrings([]string) ([]*NetAddress, error)
AddrBook.Save()
IMPROVEMENTS:
- PexReactor responsible for starting and stopping the AddrBook
BUG FIXES:
- DialSeeds returns an error instead of panicking on bad addresses
FEATURES
- Toggle strict routability in the AddrBook
BUG FIXES
- Close filtered out connections
- Fixes for MakeConnectedSwitches and Connect2Switches
FEATURES:
- Optionally filter connections by address or public key
FEATURES:
- FuzzConn
IMPROVEMENTS:
- Memory optimizations
FEATURES:
- Configurable parameters