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:

    litecoin=math.Object(
    PARENT=networks.nets['litecoin'],
    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
    IDENTIFIER='e037d5b8c6923410'.decode('hex'),
    PREFIX='7208c1a53ef629b0'.decode('hex'),
    P2P_PORT=9 338,
    MIN_TARGET=0,
    MAX_TARGET=2**256//2**20 - 1,
    PERSIST=True,
    WORKER_PORT=9327,
    BOOTSTRAP_ADDRS='...'.split(' '),
    ANNOUNCE_CHANNEL='#p2pool-ltc',
    VERSION_CHECK=lambda v: True,
    VERSION_WARNING=lambda v: 'Upgrade Litecoin to >=0.8.5.1!' 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)?

Can’t send raw transaction. Bitcoind error: {“code”:-22,”message”:”TX rejected”}

I have this raw transaction:

01000000024ae83382c185ba9a2fcaf0092bed4e8f74d31ca8eb234513c308b615fb9e3e3a000000006b48304502203ac946b370ecb43a32c3bf67598ca3ddc9818cb9efd0c6a6e68aca6e20d95b06022100841f3eed93cb955f9e1cbd26d23da3b80866872852ec5920d6ff794bd218bee40121035dea6c0ecb52807e2b7a9864c3212451e836eb0fd7cc6ba3369748825e2606f9ffffffffa3d6dc0d21402967de9431fde06d6b1cb458260d7852038035a79ec7554efcd9000000006b4830450220644bbf5a711243f679655e7ce7c193a8dde5fd110252dfdb4dd2d05d21e1b0a4022100a22c656b1e897bac71bf2d89e385eda4bdade16ca04957537fc73f903cb614d001210395676e88fe9ae950d40915df040a3610e1f42368f4a842692c24b29fd9d78a7bffffffff0330750000000000001976a9143fcf3750b81fad1cd27bae9c34feeefc278360ee88acbc0d0000000000001976a91483c1b13e99ccfc66405ef2ecb76deefca165097588ac204e0000000000001976a9147e69b1309dde4be2e39e1956ace0fa95db0d01b488ac00000000

It signed and ready to go

{
    "txid" : "adae77fd1c5cc3ae4429217ea0d84e67ac6f198543374356cc531350b3ad217b",
    "version" : 1,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "3a3e9efb15b608c3134523eba81cd3748f4eed2b09f0ca2f9aba85c18233e84a",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "304502203ac946b370ecb43a32c3bf67598ca3ddc9818cb9efd0c6a6e68aca6e20d95b06022100841f3eed93cb955f9e1cbd26d23da3b80866872852ec5920d6ff794bd218bee401 035dea6c0ecb52807e2b7a9864c3212451e836eb0fd7cc6ba3369748825e2606f9",
                "hex" : "48304502203ac946b370ecb43a32c3bf67598ca3ddc9818cb9efd0c6a6e68aca6e20d95b06022100841f3eed93cb955f9e1cbd26d23da3b80866872852ec5920d6ff794bd218bee40121035dea6c0ecb52807e2b7a9864c3212451e836eb0fd7cc6ba3369748825e2606f9"
            },
            "sequence" : 4294967295
        },
        {
            "txid" : "d9fc4e55c79ea735800352780d2658b41c6b6de0fd3194de672940210ddcd6a3",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "30450220644bbf5a711243f679655e7ce7c193a8dde5fd110252dfdb4dd2d05d21e1b0a4022100a22c656b1e897bac71bf2d89e385eda4bdade16ca04957537fc73f903cb614d001 0395676e88fe9ae950d40915df040a3610e1f42368f4a842692c24b29fd9d78a7b",
                "hex" : "4830450220644bbf5a711243f679655e7ce7c193a8dde5fd110252dfdb4dd2d05d21e1b0a4022100a22c656b1e897bac71bf2d89e385eda4bdade16ca04957537fc73f903cb614d001210395676e88fe9ae950d40915df040a3610e1f42368f4a842692c24b29fd9d78a7b"
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 0.00030000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 3fcf3750b81fad1cd27bae9c34feeefc278360ee OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a9143fcf3750b81fad1cd27bae9c34feeefc278360ee88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "16pPoiDcGU8P9PcqBqnZGc6SJqeuyLEDEX"
                ]
            }
        },
        {
            "value" : 0.00003516,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 83c1b13e99ccfc66405ef2ecb76deefca1650975 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a91483c1b13e99ccfc66405ef2ecb76deefca165097588ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1D1fZ7SPBtDZ4iVy9Ut5Dg5rv7PChc6PHv"
                ]
            }
        },
        {
            "value" : 0.00020000,
            "n" : 2,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 7e69b1309dde4be2e39e1956ace0fa95db0d01b4 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a9147e69b1309dde4be2e39e1956ace0fa95db0d01b488ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1CXQknoy7hvc4sVnQxCL2LnGZQ6C8H4yU8"
                ]
            }
        }
    ]
}

But when I try to broadcast it to blockchain through sendrawtransaction it doesn’t work: error: {“code”:-22,”message”:”TX rejected”}

Why? What’s wrong with transaction? If you take a look on inputs and outputs you can see everything is look correct. I really don’t understand why…

Please advise how to fix it and make it works.

Update: Wait a minute! I just found this post Why is a transaction with outputs of less than ฿0.00005460 rejected? … It means if my change below then some “dust” value in BTC I can’t send it???

But this is not dust. This is my change!

So how to keep my change less then 5460 satoshis? What is solution?

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.
        block.print();
        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.
Aborted

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
https://blockchain.info/api/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

https://en.bitcoin.it/wiki/Block_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?

Thanks

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?

EDIT TO ADD:

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?