From 4cd0eed54a310d2cb0985835669ce3076547070f Mon Sep 17 00:00:00 2001 From: Josef Edwards Date: Tue, 26 Nov 2024 23:59:45 -0500 Subject: [PATCH] Update Coin.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chmod privileges evoked so that dependcies and libraries are automatically installed…. Signed-off-by: Josef Edwards --- Coin.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Coin.c b/Coin.c index 6598fc3..68c7963 100644 --- a/Coin.c +++ b/Coin.c @@ -61,7 +61,13 @@ void install_dependencies() { printf("Installing Bitcoin and blockchain dependencies...\n"); execute_secure_command("apt-get update"); execute_secure_command("apt-get install -y libssl-dev libcrypto++-dev libboost-all-dev"); - printf("Dependencies installed successfully.\n"); + + // Ensure scripts and binaries are executable + execute_secure_command("chmod +x ./create_transaction"); + execute_secure_command("chmod +x ./sign_transaction"); + execute_secure_command("chmod +x ./broadcast_transaction"); + + printf("Dependencies installed and permissions set successfully.\n"); } // Execute secure system commands