Skip to content

Commit

Permalink
chore: rename miner to sha
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Nov 7, 2023
1 parent 6f3d063 commit c7d4664
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Processes/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ def __init__(self):
pass

def start(self, base_node_grpc_port, wallet_grpc_port, local_ip):
self.name = "miner"
self.name = "sha"
if USE_BINARY_EXECUTABLE:
run = [os.path.join(TARI_BINS_FOLDER, "minotari_miner")]
run = [os.path.join(TARI_BINS_FOLDER, "minotari_sha")]
else:
run = ["cargo", "run", "--bin", "minotari_miner", "--manifest-path", os.path.join("..", "tari", "Cargo.toml"), "--"]
self.exec_template = [
*run,
"-b",
os.path.join(DATA_FOLDER, "miner"),
os.path.join(DATA_FOLDER, "sha"),
"--network",
NETWORK,
"--max-blocks",
Expand All @@ -36,7 +36,7 @@ def mine(self, blocks: int):
self.exec = list(self.exec_template)
self.exec[self.exec.index("#blocks")] = str(blocks)
if REDIRECT_MINER_STDOUT:
self.process = SubprocessWrapper.call(self.exec, stdout=open(os.path.join(DATA_FOLDER, "stdout", "miner.log"), "a+"), stderr=subprocess.STDOUT)
self.process = SubprocessWrapper.call(self.exec, stdout=open(os.path.join(DATA_FOLDER, "stdout", "shamin.log"), "a+"), stderr=subprocess.STDOUT)
else:
self.process = SubprocessWrapper.call(self.exec)

Expand Down
2 changes: 1 addition & 1 deletion docker_rig/dan-testing.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RUN if [ "${TARGETARCH}" = "arm64" ] && [ "${BUILDARCH}" != "${TARGETARCH}" ] ;
# Copy executable out of the cache so it is available in the runtime image.
cp -v /tari/target/${BUILD_TARGET}release/minotari_node /usr/local/bin/ && \
cp -v /tari/target/${BUILD_TARGET}release/minotari_console_wallet /usr/local/bin/ && \
cp -v /tari/target/${BUILD_TARGET}release/minotari_miner /usr/local/bin/ && \
cp -v /tari/target/${BUILD_TARGET}release/minotari_miner /usr/local/bin/minotari_sha && \
echo "Tari Build Done"

RUN mkdir -p "/usr/local/lib/minotari/protos/" && \
Expand Down

0 comments on commit c7d4664

Please sign in to comment.