My transactions are not getting mined....can anybody help?

I was able to build Eth on windows....I am trying to setup a private test net with single node.....But my transactions are not getting mined....

Here is how I am running my eth node

eth --private 15101984 --config private/test/config.json --genesis-json private/test/genesis.json --db-path private/.ethereum_experiment -v 9 -m on

Following is my config.json

{
"sealEngine": "Ethash",
"params": {
"accountStartNonce": "0x00",
"frontierCompatibilityModeLimit": "0xffffffff",
"maximumExtraDataSize": "0x0400",
"tieBreakingGas": false,
"minGasLimit": "125000",
"maxGasLimit": "7fffffffffffffff",
"gasLimitBoundDivisor": "0x0400",
"minimumDifficulty": "0x020000",
"difficultyBoundDivisor": "0x0800",
"durationLimit": "0x08",
"blockReward": "0x14D1120D7B160000",
"registrar": "5e70c0bbcd5636e0f9f9316e9f8633feb64d4050",
"networkID" : "0xE67020"
},
"genesis": {
"nonce": "0x0000000000000042",
"difficulty": "0x40000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"author": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x4c4b40"
},
"accounts": {
"0x540be54a5cb7fe98a7531e6c19357aa75e968043": { "wei": "10000000000000000000" }
}
}

------------------------------------------------

Following is my genesis.json

{
"nonce": "0x0000000000000042",
"difficulty": "0x40000",
"alloc": {
"0x540be54a5cb7fe98a7531e6c19357aa75e968043": {
"balance": "20000000000000000000"
}
},
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x4c4b40"
}

-----------------------------------------------

Now I attach my node using IPC through geth console....geth attach

I try to create following simple contract by sending a transaction,

contract SimpleStorage {
uint storedData;

function set(uint x) {
storedData = x;
}

function get() constant returns (uint retVal) {
return storedData;
}
}


Send Transaction:

web3.eth.sendTransaction({from: web3.eth.accounts[10], data: "606060405260978060106000396000f360606040526000357c01000000000000000000000000000000000000000000000000000000009004806360fe47b11460415780636d4ce63c14605757603f565b005b605560048080359060200190919050506078565b005b606260048050506086565b6040518082815260200191505060405180910390f35b806000600050819055505b50565b600060006000505490506094565b9056", gas: 3000000}, function(err, address) {
if (!err)
console.log("Transaction hash :" + address);
});



I get transaction hash as a response from eth node. But transaction is never mined...when I try to get the address of transaction as follows, I always get null.

web3.eth.getTransactionReceipt('0xdbab2e85e3d60bea78886f3923d492a49e1b8e0d96c50530352a9755cce75f8a', function(err, result) {
if (!err)
console.log("Result is " + result);
});

Answers

Sign In or Register to comment.