Where to find P2pool networks.py settings for altcoins?

Is there a forum post or website where all the altcoin networks.py settings are being shared? I can see the P2pool forks on Github where people commit their own networks.py settings back to their own repository but none are being merged back into the original forrestv/p2pool repository. For now, I am specifically searching for the Digibyte altcoin but would like to add the other altcoins later on as well.

I am talking about this part:

    SHARE_PERIOD=15, # seconds
    CHAIN_LENGTH=24*60*60//10, # shares
    REAL_CHAIN_LENGTH=24*60*60//10, # shares
    TARGET_LOOKBEHIND=200, # shares
    SPREAD=3, # blocks
    P2P_PORT=9 338,
    MAX_TARGET=2**256//2**20 - 1,
    BOOTSTRAP_ADDRS='...'.split(' '),
    VERSION_CHECK=lambda v: True,
    VERSION_WARNING=lambda v: 'Upgrade Litecoin to >=!' if v < 80501 else None,

And if none are being shared publicly, how do I edit the settings myself for the different altcoins?

Problems with Antminer U1 – why doesn’t it work?

I’ve got other Antminers working, this one just throws these errors in debug mode – is this fixable?

[2014-01-30 19:03:10] Bmsc send golden nonce
[2014-01-30 19:03:10] ANT0: GetResults (amt=0 err=-7 ern=110)
[2014-01-30 19:03:10] Bmsc Read: No data for 101 ms
[2014-01-30 19:03:10] Bmsc recv golden nonce timeout
[2014-01-30 19:03:10] USB uninit ANT0
[2014-01-30 19:03:10] USB free ANT
[2014-01-30 19:03:10] USB unlock Bitmain 1-5
[2014-01-30 19:03:10] RES: Bitmain (1:5) lock=0
[2014-01-30 19:03:10] USB res unlock Bitmain 1-5
[2014-01-30 19:03:10] BTM looking for ANT 10c4:ea60 but found 0e0f:0003 instead
[2014-01-30 19:03:10] BTM looking for ANT 10c4:ea60 but found 0e0f:0002 instead
[2014-01-30 19:03:10] BTM looking for ANT 10c4:ea60 but found 1d6b:0002 instead

I’m running cgminer 3.9.0 from the fractal branch, though all the versions that support the antminer-u1 seem to have the same results, so I don’t think it’s necessarily the miner software. I’m running with these options to underclock:

--bmsc-options 115200:20  --bmsc-freq 0681 -D

Bitcoind daemon keeps getting “killed” on AWS

I’m trying to run bitcoind on an AWS debian instance. Running with the -daemon option would terminate with no indication as to why so I decided to run it under a screen. I started it last night (without options) and disconnected from the screen and verified that it was working. This morning the server had stopped so I reconnected to the screen session it was running on and the only message bitcoind gave was “Killed”.

There’s nothing in the logs that seems to indicate how or why this is happening and I’m at a bit of a loss. Can anyone give me some recommendations or insight on how to determine the cause of the issue?

How often should I call getblocktemplate?

I’m building a basic Bitcoin client in c# to better understand the mining protocol.
I need help understanding Getblocktemplate. I have read the Getblocktemplate wiki, but I’m still having an issue understanding the protocol. The wiki states “Since you’re making all the blocks yourself, you really don’t ever need to get another template… until it’s invalid”. When is the template considered invalid? How often do I need to call Getblocktemplate?
If a new block is mined every 10 minutes, with some coins that is every 1 minute, do I need to call Getblocktemplate every 10 minutes (1 minute depending on the coin) so that I have the latest “previousblockhash”?

The steps I’m using:

  1. Make a rpc call to bicoind server for Getblocktemplate.

  2. Parse data and build a merkle root.

  3. Build a block header (version, previousblockhash, merkleroot, curtime, bits, nonce).

  4. Get a header hash. headerHash = Hash(version, previousblockhash, merkleroot, curtime, bits, nonce).

  5. Repeat step 4 by 2^32 increments of nonce.

  6. I understand I can then increment “curtime”, (which doesn’t have to be precise?), so increment curtime and then repeat step 5.

Is this correct?

How long can I keep incrementing “curtime” before I need to call getblocktemplate again?

At what point do I need a new block (i.e. new previousblockhash and new merkle root)?

How can I create a new Genesis Block?

I’m trying to create a testcoin using litecoin. To create genesis block I changed some lines to :

block.nTime = 1390948469; // current time

uint256 hashGenesisBlock("0x"); //I dont now it's true or false

