I want to run some tests on monero, but I only want monerod to communicate to peers on my local network. I don't want it download the official blockchain. I want my wallet, which I will run from my local network, to only send transactions to the monerod instance running on my local network. Therefore, the blockchain on my computer will only have transactions from me. Is this possible? I see that you can run monerod in offline mode, but I'm not sure if this does what I want.
Start 2 nodes of a stagenet which only like talking to each other:
monerod --stagenet --no-igd --hide-my-port --data-dir node1 --p2p-bind-ip 127.0.0.1 --p2p-bind-port 48080 --rpc-bind-port 48081 --zmq-rpc-bind-port 48082 --add-exclusive-node 127.0.0.1:38080 monerod --stagenet --no-igd --hide-my-port --data-dir node2 --p2p-bind-ip 127.0.0.1 --rpc-bind-ip 0.0.0.0 --confirm-external-bind --add-exclusive-node 127.0.0.1:48080
Then start cli wallet on the same machine:
and create a wallet. Use your new stagenet address to mine on one of the nodes by typing
start_mining <yourwalletaddress> 1
in the monerod window.
- This also works on windows
- The above statements will create two directories in the working directory named
node2to hold the blockchain.
- The new wallet files will also be in the working directory.