Skip to content

Commit

Permalink
update zero state with the latest config version; adjust FIFTPATH acc…
Browse files Browse the repository at this point in the history
…ording to the new rules for windows
  • Loading branch information
neodiX committed Jun 14, 2024
1 parent f95c183 commit c959f54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.SystemUtils;
import org.ton.java.utils.Utils;
import org.ton.settings.Node;

import java.io.File;
Expand All @@ -28,7 +29,11 @@ public String execute(Node node, String... command) {

ProcessBuilder pb = new ProcessBuilder(withBinaryCommand).redirectErrorStream(true);
Map<String, String> env = pb.environment();
env.put("FIFTPATH", node.getTonBinDir() + "lib" + ":" + node.getTonBinDir() + "smartcont");
if ((Utils.getOS() == Utils.OS.WINDOWS) || (Utils.getOS() == Utils.OS.WINDOWS_ARM)) {
env.put("FIFTPATH", node.getTonBinDir() + "lib" + "@" + node.getTonBinDir() + "smartcont");
} else {
env.put("FIFTPATH", node.getTonBinDir() + "lib" + ":" + node.getTonBinDir() + "smartcont");
}
pb.directory(new File(node.getTonBinDir() + "zerostate" + File.separator));
Process p = pb.start();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Masterchain swap
*
*/
// version capabilities
1 capCreateStats capBounceMsgBody or capReportVersion or capShortDequeue or config.version!
8 capCreateStats capBounceMsgBody or capReportVersion or capShortDequeue or config.version!
// max-validators max-main-validators min-validators
MAX_VALIDATORS MAX_MAIN_VALIDATORS MIN_VALIDATORS config.validator_num!
// min-stake max-stake min-total-stake max-factor
Expand Down

0 comments on commit c959f54

Please sign in to comment.