filecoin-saturn / contracts

contracts
6 stars 0 forks source link

feat: lotus lite node boot script #38

Closed alexander-camuto closed 1 year ago

alexander-camuto commented 1 year ago

Unfortunately glif nodes require a lotus-lite node to interact with some of the multisig capabilities. Here we add a script which makes booting such a node as easy as possible on both linux and macos.

The script:

  1. Checks if lotus is installed
  2. If not then it downloads and installs as required (depending on platform)
  3. It boots the node, pulling in the FULLNODE_API_INFO
  4. Prints the node's PID (can grab this later to kill the process)
  5. Asks the user if they want to import a private key -- and reads it in if yes (secretly)

Example usage:

FULLNODE_API_INFO=wss://wss.node.glif.io/apigw/lotus sh lotus_lite_init.sh

Building on this we should: