Skip to content

Conversation

@jorisbontje
Copy link
Contributor

embark blockchain will now stop mining once the account is funded, fixing #74 :

=== datadir created
running: geth --datadir="/tmp/embark" --logfile="/tmp/embark.log" --port 30304 --rpc --rpcport 8101 --rpcaddr localhost --networkid 52790 --rpccorsdomain "*" --minerthreads "1" --mine --genesis="config/genesis/dev_genesis.json" --rpcapi "eth,web3" --maxpeers 4 --password config/password account list
Fatal: Could not list accounts: no keys in store
Fatal: Could not list accounts: no keys in store
running: geth --datadir="/tmp/embark" --logfile="/tmp/embark.log" --port 30304 --rpc --rpcport 8101 --rpcaddr localhost --networkid 52790 --rpccorsdomain "*" --minerthreads "1" --mine --genesis="config/genesis/dev_genesis.json" --rpcapi "eth,web3" --maxpeers 4 --password config/password account new
Address: {2404694595a072c636196caf07ea569d79a713b4}
running: geth --datadir="/tmp/embark" --logfile="/tmp/embark.log" --port 30304 --rpc --rpcport 8101 --rpcaddr localhost --networkid 52790 --rpccorsdomain "*" --minerthreads "1" --mine --genesis="config/genesis/dev_genesis.json" --rpcapi "eth,web3" --maxpeers 4 --password config/password --unlock 2404694595a072c636196caf07ea569d79a713b4 js /tmp/js/mine.js
I0902 10:12:32.501891    7253 database.go:73] Alloted 16MB cache to /tmp/embark/chaindata
I0902 10:12:32.503502    7253 database.go:73] Alloted 16MB cache to /tmp/embark/dapp
I0902 10:12:32.505111    7253 backend.go:291] Protocol Versions: [61 60], Network Id: 52790
I0902 10:12:32.505829    7253 backend.go:303] Successfully wrote genesis block. New genesis hash = 2027e0692e34ff94ba67bb729833dac34e94fbb12127af1c0373a11fe9d21ddc
I0902 10:12:32.505879    7253 backend.go:328] Blockchain DB Version: 3
I0902 10:12:32.505976    7253 chain_manager.go:237] Last block (#0) 2027e0692e34ff94ba67bb729833dac34e94fbb12127af1c0373a11fe9d21ddc TD=11
I0902 10:12:32.510078    7253 cmd.go:125] Starting Geth/v1.1.1/darwin/go1.5
I0902 10:12:32.510214    7253 server.go:311] Starting Server
I0902 10:12:34.615296    7253 udp.go:207] Listening, enode://1772d71723a9d4e2aeda42003b52c2969d337230c8d5520f1dffda107f08225faca7ae4f6e5906d1ed1d907cb3bf522454d70beac0a5556c97778e6af07be10d@[::]:30304
I0902 10:12:34.615530    7253 backend.go:557] Server started
I0902 10:12:34.615564    7253 backend.go:640] Automatic pregeneration of ethash DAG ON (ethash dir: /Users/mids/.ethash)
I0902 10:12:34.615645    7253 server.go:552] Listening on [::]:30304
I0902 10:12:34.615728    7253 backend.go:647] checking DAG (ethash dir: /Users/mids/.ethash)
Account '2404694595a072c636196caf07ea569d79a713b4' unlocked.
I0902 10:12:35.634375    7253 ipc_unix.go:104] IPC service started (/tmp/embark/geth.ipc)
I0902 10:12:35.635605    7253 miner.go:119] Starting mining operation (CPU=1 TOT=3)
I0902 10:12:35.635854    7253 worker.go:540] commit new work on block 1 with 0 txs & 0 uncles. Took 223.57µs
I0902 10:12:35.635924    7253 ethash.go:202] Generating DAG for epoch 0 (0000000000000000000000000000000000000000000000000000000000000000)
== Funding account
I0902 10:12:35.678754    7253 miner.go:119] Starting mining operation (CPU=1 TOT=3)
I0902 10:12:35.679020    7253 worker.go:540] commit new work on block 1 with 0 txs & 0 uncles. Took 227.896µs
I0902 10:12:36.491578    7253 ethash.go:219] Done generating DAG for epoch 0, it took 855.660105ms
I0902 10:12:38.279623    7253 worker.go:322] 🔨  Mined block (#1 / 3e36eac8). Wait 5 blocks for confirmation
I0902 10:12:38.279969    7253 worker.go:540] commit new work on block 2 with 0 txs & 0 uncles. Took 312.637µs
I0902 10:12:38.280173    7253 worker.go:540] commit new work on block 2 with 0 txs & 0 uncles. Took 166.305µs
I0902 10:12:38.697485    7253 worker.go:322] 🔨  Mined block (#2 / 416a5d9d). Wait 5 blocks for confirmation
I0902 10:12:38.697757    7253 worker.go:540] commit new work on block 3 with 0 txs & 0 uncles. Took 244.498µs
I0902 10:12:38.697973    7253 worker.go:540] commit new work on block 3 with 0 txs & 0 uncles. Took 182.393µs
I0902 10:12:39.220405    7253 worker.go:322] 🔨  Mined block (#3 / 19b2ffff). Wait 5 blocks for confirmation
I0902 10:12:39.220818    7253 worker.go:540] commit new work on block 4 with 0 txs & 0 uncles. Took 376.998µs
I0902 10:12:39.221064    7253 worker.go:540] commit new work on block 4 with 0 txs & 0 uncles. Took 201.416µs
I0902 10:12:39.493988    7253 worker.go:322] 🔨  Mined block (#4 / 7dc676b4). Wait 5 blocks for confirmation
I0902 10:12:39.494360    7253 worker.go:540] commit new work on block 5 with 0 txs & 0 uncles. Took 326.932µs
I0902 10:12:39.494594    7253 worker.go:540] commit new work on block 5 with 0 txs & 0 uncles. Took 189.869µs
I0902 10:12:39.642193    7253 worker.go:322] 🔨  Mined block (#5 / ea797875). Wait 5 blocks for confirmation
I0902 10:12:39.642609    7253 worker.go:540] commit new work on block 6 with 0 txs & 0 uncles. Took 377.601µs
I0902 10:12:39.642954    7253 worker.go:540] commit new work on block 6 with 0 txs & 0 uncles. Took 261.779µs
== Account funded
I0902 10:12:48.978034    7253 xeth.go:985] Tx(0xd4c136e015fc04b256f4453e7d5fbca46f0192d15e5f4288e42a6107b2ca487c) created: 0x0f00476315f759e03476edd64795c8cae6328c5b
== Pending transactions! Looking for next block...
I0902 10:12:49.250593    7253 miner.go:119] Starting mining operation (CPU=1 TOT=3)
I0902 10:12:49.251329    7253 worker.go:540] commit new work on block 6 with 1 txs & 0 uncles. Took 707.52µs
I0902 10:12:50.723454    7253 worker.go:322] 🔨  Mined block (#6 / 0ec3276b). Wait 5 blocks for confirmation
I0902 10:12:50.723885    7253 worker.go:540] commit new work on block 7 with 0 txs & 0 uncles. Took 390.176µs
I0902 10:12:50.723962    7253 worker.go:420] 🔨 🔗  Mined 5 blocks back: block #1
I0902 10:12:50.724363    7253 worker.go:540] commit new work on block 7 with 0 txs & 0 uncles. Took 358.317µs
== No transactions left. Stopping miner...

iurimatias added a commit that referenced this pull request Sep 5, 2015
stop blockWatcher filter with correct method name. fixes #74
@iurimatias iurimatias merged commit cd56ac6 into embarklabs:develop Sep 5, 2015
andremedeiros pushed a commit that referenced this pull request Oct 9, 2018
Disable websocket and limit the number of record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants