DefaultStateSyncConfig returns a default configuration for the state sync service
()
| 816 | |
| 817 | // DefaultStateSyncConfig returns a default configuration for the state sync service |
| 818 | func DefaultStateSyncConfig() *StateSyncConfig { |
| 819 | return &StateSyncConfig{ |
| 820 | TrustPeriod: 168 * time.Hour, |
| 821 | DiscoveryTime: 15 * time.Second, |
| 822 | ChunkRequestTimeout: 10 * time.Second, |
| 823 | ChunkFetchers: 4, |
| 824 | } |
| 825 | } |
| 826 | |
| 827 | // TestFastSyncConfig returns a default configuration for the state sync service |
| 828 | func TestStateSyncConfig() *StateSyncConfig { |
no outgoing calls