OSDN Git Service

Merge pull request #779 from Bytom/p2p_test
[bytom/bytom.git] / p2p / CHANGELOG.md
1 # Changelog
2
3 ## 0.5.0 (April 21, 2017)
4
5 BREAKING CHANGES: 
6
7 - Remove or unexport methods from FuzzedConnection: Active, Mode, ProbDropRW, ProbDropConn, ProbSleep, MaxDelayMilliseconds, Fuzz
8 - switch.AddPeerWithConnection is unexported and replaced by switch.AddPeer
9 - switch.DialPeerWithAddress takes a bool, setting the peer as persistent or not
10
11 FEATURES:
12
13 - Persistent peers: any peer considered a "seed" will be reconnected to when the connection is dropped
14
15
16 IMPROVEMENTS:
17
18 - Many more tests and comments
19 - Refactor configurations for less dependence on go-config. Introduces new structs PeerConfig, MConnConfig, FuzzConnConfig
20 - New methods on peer: CloseConn, HandshakeTimeout, IsPersistent, Addr, PubKey
21 - NewNetAddress supports a testing mode where the address defaults to 0.0.0.0:0
22
23
24 ## 0.4.0 (March 6, 2017)
25
26 BREAKING CHANGES: 
27
28 - DialSeeds now takes an AddrBook and returns an error: `DialSeeds(*AddrBook, []string) error`
29 - NewNetAddressString now returns an error: `NewNetAddressString(string) (*NetAddress, error)`
30
31 FEATURES:
32
33 - `NewNetAddressStrings([]string) ([]*NetAddress, error)`
34 - `AddrBook.Save()`
35
36 IMPROVEMENTS:
37
38 - PexReactor responsible for starting and stopping the AddrBook
39
40 BUG FIXES:
41
42 - DialSeeds returns an error instead of panicking on bad addresses
43
44 ## 0.3.5 (January 12, 2017)
45
46 FEATURES
47
48 - Toggle strict routability in the AddrBook 
49
50 BUG FIXES
51
52 - Close filtered out connections
53 - Fixes for MakeConnectedSwitches and Connect2Switches
54
55 ## 0.3.4 (August 10, 2016)
56
57 FEATURES:
58
59 - Optionally filter connections by address or public key
60
61 ## 0.3.3 (May 12, 2016)
62
63 FEATURES:
64
65 - FuzzConn
66
67 ## 0.3.2 (March 12, 2016)
68
69 IMPROVEMENTS:
70
71 - Memory optimizations
72
73 ## 0.3.1 ()
74
75 FEATURES: 
76
77 - Configurable parameters
78