Giter Site home page Giter Site logo

amoveo-mining-pool's People

Contributors

zack-bitcoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amoveo-mining-pool's Issues

Node is not running

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!

Pool Passing out Nonces to Miners

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?

FAILED TO UNPACK ATOM trees2

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}]}]}

config.erl changes didnt not applied

sry ,
steps to copy issue

  • start.sh
  • halt
  • config.erl changed
  • start.sh
    config.erl changes didnt not applied

i send u my veo, pls sent
BJTCVI 。。。
srcy my english thnk u my veo

Pool Errors: "Node not synced" but it is.

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:

image

image

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:

image

mining reward should be dynamic

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.

Syncing the pool

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.

Pool Crash and Attach.sh fails to connect to server

The mining pool crashed on me and trying to start it up gave another crash dump. I'll try to stand the pool up from scratch next, which will likely work. Just wanted to capture and report this while I saw it.

image

image

What is the license?

Hiya,
I'm not seeing a license anywhere here. And I hear the push for more mining pools!!
Please specify. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.