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

Adding maymine

parent 5a3e7bab
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
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" )
res=$( geth_exec_js "${BFAHOME}/src/js.maymine" )
if [ "$res" = "true" ]
then
......
......@@ -35,7 +35,7 @@ function miner
{
if [ -e "${BFANODEDIR}/miner" ]
then
echo -- "--miner"
echo "--mine"
fi
}
......@@ -73,6 +73,7 @@ function miner
--txpool.accountqueue 512 \
--txpool.globalqueue 8192 \
--extradata "${BFAEXTRADATA}" \
--gcmode archive \
--cache 512 \
--verbosity 3 &
set +x
......
// vim:syntax:filetype=javascript:ai:sm
// vim:expandtab:backspace=indent,eol,start:softtabstop=4
var signer
signer = (clique.getSigners().indexOf(eth.accounts[0]) > -1)
if (signer) miner.start() else miner.stop()
console.log( signer )
if (signer)
miner.start()
else
miner.stop()
signer
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