uint256 hash = block.GetHash();
        printf("%s\n", hash.ToString().c_str());
        printf("%s\n", hashGenesisBlock.ToString().c_str());
        printf("%s\n", block.hashMerkleRoot.ToString().c_str());
        assert(block.hashMerkleRoot == uint256("0x")); //I dont now it's true or false.
        assert(hash == hashGenesisBlock);

When I build daemon and launch it, I’m getting this error:

litecoind: main.cpp:2788: bool InitBlockIndex(): Assertion `hash == hashGenesisBlock' failed.

When I check the ./litecoin debug.log file, I’m seeing the previous hashMerkleRoot and hashGenesisBlock that litecoin uses now. I can’t create new hash and merkle root.

How to download Bitcoin block headers from Blockchain.info and save to file?

I am just developing and testing Bitcoin mining application in plain Javascript
(slow but can be run off-line).

To test it to work correctly I need to download Bitcoin block headers
from Blockchain.info , 6 input parameters .

Are you aware how to call Blockchain API

I don’t use Bitcoin address, no other mining app, just need to download
a number block headers from hashed blocks.

Any idea, demo, example or csv file coming with 6 input parameters
as described in Bitcoin hashing algorithm


Given a list of buy/sell orders and previous trades, compute a buy/sell price

I’m using the Cryptsy API with a bot. So far, my bot’s problem is that when it decides it needs to buy or sell a coin (not just bitcoin), I always seem to compute a price that is way too low or high. The data I have access to is:

  1. The currently outstanding buy orders (though a few seconds old and without timestamps)
  2. The currently outstanding sell orders
  3. The previous 20 trades that were executed on the market

From all of this data, is there an existing algorithm to compute a price that will almost always buy or sell? My bot’s priority is to have fast trades(like, less than a minute for execution), even if the price is not the best.

Cryptsy themselves compute a pretty good number in their web UI (the default ask/bid price), but I don’t see that value exposed in their API. Where does this ask/bid price come from?

For reference, I’ve tried a few things with little success

  1. Highest buy price/Lowest sell price — This tends to catch outliers and results in me placing an overly optimistic bid that only one buyer/seller was willing to pay (and because my data is seconds old, apparently somone else picks it up)
  2. An average of 3 lowest/highest — This had the same problem with outliers
  3. Lowest buy price/Highest sell price — This is extremely pessimistic and results in me paying ridiculous prices that are unreasonable

How can I compute a good ask/bid price from this set of data I have?

Integrating Bitcoin payment methods to a UK Opencart store?

I really want to integrate Bitcoin into my girlfriend’s web store, but have found that they are either too expensive per transaction for international payments (bips.me – $7.50), have a huge minimum withdrawal threshold for international bank accounts (bitpay – $1,000) or simply don’t work with international bank accounts at all (coinbase)

Is there any payment module I’ve overlooked that will work with Opencart, and will pay in £GBP to a UK bank account?


bitcond and bitcoin-Qt system configuration and bandwidth requirements

What is the best operating system configuration for a computer to run (bitcoind or bitcoin-Qt) and (BFGminer or CGMiner) under Linux, assuming that it will be connected to a 3 Terrahash mining rig on one side and the internet on the other side?

What packages, at minimum, must be installed?

How much bandwidth will I need using the Stratum protocol and how much using the GetBlockTemplate protocol?


What I mean by “best configuration” is the minimum configuration that provides the necessary functionality.

I’m willing to bet that 90 percent of what’s in a desktop Linux distribution is not needed in this application.

Obviously, a kernel and a shell will be needed. What else?

Cannot synchronize with Bitcoin in testnet mode

I downloaded Bitcoin-QT for Windows 7 into:


I want to run Bitcoin in testnet mode, so I created bitcoin.conf with only the following content:


I put copies of bitcoin.conf into the following folders:


When I double clicked on the Bitcoin-QT icon to execute the following, Bitcoin-QT starts up but it does not appear to be in testnet mode.


Can anyone tell me why it does not seem to go into testnet mode?

I went to Start > cmd to get the DOS prompt. I entered the following and it worked:

C:\User\MYUSERNAME\Downloads\bitcoin-0.8.-win32\bitcoin-0.8.6-win32>bitcoin-qt.exe -testnet

Bitcoin-QT launches in testnet mode. However, it is not synchronizing with the network. At the bottom, it shows “No block source available…155 weeks behind”.

I tried adding the following to bitcoin.conf and restarted bitcoin-qt.exe -testnet but it didn’t make any difference.


After a few hours, it still shows “No block source available…155 weeks behind”. How do I get this to synchronize?