TestP2PConfig returns a configuration for testing the peer-to-peer layer
()
| 624 | |
| 625 | // TestP2PConfig returns a configuration for testing the peer-to-peer layer |
| 626 | func TestP2PConfig() *P2PConfig { |
| 627 | cfg := DefaultP2PConfig() |
| 628 | cfg.ListenAddress = "tcp://127.0.0.1:36656" |
| 629 | cfg.FlushThrottleTimeout = 10 * time.Millisecond |
| 630 | cfg.AllowDuplicateIP = true |
| 631 | return cfg |
| 632 | } |
| 633 | |
| 634 | // AddrBookFile returns the full path to the address book |
| 635 | func (cfg *P2PConfig) AddrBookFile() string { |
no test coverage detected