Author

Topic: Problem with getblocktemplate (after general node blackout) (Read 1187 times)

newbie
Activity: 3
Merit: 0
I understood that, but let's say you don't have many nodes, you have 3 Node that are on Block 148545 and 3 Nodes that haven't synced the blockchain and are at Block 148535 and then the main nodes have at the same time a catastrophic failure. Then the other 3 Nodes should be able to start mining again, starting at Block 148535. They have no information of the 10 missing Blocks, so they can move forward. Eventually you lost 10 blocks but you can continue with the same blockchain.

Is that correct or i'm understanding something wrong?

Thanks a lot.

Best Regards,

Hashingmaster.
legendary
Activity: 1512
Merit: 1036
You cannot mine more blocks without downloading all the blocks. The reason it is called a blockchain is that all blocks rely on information from previous blocks.

In my signature is a link. You can read the section about the blockchain and mining to see what it is that you are actually doing when you mine.
newbie
Activity: 3
Merit: 0
Hello There!

Appreciate your post. It's not bitcoin, it's another alternative cryptocurrency. So there isn't any mining node and the blockchain is some hours behind.

How can you force the node to start mining again on the current block?
How does the node know that he is up to date?

Thanks a lot.

Best Regards,

Hashingmaster.
legendary
Activity: 1512
Merit: 1036
You don't give a clear enough explanation here, but it seems like you have multiple internal bitcoinds that look to a gateway bitcoind for their blocks and transactions.

If that is the scenario, and the gateway bitcoind (the only one that connects to the the bitcoin network) died and had to be rebuilt, it will not be functional again and give its children blocks and work until it is caught up. To add a new block to the blockchain, a bitcoin mining node must have downloaded all prior blockchain data up to the most recent network block.

The fastest way to jump-start installation would be to take an entire current %datadir% from another bitcoin (minus wallet) and load it up on the new server before starting it.
newbie
Activity: 3
Merit: 0
We had a problem and the running nodes aren't available anymore. So we setup a new node and every client can sync again, but we can't start mining again because getblocktemplate is returning:

error: {"code":-1,"message":"getblocktemplate [params]\nIf [params] does not contain a \"data\" key, returns data needed to construct a block to work on:\n  \"version\" : block version\n  \"previousblockhash\" :
 hash of current highest block\n  \"transactions\" : contents of non-coinbase transactions that should be included in the next block\n  \"coinbaseaux\" : data that should be included in coinbase\n  \"coinbaseval
ue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n  \"target\" : hash target\n  \"mintime\" : minimum timestamp appropriate for next block\n  \"curtime\
" : current timestamp\n  \"mutable\" : list of ways the block template may be changed\n  \"noncerange\" : range of valid nonces\n  \"sigoplimit\" : limit of sigops in blocks\n  \"sizelimit\" : limit of block siz
e\n  \"bits\" : compressed target of next block\n  \"height\" : height of the next block\nIf [params] does contain a \"data\" key, tries to solve the block and returns null if it was successful (and \"rejected\"
 if not)\nSee https://en.bitcoin.it/wiki/BIP_0022 for full specification."}

The problem is that the node is not up to date, some 10'000 blocks away from the last block that was generated before everything went down.

What do you have to when you want to start mining again, even if you loose those 10'000 blocks that where generated before.

Thanks for the help.

Best Regards,

Hashingmaster.
Jump to: