zack-bitcoin / amoveo-mining-pool Goto Github PK
View Code? Open in Web Editor NEWmining pool software for amoveo
mining pool software for amoveo
log is Node is not running after sh start.sh
➜ amoveo-mining-pool git:(master) ✗ sh attach.sh
Node is not running!
➜ amoveo-mining-pool git:(master) ✗ sh start.sh
===> Verifying dependencies...
===> Compiling amoveo_mining_pool
===> Verifying dependencies...
===> Compiling amoveo_mining_pool
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
/Users/liubc/Documents/amoveo-mining-pool/_build/prod/lib
/Users/liubc/Documents/amoveo-mining-pool/apps
/usr/local/Cellar/erlang/20.3.6/lib/erlang/lib
/Users/liubc/Documents/amoveo-mining-pool/_build/prod/rel
===> Resolved amoveo_mining_pool-0.1.0
===> Including Erts from /usr/local/Cellar/erlang/20.3.6/lib/erlang
===> release successfully created!
➜ amoveo-mining-pool git:(master) ✗ sh attach.sh
Node is not running!
I'm observing that the pool is passing out nonces with work units. The nonce matches the bhash. There is some code in the miner that makes each thread pick a different set of nonces to work on. Would each separate miner that uses the bhash as the root nonce would be duplicating the same work as other miners?
(I'm not entirely sure if these are valid questions, so please forgive my ignorance.)
Should the pool pass out nonces at all? Instead, should the miner generate a random base nonce when it gets work?
Is there any reason to make a base nonce the bhash, or is any random 32 byte array just as good for a nonce to start working on?
Hi,
i just installed amoveo full node ( port 8081, synced ) and connected this mining pool ( changed only pubkey in apps/amoveo_mining_pool/src/config.erl ). Mining Pool is starting, but just printing "Progess / Error reports" and not accepting miners on 8085 ( by the way: is this pool getwork or stratum or both? i use this software: https://github.com/zack-bitcoin/VeoCL )
Exec: /home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool/erts-7.3/bin/erlexec -noshell -noinput +Bd -boot /home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool/releases/0.1.0/amoveo_mining_pool -mode embedded -boot_var ERTS_LIB_DIR /home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool/lib -config /home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool/releases/0.1.0/sys.config -args_file /home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool/releases/0.1.0/vm.args -pa -- foreground
Root: /home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool
/home/docki/amoveo/amoveo-mining-pool/_build/prod/rel/amoveo_mining_pool
=PROGRESS REPORT==== 8-Mar-2019::17:41:20 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.557.0>},
{id,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 8-Mar-2019::17:41:20 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.558.0>},
{id,overload},
{mfargs,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 8-Mar-2019::17:41:20 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.556.0>},
{id,sasl_safe_sup},
{mfargs,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 8-Mar-2019::17:41:20 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.559.0>},
{id,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 8-Mar-2019::17:41:20 ===
application: sasl
started_at: amoveo_mining_pool@c37a3952bd22
FAILED TO UNPACK ATOM trees2
died!
=ERROR REPORT==== 8-Mar-2019::17:41:22 ===
** Generic server rewards_pusher terminating
** Last message in was {'$gen_cast',new_height}
** When Server state == []
** Reason for termination ==
** {{badmatch,2},
[{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
=CRASH REPORT==== 8-Mar-2019::17:41:22 ===
crasher:
initial call: rewards_pusher:init/1
pid: <0.550.0>
registered_name: rewards_pusher
exception exit: {{badmatch,2},
[{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
in function gen_server:terminate/7 (gen_server.erl, line 826)
ancestors: [amoveo_mining_pool_sup,<0.436.0>]
messages: []
links: [<0.542.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 318187
stack_size: 27
reductions: 245179
neighbours:
=SUPERVISOR REPORT==== 8-Mar-2019::17:41:22 ===
Supervisor: {local,amoveo_mining_pool_sup}
Context: child_terminated
Reason: {{badmatch,2},
[{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
Offender: [{pid,<0.550.0>},
{id,rewards_pusher},
{mfargs,{rewards_pusher,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
=PROGRESS REPORT==== 8-Mar-2019::17:41:22 ===
supervisor: {local,amoveo_mining_pool_sup}
started: [{pid,<0.565.0>},
{id,rewards_pusher},
{mfargs,{rewards_pusher,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
FAILED TO UNPACK ATOM trees2
died!
=ERROR REPORT==== 8-Mar-2019::17:41:24 ===
** Generic server rewards_pusher terminating
** Last message in was {'$gen_cast',new_height}
** When Server state == []
** Reason for termination ==
** {{badmatch,2},
[{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
=CRASH REPORT==== 8-Mar-2019::17:41:24 ===
crasher:
initial call: rewards_pusher:init/1
pid: <0.565.0>
registered_name: rewards_pusher
exception exit: {{badmatch,2},
[{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
in function gen_server:terminate/7 (gen_server.erl, line 826)
ancestors: [amoveo_mining_pool_sup,<0.436.0>]
messages: []
links: [<0.542.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 318187
stack_size: 27
reductions: 245179
neighbours:
=SUPERVISOR REPORT==== 8-Mar-2019::17:41:24 ===
Supervisor: {local,amoveo_mining_pool_sup}
Context: child_terminated
Reason: {{badmatch,2},
[{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,
"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
Offender: [{pid,<0.565.0>},
{id,rewards_pusher},
{mfargs,{rewards_pusher,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
=PROGRESS REPORT==== 8-Mar-2019::17:41:24 ===
supervisor: {local,amoveo_mining_pool_sup}
started: [{pid,<0.567.0>},
{id,rewards_pusher},
{mfargs,{rewards_pusher,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
FAILED TO UNPACK ATOM trees2
died!
=ERROR REPORT==== 8-Mar-2019::17:41:26 ===
** Generic server rewards_pusher terminating
** Last message in was {'$gen_cast',new_height}
** When Server state == []
** Reason for termination ==
** {{badmatch,2},
[{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,29}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{lists,map,2,[{file,"lists.erl"},{line,1238}]},
{packer,unpack_helper,1,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/default/lib/encrypter/src/packer.erl"},
{line,31}]},
{rewards_pusher,new_height_internal,0,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,26}]},
{rewards_pusher,handle_cast,2,
[{file,"/home/docki/amoveo/amoveo-mining-pool/_build/prod/lib/amoveo_mining_pool/src/rewards_pusher.erl"},
{line,12}]}]}
sry ,
steps to copy issue
i send u my veo, pls sent
BJTCVI 。。。
srcy my english thnk u my veo
My full node got out of sync, so I entirely deleted my node and pool. I cloned fresh copies.
I built, started, and synced my node.
Then, I built and started the pool and got these errors:
I tried rebuilding and verified my node block height matched your light wallet's block height value. When I tried again, I got a slightly different error from the pool:
Calculate it based upon the current block reward in the governance mechanism.
Use the same api as the light node uses for accessing governance variables.
I was able to setup the mining pool and mine remotely.
The mining pool document says something like the pool runs a full node. Is there a procedure to syncing the mining pool or checking the height for the pool like this?
sync:start().
or this?
api:height().
I mined a few blocks, and I thought I could confirm the pool by checking the height or your light wallet web page. The height shown on your light node (wallet web page) didn't change, so I'm not sure how to confirm my pool is syncing correctly.
Thank you for any advise you have on this.
Hiya,
I'm not seeing a license anywhere here. And I hear the push for more mining pools!!
Please specify. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.