Giter Site home page Giter Site logo

mina-utils's Introduction

We also run The Mina Pool - https://theminapool.com

** THIS REPO IS DEPRECATED **
** SEE https://github.com/jrwashburn/mina-node-install **

mina-utils

Mina protocol hosting utilities

mina-archive.service

systemd config file to run mina archive service. copy this file to /usr/lib/systemd/user/mina-archive.service uses same environment file as coda daemon (~/.mina-env) See also: https://minaprotocol.com/docs/archive-node

* Assumes POSTGRES_URI variable will be found in .mina-env - that should be your full URI to login to the postgres database. 
Note this is unsafe w/r/t that database username and password laying around in config, but even worse, being available in a process list. 
That's how it works for right now.
	
	postgres://USERNAME:PASSWORD@POSTGRESHOST:POSTGRESPORT/archive"

* Also assumes you have setup the archive service
	
	sudo apt-get install mina-archive
	createdb -h postgres://USERNAME:PASSWORD@POSTGRESHOST -p POSTGRESPORT -e archive
	psql -h postgres://USERNAME:PASSWORD@POSTGRESHOST -p POSTGRESPORT -d archive -f <(curl -Ls https://raw.githubusercontent.com/MinaProtocol/mina/master/src/app/archive/create_schema.sql)
	coda-archive run --postgres-uri postgres://USERNAME:PASSWORD@POSTGRESHOST:POSTGRESPORT/archive --server-port 3086 &

* You may also need to make network changes to allow your node to connect to the archive service on port 3086

	sudo ufw allow from NODEIP to any port 3086

snark-stopper.sh

checks mina status to determine when the next block producer opportunity is; turns off snark worker ~5 mins before the slot, resumes after 5 mins. Will set a random snark work fee between 1 and .001 (controlled with MAX_FEE / FEE_SCALE variables)

* Make sure to update the SW_ADDRESS to your snark worker address!

status-watchdog.sh

checks mina status every 5 minutes, if node is Offline, checks latest peers from test world source (should be updated when network peers location changes) and adds new peers if any. If node stays Offline > 20m, or Connecting > 10m, will restart daemon.

* assumes running under systemd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.