Skip to content

Instantly share code, notes, and snippets.

@jtobin jtobin/mine.log
Created Feb 29, 2016

Embed
What would you like to do?
Ethereum mining attempt log
vagrant@debian-jessie:~$ mkdir stackexchange-example-chain
vagrant@debian-jessie:~$ geth --genesis local_genesis.json --datadir stackexchange-example-chain --ne
tworkid 9991 --nodiscover --maxpeers 0 account new
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase:
Repeat passphrase:
Address: {699ec6d49641e59f65ba4bf72c52628059301e64}
vagrant@debian-jessie:~$ geth --genesis local_genesis.json --datadir stackexchange-example-chain --networkid 9991 --nodiscover --maxpeers 0 console
I0215 10:08:11.260323 ethdb/database.go:71] Alloted 16MB cache to stackexchange-example-chain/chaindata
I0215 10:08:11.288895 ethdb/database.go:71] Alloted 16MB cache to stackexchange-example-chain/dapp
I0215 10:08:11.315620 eth/backend.go:163] Protocol Versions: [63 62 61], Network Id: 9991
I0215 10:08:11.316804 eth/backend.go:171] Successfully wrote custom genesis block: 522fe03765d5834422cd7cfc88c435f33bcd13d7a4c71cd8eaf321a8b3dd8ea3
I0215 10:08:11.317533 eth/backend.go:191] Blockchain DB Version: 3
I0215 10:08:11.318378 core/blockchain.go:210] Last header: #0 [522fe037…] TD=1024
I0215 10:08:11.318882 core/blockchain.go:211] Last block: #0 [522fe037…] TD=1024
I0215 10:08:11.319477 core/blockchain.go:212] Fast block: #0 [522fe037…] TD=1024
I0215 10:08:11.322937 p2p/server.go:311] Starting Server
I0215 10:08:11.337144 p2p/server.go:555] Listening on [::]:30303
I0215 10:08:11.338134 node/node.go:290] IPC endpoint opened: stackexchange-example-chain/geth.ipc
instance: Geth/v1.4.0-unstable/linux/go1.5.1
coinbase: 0x699ec6d49641e59f65ba4bf72c52628059301e64
at block: 0 (Thu, 01 Jan 1970 00:00:00 GMT)
datadir: stackexchange-example-chain
> eth.accounts
["0x699ec6d49641e59f65ba4bf72c52628059301e64"]
> var foo = eth.accounts[0];
undefined
> miner.setEtherbase(foo);
true
> miner.start(2);
true
> I0215 10:08:43.662286 eth/backend.go:415] Automatic pregeneration of ethash DAG ON (ethash dir: /home/vagrant/.ethash)
I0215 10:08:43.662534 miner/miner.go:119] Starting mining operation (CPU=2 TOT=3)
I0215 10:08:43.662853 miner/worker.go:570] commit new work on block 1 with 0 txs & 0 uncles. Took 283.539µs
I0215 10:08:43.662944 ethash.go:220] Generating DAG for epoch 0 (size 1073739904) (0000000000000000000000000000000000000000000000000000000000000000)
I0215 10:08:43.668186 eth/backend.go:422] checking DAG (ethash dir: /home/vagrant/.ethash)
I0215 10:08:44.962408 ethash.go:237] Done generating DAG for epoch 0, it took 1.299460665s
miner.stop(2);
true
> eth.getBalance(foo);
0
> eth.getBlock('pending', true)
{
difficulty: 131072,
extraData: "0xd783010400844765746887676f312e352e31856c696e7578",
gasLimit: 268173313,
gasUsed: 0,
hash: null,
logsBloom: null,
miner: null,
nonce: null,
number: 1,
parentHash: "0x522fe03765d5834422cd7cfc88c435f33bcd13d7a4c71cd8eaf321a8b3dd8ea3",
receiptRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
size: 536,
stateRoot: "0x2fa7b359e63faf5af52846537e67053ffd96d2fd33877704192c9c3e6e6266b9",
timestamp: 1455530923,
totalDifficulty: 0,
transactions: [],
transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
uncles: []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.