P2pool ultimate book-random optimization

Source: Internet
Author: User

P2pool Ultimate Collection
-Random optimization

P2pool-the best mine pool (none)

Tough posts do not need to be replied and visible

Hard-pressed miners do not want everyone to contribute

NoteYou 'd better set up your own mining pool! If you do not have an idle computer at hand or are too lazy to maintain it, you can go to my mine pool to mine!

Mine pool

BTC (bitcoin mining pool)

URL: www.openmine.linkpc.net: 9332

Username: Your wallet address

Write your own password

LITECOIN (LITECOIN mining pool)

URL: www.openmine.linkpc.net: 9327

Username: Your wallet address

Write your own password

Qq exchange group 258910734

Principles of this Article

1. Not only do they speak naturally, but also do so in order to bypass the class.

2. Do not use professional terms as far as possible. The principle is easy to understand.

This article permission

1. This article is under GPL (the version number of GPL, whatever it is), benefiting from Linux for many years and contributing to open source.

2. Copyright is required for the ball.

This article is a continuation of the crazy setup article. Let's look at the crazy setup article first!

The optimization mainly consists of three parts:

Linux System Optimization

Bitcoin Network Optimization

P2pool Network Optimization

Linux system optimization (mainly security)

1. Do not open unnecessary ports

2. do not provide unnecessary services

3. Do not start unnecessary software.

4. Do not use the source code to compile and install the software.

5 Special planes

Reference

Http://www.debian.org/doc/manuals/securing-debian-howto/index.en.html

Bitcoin optimization (mainly refers to command line parameters)

You can set command line parameters in two ways.

1. Use the command line. Separate parameters with spaces!

2 $ HOME/. bitcoin/bitcoin. conf (except-datadir and-conf ). One Parameter Line!

If the same option is specified in both the command line and configuration file, the command line is preferred.

Options:

 -?                     This help message -conf=<file>           Specify configuration file (default: bitcoin.conf) -pid=<file>            Specify pid file (default: bitcoind.pid) -gen                   Generate coins (default: 0) -datadir=<dir>         Specify data directory -dbcache=<n>           Set database cache size in megabytes (default: 25) -timeout=<n>           Specify connection timeout in milliseconds (default: 5000) -proxy=<ip:port>       Connect through socks proxy -socks=<n>             Select the version of socks proxy to use (4-5, default: 5) -tor=<ip:port>         Use proxy to reach tor hidden services (default: same as -proxy) -dns                   Allow DNS lookups for -addnode, -seednode and -connect -port=<port>           Listen for connections on <port> (default: 8333 or testnet: 18333) -maxconnections=<n>    Maintain at most <n> connections to peers (default: 125) -addnode=<ip>          Add a node to connect to and attempt to keep the connection open -connect=<ip>          Connect only to the specified node(s) -seednode=<ip>         Connect to a node to retrieve peer addresses, and disconnect -externalip=<ip>       Specify your own public address -onlynet=<net>         Only connect to nodes in network <net> (IPv4, IPv6 or Tor) -discover              Discover own IP address (default: 1 when listening and no -externalip) -checkpoints           Only accept block chain matching built-in checkpoints (default: 1) -listen                Accept connections from outside (default: 1 if no -proxy or -connect) -bind=<addr>           Bind to given address and always listen on it. Use [host]:port notation for IPv6 -dnsseed               Find peers using DNS lookup (default: 1 unless -connect) -banscore=<n>          Threshold for disconnecting misbehaving peers (default: 100) -bantime=<n>           Number of seconds to keep misbehaving peers from reconnecting (default: 86400) -maxreceivebuffer=<n>  Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000) -maxsendbuffer=<n>     Maximum per-connection send buffer, <n>*1000 bytes (default: 1000) -upnp                  Use UPnP to map the listening port (default: 1 when listening) -paytxfee=<amt>        Fee per KB to add to transactions you send -server                Accept command line and JSON-RPC commands -testnet               Use the test network -debug                 Output extra debugging information. Implies all other -debug* options -debugnet              Output extra network debugging information -logtimestamps         Prepend debug output with timestamp -shrinkdebugfile       Shrink debug.log file on client startup (default: 1 when no -debug) -printtoconsole        Send trace/debug info to console instead of debug.log file -printtodebugger       Send trace/debug info to debugger -rpcuser=<user>        Username for JSON-RPC connections -rpcpassword=<pw>      Password for JSON-RPC connections -rpcport=<port>        Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332) -rpcallowip=<ip>       Allow JSON-RPC connections from specified IP address -rpcthreads=<n>        Set the number of threads to service RPC calls (default: 4) -blocknotify=<cmd>     Execute command when the best block changes (%s in cmd is replaced by block hash) -walletnotify=<cmd>    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID) -alertnotify=<cmd>     Execute command when a relevant alert is received (%s in cmd is replaced by message) -upgradewallet         Upgrade wallet to latest format -keypool=<n>           Set key pool size to <n> (default: 100) -rescan                Rescan the block chain for missing wallet transactions -salvagewallet         Attempt to recover private keys from a corrupt wallet.dat -checkblocks=<n>       How many blocks to check at startup (default: 288, 0 = all) -checklevel=<n>        How thorough the block verification is (0-4, default: 3) -txindex               Maintain a full transaction index (default: 0) -loadblock=<file>      Imports blocks from external blk000??.dat file -reindex               Rebuild block chain index from current blk000??.dat files -par=<n>               Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)

Block creation options:

 -blockminsize=<n>      Set minimum block size in bytes (default: 0) -blockmaxsize=<n>      Set maximum block size in bytes (default: 250000) -blockprioritysize=<n> Set maximum size of high-priority/low-fee transactions in bytes (default: 27000) -mintxfee=<m.n>        Minimum  fee-per-kilobyte to qualify as fee-paying (default: 0.0001)

SSL options: (see the Bitcoin Wiki for SSL setup instructions)

 -rpcssl                                  Use OpenSSL (https) for JSON-RPC connections -rpcsslcertificatechainfile=<file.cert>  Server certificate file (default: server.cert) -rpcsslprivatekeyfile=<file.pem>         Server private key (default: server.pem) -rpcsslciphers=<ciphers>                 Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)

UI options:

 -lang=<lang>           Set language, for example "de_DE" (default: system locale) -min                   Start minimized -splash                Show splash screen on startup (default: 1)

Setting of the boolean options can also be set to off by specifying them with a "no" prefix: e.g.-nodnseed.

P2pool optimization (mainly refers to command line parameters)

It can only be used in the command line, and the parameters are separated by spaces!

 

optional arguments:  -h, --help            show this help message and exit  --version             show program's version number and exit  --net {bitcoin,litecoin}                        use specified network (default: bitcoin)  --testnet             use the network's testnet  --debug               enable debugging mode  -a ADDRESS, --address ADDRESS                        generate payouts to this address (default: <address                        requested from bitcoind>)  --datadir DATADIR     store data in this directory (default: <directory                        run_p2pool.py is in>/data)  --logfile LOGFILE     log to this file (default: data/<NET>/log)  --merged MERGED_URLS  call getauxblock on this url to get work for merged                        mining (example:                        http://ncuser:ncpass@127.0.0.1:10332/)  --give-author DONATION_PERCENTAGE                        donate this percentage of work towards the development                        of p2pool (default: 0.5)  --iocp                use Windows IOCP API in order to avoid errors due to                        large number of sockets being open  --irc-announce        announce any blocks found on                        irc://irc.freenode.net/#p2pool  --no-bugreport        disable submitting caught exceptions to the author  --disable-upnp        don't attempt to use UPnP to forward p2pool's P2P port                        from the Internet to this computerp2pool interface:  --p2pool-port PORT    use port PORT to listen for connections (forward this                        port from your router!) (default: bitcoin:9333,                        litecoin:9338)  -n ADDR[:PORT], --p2pool-node ADDR[:PORT]                        connect to existing p2pool node at ADDR listening on                        port PORT (defaults to default p2pool P2P port) in                        addition to builtin addresses  --max-conns CONNS     maximum incoming connections (default: 40)worker interface:  -w PORT or ADDR:PORT, --worker-port PORT or ADDR:PORT                        listen on PORT on interface with ADDR for RPC                        connections from miners (default: all interfaces,                        bitcoin:9332, litecoin:9327)  -f FEE_PERCENTAGE, --fee FEE_PERCENTAGE                        charge workers mining to their own bitcoin address (by                        setting their miner's username to a bitcoin address)                        this percentage fee to mine on your p2pool instance.                        Amount displayed at http://127.0.0.1:WORKER_PORT/fee                        (default: 0)bitcoind interface:  --bitcoind-address BITCOIND_ADDRESS                        connect to this address (default: 127.0.0.1)  --bitcoind-rpc-port BITCOIND_RPC_PORT                        connect to JSON-RPC interface at this port (default:                        bitcoin:8332, litecoin:9332 <read from bitcoin.conf if                        password not provided>)  --bitcoind-p2p-port BITCOIND_P2P_PORT                        connect to P2P interface at this port (default:                        bitcoin:8333, litecoin:9333 <read from bitcoin.conf if                        password not provided>)  BITCOIND_RPCUSERPASS  bitcoind RPC interface username, then password, space-                        separated (only one being provided will cause the                        username to default to being empty, and none will                        cause P2Pool to read them from bitcoin.conf)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.