Coder Social home page Coder Social logo

docker-zcash's Introduction

Image Badges

Download zcash parameters

sudo docker run --rm -v /data/zcash/.zcash-params:/root/.zcash-params:rw -v /data/zcash/.zcash:/root/.zcash:rw --entrypoint zcash-fetch-params andyceo/zcash

Run

sudo docker run -d -v /data/zcash/.zcash-params:/root/.zcash-params:ro -v /data/zcash/.zcash:/root/.zcash:rw -h zcash --name zcash andyceo/zcash

Check hashrate

time ~/zcash/src/zcash-cli zcbenchmark solveequihash 10


time solveequihash NUM_ITERS [NUM_THREADS]

The result will be something like

real    1m15.879s
user    0m0.000s
sys     0m0.004s

where the first number is the real time taken. Divide 10 by this value (converted into seconds) and you have your hashrate in hashes per second. Of course the advantage to this method is that you can easily run 100 or 1000 loops to average out the run times.

Releases

Will be the same as Zcash releases: https://github.com/zcash/zcash/releases

Volumes

Previously, this image had two volumes: /root/.zcash-params and /root/.zcash. To simplify volume management, and add ability to store user history with zcash-cli and other cli tools, it has been changed to just /root.

  • /root/.zcash-params - contains zcash parameters, that could be obtained with zcash-fetch-params command.
  • /root/.zcash - this is the zcash.conf location, also wallet data, blockchain data, etc.

docker-zcash's People

Contributors

andyceo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

docker-zcash's Issues

Use a Custom Address

I see that a wallet.dat gets created during the launch of zcash:

  • Host system: /root/.zcash/wallet.dat

I'm sure that's needed for syncing information with the network. What I'm wondering is:

I've combed through your DockerFile and scripts and I don't see it explicitly referenced. I'm thinking I'll try adding it to the conf file and report back.

README Errors

I found an issue with your README. I would submit a PR, but I'm not sure if I hacked around it or I configured something bad. It seems like it was just an older config that needed updating; maybe?

I changed the volume mount from:

  • -v /data/zcash/.zcash:/root/.zcash:rw

to:

  • -v /root/.zcash:/root/.zcash:rw

Check Hashrate

Can you be more specific on the command you supplied; maybe even create a wiki with more details?

time ~/zcash/src/zcash-cli zcbenchmark solveequihash 10

However, after cloning zcash and running the command, I get No such file or directory:

~$ git clone https://github.com/zcash/zcash.git
Cloning into 'zcash'...
remote: Counting objects: 63842, done.
remote: Total 63842 (delta 0), reused 0 (delta 0), pack-reused 63842
Receiving objects: 100% (63842/63842), 46.13 MiB | 6.06 MiB/s, done.
Resolving deltas: 100% (48154/48154), done.
~$ time ~/zcash/src/zcash-cli zcbenchmark solveequihash 10
bash: /home/vertigoray/zcash/src/zcash-cli: No such file or directory

real    0m0.001s
user    0m0.000s
sys     0m0.004s

I did confirm that there doesn't appear to be a file/directory in that path of the repo.

Thoughts?

Connection reset?

Fresh install, mainnode, getting:

2018-11-28 15:48:07 socket recv error Connection reset by peer (104)
2018-11-28 15:48:08 Misbehaving: <IP>:<PORT> (0 -> 1)
2018-11-28 15:48:08 ProcessMessages(reject, 43 bytes) FAILED peer=2
2018-11-28 15:48:08 Misbehaving: <IP>:<PORT> (1 -> 2)
2018-11-28 15:48:08 ProcessMessages(ping, 8 bytes) FAILED peer=2

With the last two lines repeating for tons of IPs. Rejected on every peer? Any idea? Clients work fine outside of docker.

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.