| 154 | } |
| 155 | |
| 156 | ServiceFlags GetDesirableServiceFlags(ServiceFlags services) { |
| 157 | if ((services & NODE_NETWORK_LIMITED) && |
| 158 | g_initial_block_download_completed) { |
| 159 | return ServiceFlags(NODE_NETWORK_LIMITED); |
| 160 | } |
| 161 | return ServiceFlags(NODE_NETWORK); |
| 162 | } |
| 163 | |
| 164 | void SetServiceFlagsIBDCache(bool state) { |
| 165 | g_initial_block_download_completed = state; |
no test coverage detected