MattCoin node and miner
=======================

This runs a full MattCoin node on your computer. It downloads and checks the
whole blockchain itself, connects to the network at node.mattcrypto.org
automatically, and can mine with your CPU (usually faster than mining in a
browser tab, because it uses several cores).

You need Python 3.10 or newer: https://www.python.org/downloads/

Rewards go to the address you give with --miner-address. Use the address of
your wallet at https://wallet.mattcrypto.org so mined coins show up there.
Without it, the node makes a wallet file on this computer instead.


Mac or Linux (Terminal)
-----------------------

    cd mattcoin-node
    python3 -m venv .venv
    .venv/bin/pip install -r requirements.txt
    ./mattcoin.sh node --mine --miner-address YOUR_ADDRESS


Windows (PowerShell)
--------------------

    cd mattcoin-node
    py -m venv .venv
    .venv\Scripts\pip install -r requirements.txt
    .venv\Scripts\python -m mattcoin node --mine --miner-address YOUR_ADDRESS


Useful options
--------------

    --threads 4      how many CPU threads to mine with (default: half your cores)
    --memo "hi"      a short message stored in every block you mine

Stop with Ctrl+C. Your copy of the chain is kept in ~/.mattcoin (on Windows,
in .mattcoin inside your user folder), so the next start only downloads new
blocks. Mined coins can be spent once 10 more blocks are on top of them.
