Run and Restart with "geth" 1.8.2

This section describes run and restart 'geth' 1.8.2 with no blocks truncated.

With "geth" 1.8.2 installed, let's see if we can run, stop, and restart the node without losing any blocks.

1. Restart the "geth" node and mine some blocks:

C:\>\local\bin\geth --datadir \herong\Ethereum\personal
   console 2>> geth-personal.log

instance: Geth/v1.8.2-stable-b8b9f7f4/windows-amd64/go1.9.2
coinbase: 0x05d4e1a499775ce9d681abd50bda655c7b5ccb90
at block: 0 (Sat, 10 Mar 2018 12:59:30 PST)
 datadir: C:\herong\Ethereum\personal
   
> eth.blockNumber
0

> miner.start(1)
...

> eth.blockNumber
39

2. Stop the "geth" node and start it again:

> exit
C:\>

C:\>\local\bin\geth --datadir \herong\Ethereum\personal
   console 2>> geth-personal.log

instance: Geth/v1.8.2-stable-b8b9f7f4/windows-amd64/go1.9.2
coinbase: 0x05d4e1a499775ce9d681abd50bda655c7b5ccb90
at block: 39 (Sat, 10 Mar 2018 14:18:10 PST)
 datadir: C:\herong\Ethereum\personal

> eth.blockNumber
39

Okay, all blocks are restored correctly.

3. Check the log file:

Commit new mining work              number=39 txs=0 uncles=0
Successfully sealed new block       number=39 hash=35c78d…2a3aeb
block reached canonical chain       number=34 hash=043878…589cb4
mined potential block               number=39 hash=35c78d…2a3aeb
IPC endpoint closed                 endpoint=\\\\.\\pipe\\geth.ipc
Writing cached state to disk        block=39 hash=35c78d…2a3aeb 
   root=e1e431…d46c95
Persisted trie from memory database nodes=1 size=203.00B time=26ms 
   gcnodes=0 gcsize=0.00B gctime=0s livenodes=39 livesize=5.74kB
Writing cached state to disk        block=38 hash=c50660…748acb 
   root=54bace…2522ed
Persisted trie from memory database nodes=1 size=151.00B time=0s   
   gcnodes=0 gcsize=0.00B gctime=0s livenodes=38 livesize=5.59kB
Blockchain manager stopped 
Stopping Ethereum protocol 
Ethereum protocol stopped 
Transaction pool stopped 
Database closed                     
   database=C:\\herong\\Ethereum\\personal\\geth\\chaindata
   ("geth" is cloased now)

   ("geth" is started again)
Maximum peer count                  ETH=25 LES=0 total=25
Starting peer-to-peer node          instance=Geth/v1.8.2-stable-...
Allocated cache and file handles    
   database=C:\\herong\\Ethereum\\personal\\geth\\chaindata cache=768 
Initialised chain configuration     config="{ChainID: 314 Homestead: ...
Disk storage enabled for ethash caches   
   dir=C:\\herong\\Ethereum\\personal\\geth\\ethash count=3
Disk storage enabled for ethash DAGs     
   dir=C:\\Users\\heyang\\AppData\\Ethash           count=2
Initialising Ethereum protocol      versions="[63 62]" network=1
Loaded most recent local header     number=39 hash=35c78d…2a3aeb 
Loaded most recent local full block number=39 hash=35c78d…2a3aeb 
Loaded most recent local fast block number=39 hash=35c78d…2a3aeb 
Loaded local transaction journal         transactions=0 dropped=0
Regenerated local transaction journal    transactions=0 accounts=0
Blockchain not empty, fast sync disabled 
Starting P2P networking 
UDP listener up                     self=enode://94307d1cb94e4506f1c95...
RLPx listener up                    self=enode://94307d1cb94e4506f1c95...
IPC endpoint opened                 url=\\\\.\\pipe\\geth.ipc
Etherbase automatically configured  
   address=0x05D4e1A499775ce9d681ABd50BdA655C7B5cCB90

Good. There no errors in the log file.

Last update: 2018.

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

 geth - Go Ethereum

 Testnet - Ropsten network

 Private Ethereum Network

 64-Bit "geth" for Private Ethereum Network

Private Network with Custom Genesis Block

 Build Genesis Block Manually

 Run "miner" with Lower Difficulty

 Check Mining Rewards on My Account

 Pre-Allocate Ether in Genesis Block

 Build Ethereum Private Network Properly

 Blockchain Difficulty Level and Growth Rate

 "Head State Missing" Error on Restarting "geth"

 Download and Install "geth" 1.8.2

Run and Restart with "geth" 1.8.2

 Transferring Funds between Ether Accounts

 MetaMask - Browser Based Ethereum Wallet

 Managing Ethereum Account

 ethereumfaucet.info - Mining Ether with Browser

 References

 PDF Printing Version