Skip to content
Snippets Groups Projects
Commit 5a3e7bab authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Set our mining state according to what the chain says is allowed

parent e8165c45
No related branches found
No related tags found
No related merge requests found
var signer
signer = (clique.getSigners().indexOf(eth.accounts[0]) > -1)
if (signer) miner.start() else miner.stop()
console.log( signer )
#!/bin/bash
# Robert Martin-Legene <robert@nic.ar>
if [ -z "${BFAHOME}" ]; then echo "\$BFAHOME not set. Did you source bfa/bin/env ?" >&2; exit 1; fi
source ${BFAHOME}/bin/libbfa.sh || exit 1
res=$( geth_execjs "${BFAHOME}/bin/maymine.js" )
if [ "$res" = "true" ]
then
touch ${BFANODEDIR}/miner
else
rm -f ${BFANODEDIR}/miner
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment