Files
ethereum-rpc-docker/mantle/generate-node-key
2024-03-17 17:08:08 +01:00

6 lines
169 B
Bash

#!/bin/bash
if [ -f /config/p2p_node_key_txt ]; then exit 0; fi;
cast w n | grep -i 'Private Key' | awk -F ': ' '{print $2}' | sed 's/0x//' > /config/p2p_node_key_txt