From ab63526e4756e22839532069391efb99692dfb64 Mon Sep 17 00:00:00 2001 From: cryptaxe Date: Fri, 10 Jan 2025 13:12:36 -0800 Subject: [PATCH] Update enforcer version number --- cusf_launcher/script/main_window.gd | 6 +++--- cusf_launcher/script/resource_downloader.gd | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cusf_launcher/script/main_window.gd b/cusf_launcher/script/main_window.gd index e937fbc..2eb1508 100644 --- a/cusf_launcher/script/main_window.gd +++ b/cusf_launcher/script/main_window.gd @@ -375,11 +375,11 @@ func start_l1() -> void: var enforcer_bin_path : String = "" match OS.get_name(): "Linux": - enforcer_bin_path = str(downloads_dir, "/bip300301-enforcer-latest-x86_64-unknown-linux-gnu/bip300301_enforcer-0.1.2-x86_64-unknown-linux-gnu") + enforcer_bin_path = str(downloads_dir, "/bip300301-enforcer-latest-x86_64-unknown-linux-gnu/bip300301_enforcer-0.1.4-x86_64-unknown-linux-gnu") "Windows": - enforcer_bin_path = str(downloads_dir, "/bip300301-enforcer-latest-x86_64-pc-windows-gnu.exe/bip300301_enforcer-0.1.2-x86_64-pc-windows-gnu.exe") + enforcer_bin_path = str(downloads_dir, "/bip300301-enforcer-latest-x86_64-pc-windows-gnu.exe/bip300301_enforcer-0.1.4-x86_64-pc-windows-gnu.exe") "macOS": - enforcer_bin_path = str(downloads_dir, "/bip300301-enforcer-latest-x86_64-apple-darwin/bip300301_enforcer-0.1.2-x86_64-apple-darwin") + enforcer_bin_path = str(downloads_dir, "/bip300301-enforcer-latest-x86_64-apple-darwin/bip300301_enforcer-0.1.4-x86_64-apple-darwin") # Start bip300-301 enforcer ret = OS.create_process(enforcer_bin_path, ["--node-rpc-addr=localhost:38332", "--node-rpc-user=user", "--node-rpc-pass=password", "--node-zmq-addr-sequence=tcp://localhost:29000", "--enable-wallet"]) diff --git a/cusf_launcher/script/resource_downloader.gd b/cusf_launcher/script/resource_downloader.gd index eede4af..0ba6d20 100644 --- a/cusf_launcher/script/resource_downloader.gd +++ b/cusf_launcher/script/resource_downloader.gd @@ -189,15 +189,15 @@ func have_grpcurl() -> bool: func have_enforcer() -> bool: match OS.get_name(): "Linux": - if !FileAccess.file_exists("user://downloads/l1/bip300301-enforcer-latest-x86_64-unknown-linux-gnu/bip300301_enforcer-0.1.2-x86_64-unknown-linux-gnu"): + if !FileAccess.file_exists("user://downloads/l1/bip300301-enforcer-latest-x86_64-unknown-linux-gnu/bip300301_enforcer-0.1.4-x86_64-unknown-linux-gnu"): return false "Windows": # TODO the folder name has .exe which is probably an accident. # Maybe an issue with the github actions? - if !FileAccess.file_exists("user://downloads/l1/bip300301-enforcer-latest-x86_64-pc-windows-gnu.exe/bip300301_enforcer-0.1.2-x86_64-pc-windows-gnu.exe"): + if !FileAccess.file_exists("user://downloads/l1/bip300301-enforcer-latest-x86_64-pc-windows-gnu.exe/bip300301_enforcer-0.1.4-x86_64-pc-windows-gnu.exe"): return false "macOS": - if !FileAccess.file_exists("user://downloads/l1/bip300301-enforcer-latest-x86_64-apple-darwin/bip300301_enforcer-0.1.2-x86_64-apple-darwin"): + if !FileAccess.file_exists("user://downloads/l1/bip300301-enforcer-latest-x86_64-apple-darwin/bip300301_enforcer-0.1.4-x86_64-apple-darwin"): return false resource_enforcer_ready.emit() @@ -383,7 +383,7 @@ func extract_enforcer() -> void: # Make executable for linux if OS.get_name() == "Linux": - ret = OS.execute("chmod", ["+x", str(downloads_dir, "/bip300301-enforcer-latest-x86_64-unknown-linux-gnu/bip300301_enforcer-0.1.2-x86_64-unknown-linux-gnu")]) + ret = OS.execute("chmod", ["+x", str(downloads_dir, "/bip300301-enforcer-latest-x86_64-unknown-linux-gnu/bip300301_enforcer-0.1.4-x86_64-unknown-linux-gnu")]) if ret != OK: printerr("Failed to mark enforcer executable") return @@ -391,7 +391,7 @@ func extract_enforcer() -> void: resource_enforcer_ready.emit() if OS.get_name() == "macOS": - ret = OS.execute("chmod", ["+x", str(downloads_dir, "/bip300301-enforcer-latest-x86_64-apple-darwin/bip300301_enforcer-0.1.2-x86_64-apple-darwin")]) + ret = OS.execute("chmod", ["+x", str(downloads_dir, "/bip300301-enforcer-latest-x86_64-apple-darwin/bip300301_enforcer-0.1.4-x86_64-apple-darwin")]) if ret != OK: printerr("Failed to mark enforcer executable") return