在win7-64位,4G内存。建立以太坊私有链。
miner.start(),启动挖矿,两三秒程序崩溃退出,查看日志:
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 (2262933504 in use)
fatal error: out of memory
我的geth.exe是自己源码编译(golang,gcc都是32位);
解决办法:用64位go,gcc重新编译;
有疑问加站长微信联系(非本文作者)