Problem with private chain and mining

AirwaveAirwave Posts: 4Member
Hi everyone,

I'm currently working on a private testchain and have the problems with mining on it.
Everytime I try to start to mine, my primary Geth instance is crashing.


I've done the following on a windows 7 x32 system with Geth 1.6.1:

Created a blockchain with genesis block:
{ "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "difficulty": "400", "gasLimit": "2100000", "alloc": { } }

geth.exe init "D:\dev\Etherium\Blockchain_Testnet01_genesis.json" --datadir "D:\dev\Etherium\Blockchain_Testnet01"

Then I'm starting one instance with:

geth.exe --identity "Testnet01" --rpc --rpcport "8080" --rpccorsdomain "*" --datadir "D:\dev\Etherium\Blockchain_Testnet01" --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid 1999

Then I'm running a second instance with.

"D:\dev\Etherium\geth\geth.exe" attach


In the javascript console of the second instance, I'm entering following code:

personal.newAccount("password") miner.setEtherbase(personal.listAccounts[0]) miner.start()

The account is created, but miner.start() is crashing the primary instance and mining does'nt work...


Can anybody help me, what I'm doning wrong?

Thanks in advance.

Regards

Comments

  • AirwaveAirwave Posts: 4Member
    Hi everybody,

    here is an error from the node for upper problem:


    INFO [06-19|13:18:05] Commit new mining work number=1 txs=0 uncles=0 elapsed=0s
    INFO [06-19|13:18:08] Generating ethash verification cache epoch=0 percentage=78 elapsed=3.000s
    INFO [06-19|13:18:09] Generated ethash verification cache epoch=0 elapsed=3.849s
    ERROR[06-19|13:18:09] Failed to generate mapped ethash dataset epoch=0 err="MapViewOfFile: Not enough storage is available to process this command."

    runtime: out of memory: cannot allocate 2147483648-byte block (103809024 in use)
    fatal error: out of memory


    runtime stack:
    runtime.throw(0xc6c852, 0xd)
    C:/go/src/runtime/panic.go:596 +0x7c
    runtime.largeAlloc(0x7ffff100, 0x13c0201, 0x14)
    C:/go/src/runtime/malloc.go:809 +0xdb
    runtime.mallocgc.func1()
    C:/go/src/runtime/malloc.go:702 +0x31
    runtime.systemstack(0x128a2a80)
    C:/go/src/runtime/asm_386.s:337 +0x5e
    runtime.mstart()
    C:/go/src/runtime/proc.go:1132


    Seems, that geth want's to create a 2GB block? Is this right? How can I tell geth to generate 2MB blocks?

    Thanks in advance.

    Regards
  • AirwaveAirwave Posts: 4Member
    Hi everybody,

    I found an error in the console for the upper problem.
    Seems to be a out of memory error:

    INFO [06-19|13:18:05] Commit new mining work number=1 txs=0 uncles=0 elapsed=0s
    INFO [06-19|13:18:08] Generating ethash verification cache epoch=0 percentage=78 elapsed=3.000s
    INFO [06-19|13:18:09] Generated ethash verification cache epoch=0 elapsed=3.849s
    ERROR[06-19|13:18:09] Failed to generate mapped ethash dataset epoch=0 err="MapViewOfFile: Not enough storage is available to process this command."
    runtime: out of memory: cannot allocate 2147483648-byte block (103809024 in use)
    fatal error: out of memory


    runtime stack:
    runtime.throw(0xc6c852, 0xd)
    C:/go/src/runtime/panic.go:596 +0x7c
    runtime.largeAlloc(0x7ffff100, 0x13c0201, 0x14)
    C:/go/src/runtime/malloc.go:809 +0xdb
    runtime.mallocgc.func1()
    C:/go/src/runtime/malloc.go:702 +0x31
    runtime.systemstack(0x128a2a80)
    C:/go/src/runtime/asm_386.s:337 +0x5e
    runtime.mstart()
    C:/go/src/runtime/proc.go:1132


    But why wants geth to create a 2 GB Block? How can I tell geth to create 2 MB Blocks?
    By the way: I have enough HDD storage.

    Thanks in advance.

    regards
Sign In or Register to comment.