|
18 | 18 |
|
19 | 19 | import static com.swirlds.common.io.utility.FileUtils.getAbsolutePath;
|
20 | 20 | import static com.swirlds.logging.legacy.LogMarker.EXCEPTION;
|
21 |
| -import static com.swirlds.platform.PlatformBuilder.DEFAULT_SETTINGS_FILE_NAME; |
22 |
| -import static com.swirlds.platform.PlatformBuilder.buildPlatformContext; |
| 21 | +import static com.swirlds.platform.builder.PlatformBuildConstants.DEFAULT_CONFIG_FILE_NAME; |
| 22 | +import static com.swirlds.platform.builder.PlatformBuildConstants.DEFAULT_SETTINGS_FILE_NAME; |
| 23 | +import static com.swirlds.platform.builder.PlatformBuilder.buildPlatformContext; |
23 | 24 | import static com.swirlds.platform.system.SystemExitCode.CONFIGURATION_ERROR;
|
24 | 25 | import static com.swirlds.platform.system.SystemExitCode.NODE_ADDRESS_MISMATCH;
|
25 | 26 | import static com.swirlds.platform.system.SystemExitUtils.exitSystem;
|
|
37 | 38 | import com.swirlds.config.extensions.sources.SystemEnvironmentConfigSource;
|
38 | 39 | import com.swirlds.config.extensions.sources.SystemPropertiesConfigSource;
|
39 | 40 | import com.swirlds.platform.CommandLineArgs;
|
40 |
| -import com.swirlds.platform.PlatformBuilder; |
| 41 | +import com.swirlds.platform.builder.PlatformBuilder; |
41 | 42 | import com.swirlds.platform.config.legacy.ConfigurationException;
|
42 | 43 | import com.swirlds.platform.config.legacy.LegacyConfigProperties;
|
43 | 44 | import com.swirlds.platform.config.legacy.LegacyConfigPropertiesLoader;
|
@@ -128,7 +129,7 @@ public static void main(final String... args) throws Exception {
|
128 | 129 |
|
129 | 130 | // Determine which node to run locally
|
130 | 131 | // Load config.txt address book file and parse address book
|
131 |
| - final AddressBook addressBook = loadAddressBook(PlatformBuilder.DEFAULT_CONFIG_FILE_NAME); |
| 132 | + final AddressBook addressBook = loadAddressBook(DEFAULT_CONFIG_FILE_NAME); |
132 | 133 | // parse command line arguments
|
133 | 134 | final CommandLineArgs commandLineArgs = CommandLineArgs.parse(args);
|
134 | 135 |
|
@@ -160,7 +161,7 @@ public static void main(final String... args) throws Exception {
|
160 | 161 | buildPlatformContext(config, getAbsolutePath(DEFAULT_SETTINGS_FILE_NAME), selfId);
|
161 | 162 |
|
162 | 163 | final PlatformBuilder builder =
|
163 |
| - new PlatformBuilder(Hedera.APP_NAME, Hedera.SWIRLD_NAME, version, hedera::newState, selfId); |
| 164 | + PlatformBuilder.create(Hedera.APP_NAME, Hedera.SWIRLD_NAME, version, hedera::newState, selfId); |
164 | 165 |
|
165 | 166 | builder.withPreviousSoftwareVersionClassId(0x6f2b1bc2df8cbd0bL /* SerializableSemVers.CLASS_ID */);
|
166 | 167 | builder.withPlatformContext(platformContext);
|
|
0 commit comments