Skip to content

embark blockchain keeps mining with periodic mining disabled #74

@jorisbontje

Description

@jorisbontje

embark 0.9.0, new demo project:

$ embark blockchain
>> Local Npm module "grunt-cli" not found. Is it installed?

Running "blockchain:development" (blockchain) task
=== datadir created
running: geth --datadir="/tmp/embark" --logfile="/tmp/embark.log" --port 30303 --rpc --rpcport 8101 --rpcaddr localhost --networkid 90440 --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 30303 --rpc --rpcport 8101 --rpcaddr localhost --networkid 90440 --rpccorsdomain "*" --minerthreads "1" --mine --genesis="config/genesis/dev_genesis.json" --rpcapi "eth,web3" --maxpeers 4 --password config/password account new
Address: {dd878df7d48ff657e8a3c7c0902cad05239d2f7e}
running: geth --datadir="/tmp/embark" --logfile="/tmp/embark.log" --port 30303 --rpc --rpcport 8101 --rpcaddr localhost --networkid 90440 --rpccorsdomain "*" --minerthreads "1" --mine --genesis="config/genesis/dev_genesis.json" --rpcapi "eth,web3" --maxpeers 4 --password config/password --unlock dd878df7d48ff657e8a3c7c0902cad05239d2f7e js node_modules/embark-framework/js/mine.js
I0902 09:29:26.899273    3539 database.go:73] Alloted 16MB cache to /tmp/embark/chaindata
I0902 09:29:26.901713    3539 database.go:73] Alloted 16MB cache to /tmp/embark/dapp
I0902 09:29:26.903511    3539 backend.go:291] Protocol Versions: [62 61], Network Id: 90440
I0902 09:29:26.904384    3539 backend.go:303] Successfully wrote genesis block. New genesis hash = cd9c11da1e46f86ce40a38b6ef84cfdfa6ea92598a27538f0e87da6d7a5c73d5
I0902 09:29:26.904427    3539 backend.go:328] Blockchain DB Version: 3
I0902 09:29:26.904606    3539 chain_manager.go:237] Last block (#0) cd9c11da1e46f86ce40a38b6ef84cfdfa6ea92598a27538f0e87da6d7a5c73d5 TD=262144
I0902 09:29:26.908899    3539 cmd.go:125] Starting Geth/v1.1.0/darwin/go1.5
I0902 09:29:26.909014    3539 server.go:311] Starting Server
I0902 09:29:29.013251    3539 udp.go:207] Listening, enode://837795be8a767d902d61fae4c6865d35d201ce5fd69935767fcc5803612e5523b6e49ba66f19789ea6afac134ea6a5bb7156ef87aa54beb3c1ffd453e669512a@[::]:30303
I0902 09:29:29.013580    3539 backend.go:557] Server started
I0902 09:29:29.013673    3539 backend.go:640] Automatic pregeneration of ethash DAG ON (ethash dir: /Users/mids/.ethash)
I0902 09:29:29.013561    3539 server.go:552] Listening on [::]:30303
I0902 09:29:29.013936    3539 backend.go:647] checking DAG (ethash dir: /Users/mids/.ethash)
Account 'dd878df7d48ff657e8a3c7c0902cad05239d2f7e' unlocked.
I0902 09:29:30.051561    3539 ipc_unix.go:104] IPC service started (/tmp/embark/geth.ipc)
I0902 09:29:30.053010    3539 miner.go:119] Starting mining operation (CPU=1 TOT=3)
I0902 09:29:30.053363    3539 worker.go:540] commit new work on block 1 with 0 txs & 0 uncles. Took 315.394µs
I0902 09:29:30.053487    3539 ethash.go:202] Generating DAG for epoch 0 (0000000000000000000000000000000000000000000000000000000000000000)
== Funding account
I0902 09:29:30.095801    3539 miner.go:119] Starting mining operation (CPU=1 TOT=3)
I0902 09:29:30.096123    3539 worker.go:540] commit new work on block 1 with 0 txs & 0 uncles. Took 269.372µs
I0902 09:29:30.931159    3539 ethash.go:219] Done generating DAG for epoch 0, it took 877.695565ms
I0902 09:29:34.987144    3539 worker.go:322] 🔨  Mined block (#1 / d828ce4b). Wait 5 blocks for confirmation
I0902 09:29:34.987555    3539 worker.go:540] commit new work on block 2 with 0 txs & 0 uncles. Took 370.358µs
I0902 09:29:34.987769    3539 worker.go:540] commit new work on block 2 with 0 txs & 0 uncles. Took 176.252µs
I0902 09:29:35.219481    3539 worker.go:322] 🔨  Mined block (#2 / 4b40ec68). Wait 5 blocks for confirmation
I0902 09:29:35.219778    3539 worker.go:540] commit new work on block 3 with 0 txs & 0 uncles. Took 263.043µs
I0902 09:29:35.220036    3539 worker.go:540] commit new work on block 3 with 0 txs & 0 uncles. Took 202.756µs
I0902 09:29:35.906844    3539 worker.go:322] 🔨  Mined block (#3 / 664b3867). Wait 5 blocks for confirmation
I0902 09:29:35.907187    3539 worker.go:540] commit new work on block 4 with 0 txs & 0 uncles. Took 302.9µs
I0902 09:29:35.907502    3539 worker.go:540] commit new work on block 4 with 0 txs & 0 uncles. Took 253.467µs
== Account funded
I0902 09:29:39.125270    3539 worker.go:322] 🔨  Mined block (#4 / e48fdee9). Wait 5 blocks for confirmation
I0902 09:29:39.125656    3539 worker.go:540] commit new work on block 5 with 0 txs & 0 uncles. Took 347.644µs
I0902 09:29:39.125937    3539 worker.go:540] commit new work on block 5 with 0 txs & 0 uncles. Took 237.935µs
== Account funded
I0902 09:29:39.224179    3539 worker.go:322] 🔨  Mined block (#5 / c3671f3c). Wait 5 blocks for confirmation
I0902 09:29:39.224613    3539 worker.go:540] commit new work on block 6 with 0 txs & 0 uncles. Took 400.951µs
I0902 09:29:39.224906    3539 worker.go:540] commit new work on block 6 with 0 txs & 0 uncles. Took 234.599µs
== Account funded
I0902 09:29:42.143643    3539 worker.go:322] 🔨  Mined block (#6 / b0ea38b0). Wait 5 blocks for confirmation
I0902 09:29:42.143926    3539 worker.go:540] commit new work on block 7 with 0 txs & 0 uncles. Took 244.903µs
I0902 09:29:42.143962    3539 worker.go:420] 🔨 🔗  Mined 5 blocks back: block #1
I0902 09:29:42.144203    3539 worker.go:540] commit new work on block 7 with 0 txs & 0 uncles. Took 216.238µs
== Account funded
I0902 09:29:52.091917    3539 worker.go:322] 🔨  Mined block (#7 / 6cf5db33). Wait 5 blocks for confirmation
I0902 09:29:52.092184    3539 worker.go:540] commit new work on block 8 with 0 txs & 0 uncles. Took 232.089µs
I0902 09:29:52.092218    3539 worker.go:420] 🔨 🔗  Mined 5 blocks back: block #2
I0902 09:29:52.092412    3539 worker.go:540] commit new work on block 8 with 0 txs & 0 uncles. Took 170.819µs
== Account funded
I0902 09:29:53.560441    3539 worker.go:322] 🔨  Mined block (#8 / 060f6bc0). Wait 5 blocks for confirmation
I0902 09:29:53.560751    3539 worker.go:540] commit new work on block 9 with 0 txs & 0 uncles. Took 269.487µs
I0902 09:29:53.560789    3539 worker.go:420] 🔨 🔗  Mined 5 blocks back: block #3
I0902 09:29:53.561016    3539 worker.go:540] commit new work on block 9 with 0 txs & 0 uncles. Took 190.979µs
== Account funded
I0902 09:29:56.363243    3539 worker.go:322] 🔨  Mined block (#9 / ee4591ed). Wait 5 blocks for confirmation
I0902 09:29:56.363622    3539 worker.go:540] commit new work on block 10 with 0 txs & 0 uncles. Took 342.156µs
I0902 09:29:56.363665    3539 worker.go:420] 🔨 🔗  Mined 5 blocks back: block #4
I0902 09:29:56.363980    3539 worker.go:540] commit new work on block 10 with 0 txs & 0 uncles. Took 277.402µs
== Account funded

I would expect the mining to stop after the first Account funded message, waiting for new transactions before resuming (as it used to be the case in embark 0.8.6). Instead it keeps on mining.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions