current position:Home>After the private chain is restarted, the Ethernet balance of the account is cleared

After the private chain is restarted, the Ethernet balance of the account is cleared

2022-02-03 20:55:58 Q & A of Denglian community

Use geth Build a private chain , After the construction, pass miner.start() Mining for etheric coins .

problem :1. But after restarting the private chain , The account still exists, but the balance in the account is 0.2. After restarting the private chain , Save block data data Folder becomes smaller

The command to start the private chain is :geth --datadir ./data --networkid 17173 --port 30303 --rpc --rpcport 8545 --rpcapi 'db,net,eth,web3,personal' --rpccorsdomain '*' --gasprice 0 --allow-insecure-unlock console 2> 1.log

Chuangshi block is configured as :

{    "config": {      "chainId": 666,      "homesteadBlock": 0,      "eip150Block": 0,      "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",      "eip155Block": 0,      "eip158Block": 0,      "byzantiumBlock": 0,      "constantinopleBlock": 0,      "petersburgBlock": 0,      "istanbulBlock": 0,      "ethash": {}    },    "nonce": "0x0",    "timestamp": "0x5ddf8f3e",    "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",    "gasLimit": "0x47b760",    "difficulty": "0x00002",    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",    "coinbase": "0x0000000000000000000000000000000000000000",    "alloc": { },    "number": "0x0",    "gasUsed": "0x0",    "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"  }

The following is a screenshot of command execution :1. After opening the private chain, conduct mining and screenshot of mining results :.png2. Screenshot of querying account balance after restarting the private chain :.png You can see the... Displayed on the console in the two queries at block All are 0 And the time is the same , I don't know if this is the reason




Take the answer 1:

I also met... Two days ago !! It's solved later , It's because the account was closed abnormally before it was completely updated






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032055558817.html

Random recommended