Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Guide] Setup P2Pool for Feathercoin in VirtualBox

    Guides
    13
    27
    36742
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mogumodz last edited by wrapper

      This guide is out of date, full details of how to set up Feathercoin p2pool is included in the Github readme.

      https://forum.feathercoin.com/topic/7219/dev-feathercoin-p2pool-neoscrypt-now-available

      https://github.com/wellenreiter01/p2pool-neoscrypt

      How to setup a FTC p2pool on Ubuntu 12.04 running inside VirtualBox on Windows

      P2Pool is a decentralized mining pool that works by creating a peer-to-peer network of miner nodes.

      https://en.bitcoin.it/wiki/P2Pool Learn More.

      We could always use some more p2pool miners.

      Download or install Virtual Box software

      https://www.virtualbox.org/wiki/Downloads\

      Download a premade Ubuntu 12.04 Virtual Box

      http://virtualboxes.org/images/ubuntu/\

      [code]
      Look for 15.Ubuntu Linux 12.04 x86
      Size (compressed/uncompressed): 769 MB/3.2 GB
      Link: http://sourceforge.net/projects/virtualboximage/files/Ubuntu Linux/12.04/ubuntu_12.04-x86.7z
      (if you have problems with using a premade VDI, make your own using an Ubuntu ISO http://www.psychocats.net/ubuntu/virtualbox)

      Extract ubuntu_12.04-x86.7z\

      e.g C:\Program Files\Oracle\VMs\ubuntu_12.04

      Run the VM

      Navigate where you just extracted Ubuntu and double click on ubuntu_12.04.vbox or the .vdi

      *Change network adaptor to Bridged mode*

      When the VM gets to the Ubuntu splash screen, hover over the network adapter icon in the bottom right of the VM window and right click and select ‘Network Adapters’ then change ‘Attached to’ to Bridged Mode.

      Also change ‘Promiscuous Mode’ to Allow all and reboot the VM to get a local IP address you can forward ports to.

      Log in to Ubuntu
      username/password : ubuntu/reverse

      Modified p2pool code can be found here

      https://github.com/wellenreiter01/p2pool-neoscrypt

      Instructions for Ubuntu 12.04

      sudo apt-get update
      sudo apt-get install python-software-properties screen git python-rrdtool python-pygame python-scipy
      sudo apt-get install python-twisted python-twisted-web python-imaging build-essential libglib2.0-dev libglibmm-2.4-dev
      sudo apt-get install python-dev libboost-all-dev libdb+±dev autoconf automake ncurses-dev

      Install Feathercoin Daemon:

      cd ~/ ; git clone [url]https://github.com/FeatherCoin/FeatherCoin[/url] ; cd ~/FeatherCoin/src ; make -f makefile.unix USE_UPNP=- ; mv feathercoind ~/
      mkdir ~/.feathercoin
      nano -w ~/.feathercoin/feathercoin.conf[/code]

      Add this text into ~/.feathercoin/feathercoin.conf
      server=1
      daemon=1
      rpcuser=rpcadmin
      rpcpassword=GenerateAgoodpasswordhere
      rpcport=9667

      Fire Up Feathercoin daemon:

      Get p2pool modified code for feathercoin:
      cd ~/ ; git clone \https://github.com/wellenreiter01/p2pool-neoscrypt

      ]Install scrypt module for ltc that feathercoin uses (Need sudo) :

      cd ~/p2pool-neoscrypt/neoscrypt_scrypt ; sudo python setup.py install

      Start up your P2pool for Feathercoin!
      screen -d -m -S ftcpool ~/p2pool-neoscrypt/run_p2pool.py --net feathercoin -a YourFTCPayoutAddress -f 0 --give-author 0 --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 rpcadmin yourgoodpasswordfromfeathercoin.confhere[/code]

      You can use screen -r to open up the p2pool console, or you can tail -f ~/p2pool-fc/data/feathercoin/log

      –w port (The port for the stat web interface and also the port where miners connect)
      -f number ( Fee you will get for running the pool, in percent)

      **Some nice commands:**]
      tail -f ~/p2poolf-fc/data/feathercoin/log | grep BLOCK

      1 Reply Last reply Reply Quote 1
      • S
        sheepson Regular Member last edited by

        Thanks! :)

        I’ll add it to the main post.

        1 Reply Last reply Reply Quote 0
        • J
          josper last edited by

          Hi,thank you very much for the tut.
          I probably try setup one, without windows…

          1 Reply Last reply Reply Quote 0
          • M
            Mogumodz last edited by

            [quote name=“josper” post=“9777” timestamp=“1370459095”]
            Hi,thank you very much for the tut.
            I probably try setup one, without windows…
            [/quote]

            Just follow from “Instructions for Ubuntu 12.04” then :) Nice an easy.

            1 Reply Last reply Reply Quote 0
            • J
              josper last edited by

              Testing it on Ubuntu 13.04… :D

              [url=http://ftc.soyminero.net:19327]http://ftc.soyminero.net:19327[/url]

              1 Reply Last reply Reply Quote 0
              • M
                Mogumodz last edited by

                Great stuff :) looking good there.

                1 Reply Last reply Reply Quote 0
                • J
                  josper last edited by

                  [quote name=“d2” post=“14464” timestamp=“1371171843”]
                  Some additional information:

                  If you are having problems getting it to start, try adding “–disable-upnp” to the startup line.

                  If you plan to offer it for community usage, you should increase the number of connections allowed with something like: “–max-conns 500” in the startup line.

                  Unless you are using this for a solo mining pool, you need to add some additional nodes to connect to in order to join the rest of the p2pool network. Below are some of the nodes I know of:

                  -n p2pftc1.d2.cc -n p2pool.dyndns.info -n p2pool.org -n ftcp2p.nut2pool.com -n p2pftc2.d2.cc -n p2pftc3.d2.cc

                  There should be added to your startup line as well.
                  [/quote]

                  Thank you very much, D2.
                  I have those nodes added in networks.py . Is it the same effect?

                  I have added “–max-conns 500” in the startup for increase connections and community use… This server is always on… I hope :)

                  But I only have “Peers out”, don’t have “Peers in”. Any idea? I have opened port 19339 in iptables. Need other port?

                  Thanks !!!

                  PD .- Sorry by my english ::)

                  1 Reply Last reply Reply Quote 1
                  • J
                    josper last edited by

                    [quote name=“d2” post=“14472” timestamp=“1371173477”]
                    Here is a little script to keep your p2pool running in the event it crashes. It should be easy to understand to adopt it for other things as well.

                    The first step is to create a directory for your script, enter it, and create the script file:

                    …

                    This script will run every 60 seconds, if p2pool is running it will do nothing, otherwise it will attempt to run your script to start it!
                    [/quote]

                    Great!!
                    I add this script faster ;D

                    1 Reply Last reply Reply Quote 0
                    • J
                      josper last edited by

                      [quote name=“d2” post=“14492” timestamp=“1371175265”]

                      Not sure what you are using on 19339 but the 2 ports you need open are whatever you specified on the --w switch and the p2p-port

                      –w 19327 --bitcoind-p2p-port 9336

                      you should NOT allow external access to bitcoind-rpc-port
                      [/quote]

                      Ok, I have 9336 closed… ::)

                      i have oppened 19339 following networks.py feathercoin configuration >> “P2P_PORT=19339”

                      I will do some testing…

                      1 Reply Last reply Reply Quote 1
                      • J
                        josper last edited by

                        Well, works fine, but not show “Peers in”, only peers out >:(

                        [code]
                        ~/p2pool-feathercoin/run_p2pool.py --net feathercoin -a xxxxx --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 --disable-upnp --max-conns 500

                        [/code]

                        networks.py:
                        [code]

                        …
                        P2P_PORT=19339,
                        MIN_TARGET=0,
                        MAX_TARGET=2**256//2**20 - 1,
                        PERSIST=False,
                        WORKER_PORT=19327,
                        BOOTSTRAP_ADDRS=‘p2pool.org ftcp2p.nut2pool.com p2pool.dyndns.info p2pftc1.d2.cc’.split(’ ‘),
                        ANNOUNCE_CHANNEL=’#p2pool-alt’,
                        VERSION_CHECK=lambda v: True,

                        [/code]

                        Startup:

                        [code]
                        2013-06-14 04:41:28.616508 Testing bitcoind RPC connection to ‘http://127.0.0.1:9667/’ with username ‘rpcadmin’…
                        2013-06-14 04:41:28.635913 …success!
                        2013-06-14 04:41:28.636032 Current block hash: 9e1bcb25499736e46ba5b19a8ae194b6ab575e0feccb1b38f864b9f3ef615c98
                        2013-06-14 04:41:28.636093 Current block height: 36188
                        2013-06-14 04:41:28.636146
                        2013-06-14 04:41:28.636219 Testing bitcoind P2P connection to ‘127.0.0.1:9336’…
                        2013-06-14 04:41:28.717484 …success!
                        2013-06-14 04:41:28.717587
                        2013-06-14 04:41:28.717877
                        2013-06-14 04:41:28.717970 Loading shares…
                        2013-06-14 04:41:30.702526 1000
                        2013-06-14 04:41:32.441438 …done loading 1888 shares (1531 verified)!
                        2013-06-14 04:41:32.441559
                        2013-06-14 04:41:32.441615 Initializing work…
                        2013-06-14 04:41:33.144594 …success!
                        2013-06-14 04:41:33.144754
                        2013-06-14 04:41:33.144815 Joining p2pool network using port 19339…
                        2013-06-14 04:41:33.212921 …success!
                        2013-06-14 04:41:33.213033
                        2013-06-14 04:41:33.213096 Listening for workers on ‘’ port 19327…
                        2013-06-14 04:41:33.443858 …success!
                        2013-06-14 04:41:33.443992
                        2013-06-14 04:41:33.444185 Started successfully!

                        [/code]

                        … I keep trying … :D

                        1 Reply Last reply Reply Quote 0
                        • D
                          devero last edited by

                          Anyone having problems compiling latest Github code on 12.04? I keep running into this issue-

                          [code]g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/home/ubuntu/FeatherCoin/src -I/home/ubuntu/FeatherCoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/main.d -o obj/main.o main.cpp
                          g++: internal compiler error: Killed (program cc1plus)
                          Please submit a full bug report,
                          with preprocessed source if appropriate.
                          See for instructions.
                          make: *** [obj/main.o] Error 4
                          mv: cannot stat `feathercoind’: No such file or directory[/code]

                          1 Reply Last reply Reply Quote 1
                          • N
                            Nutnut Regular Member last edited by

                            [quote name=“perico” post=“14533” timestamp=“1371180448”]
                            Well, works fine, but not show “Peers in”, only peers out >:(

                            [code]
                            ~/p2pool-feathercoin/run_p2pool.py --net feathercoin -a xxxxx --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 --disable-upnp --max-conns 500

                            [/code]

                            networks.py:
                            [code]

                            …
                            P2P_PORT=19339,
                            MIN_TARGET=0,
                            MAX_TARGET=2**256//2**20 - 1,
                            PERSIST=False,
                            WORKER_PORT=19327,
                            BOOTSTRAP_ADDRS=‘p2pool.org ftcp2p.nut2pool.com p2pool.dyndns.info p2pftc1.d2.cc’.split(’ ‘),
                            ANNOUNCE_CHANNEL=’#p2pool-alt’,
                            VERSION_CHECK=lambda v: True,

                            [/code]

                            Startup:

                            [code]
                            2013-06-14 04:41:28.616508 Testing bitcoind RPC connection to ‘http://127.0.0.1:9667/’ with username ‘rpcadmin’…
                            2013-06-14 04:41:28.635913 …success!
                            2013-06-14 04:41:28.636032 Current block hash: 9e1bcb25499736e46ba5b19a8ae194b6ab575e0feccb1b38f864b9f3ef615c98
                            2013-06-14 04:41:28.636093 Current block height: 36188
                            2013-06-14 04:41:28.636146
                            2013-06-14 04:41:28.636219 Testing bitcoind P2P connection to ‘127.0.0.1:9336’…
                            2013-06-14 04:41:28.717484 …success!
                            2013-06-14 04:41:28.717587
                            2013-06-14 04:41:28.717877
                            2013-06-14 04:41:28.717970 Loading shares…
                            2013-06-14 04:41:30.702526 1000
                            2013-06-14 04:41:32.441438 …done loading 1888 shares (1531 verified)!
                            2013-06-14 04:41:32.441559
                            2013-06-14 04:41:32.441615 Initializing work…
                            2013-06-14 04:41:33.144594 …success!
                            2013-06-14 04:41:33.144754
                            2013-06-14 04:41:33.144815 Joining p2pool network using port 19339…
                            2013-06-14 04:41:33.212921 …success!
                            2013-06-14 04:41:33.213033
                            2013-06-14 04:41:33.213096 Listening for workers on ‘’ port 19327…
                            2013-06-14 04:41:33.443858 …success!
                            2013-06-14 04:41:33.443992
                            2013-06-14 04:41:33.444185 Started successfully!

                            [/code]

                            … I keep trying … :D
                            [/quote]

                            Provided you’ve opened 19339 you should be fine. It does take a long time to get peers in. Sometimes 24h+. The reason is that most pools have the default config of 6 peers out max. Once they have the 6 they don’t look for more. Eventually, as pools restart, shutdown, startup, or whatever, they’ll start to come to you. Patience… ;)

                            Of course as soon as you restart the server, you’ll lose your incoming again. :(

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User last edited by

                              有win7çš„çŸ¿æ± å—

                              1 Reply Last reply Reply Quote 0
                              • M
                                MrSheep last edited by

                                As the p2pool versions for Feathercoin are no longer available, i have created an updated version of p2pool for feathercoin under: https://github.com/andreasfaerber/p2pool-feathercoin

                                Regards,
                                MrSheep

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Mogumodz last edited by

                                  [quote name=“MrSheep” post=“32500” timestamp=“1382734947”]
                                  As the p2pool versions for Feathercoin are no longer available, i have created an updated version of p2pool for feathercoin under: https://github.com/andreasfaerber/p2pool-feathercoin

                                  Regards,
                                  MrSheep
                                  [/quote]

                                  Edited the main post to reflect the new source.

                                  Thanks

                                  1 Reply Last reply Reply Quote 1
                                  • P
                                    prensel Regular Member last edited by

                                    For some reason a get a lot of errors from the logfile like this:

                                    2013-12-12 21:50:41.741618 > Error getting work from bitcoind:
                                    2013-12-12 21:50:41.742045 > Traceback (most recent call last):
                                    2013-12-12 21:50:41.742364 > File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 551, in _runCallbacks
                                    2013-12-12 21:50:41.742671 > current.result = callback(current.result, *args, **kw)
                                    2013-12-12 21:50:41.742974 > File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 1101, in gotResult
                                    2013-12-12 21:50:41.743284 > _inlineCallbacks(r, g, deferred)
                                    2013-12-12 21:50:41.743585 > File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 1043, in _inlineCallbacks
                                    2013-12-12 21:50:41.743886 > result = result.throwExceptionIntoGenerator(g)
                                    2013-12-12 21:50:41.744213 > File “/usr/lib/python2.7/dist-packages/twisted/python/failure.py”, line 382, in throwExceptionIntoGenerator
                                    2013-12-12 21:50:41.744486 > return g.throw(self.type, self.value, self.tb)
                                    2013-12-12 21:50:41.744832 > — —

                                    and so on…

                                    There’s a small typo in the HOWTO also i think:

                                    [quote]
                                    You can use screen -r to open up the p2pool console, or you can tail -f ~/[s]p2pool-fc[/s]/data/feathercoin/log
                                    [/quote]

                                    should read “p2pool_feathercoin”

                                    1 Reply Last reply Reply Quote 1
                                    • A
                                      aatje92 last edited by

                                      Cheers, i got it running on my linux box ::)

                                      1 Reply Last reply Reply Quote 1
                                      • N
                                        NetCrow last edited by

                                        I’m having some problems. can you help me?

                                        This is my error:
                                        bignum.h:12:24: fatal error: openssl/bn.h: No existe el archivo o el directorio
                                        #include
                                        ^
                                        compilation terminated.
                                        make: *** [obj/checkpoints.o] Error 1
                                        mv: no se puede efectuar `stat’ sobre «feathercoind»: No existe el archivo o el directorio

                                        The parts in spanish are just saying that there is no file or directory.

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          MrSheep last edited by

                                          Is libssl and the source files installed on your system? For example “libcurl4-openssl-dev” ?

                                          1 Reply Last reply Reply Quote 1
                                          • N
                                            NetCrow last edited by

                                            Hello there again.
                                            the problem with the missing libraries it’s already done.

                                            Now I have another problem. I’ve done everything that it is in the guide, but I have no feedback.
                                            so I start feathercoind and I get a “feathercoin server starting” and nothing else.
                                            when i make the “screen” instruction i just get nothing.

                                            any idea of what is wrong?

                                            – Update –

                                            Now the “screen -r” command its working, and I’ve done nothing to fix it.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post