Skip to content

Commit

Permalink
Update Coin.c
Browse files Browse the repository at this point in the history
Chmod privileges evoked so that dependcies and libraries are automatically installed….

Signed-off-by: Josef Edwards <joed6834@colorado.edu>
  • Loading branch information
bearycool11 authored Nov 27, 2024
1 parent 84b59b2 commit 4cd0eed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Coin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cd0eed

Please sign in to comment.