0

I setup a private POA ethereum network, Here are info about it :

  • one bootnode in 43.247.91.xxx, all ethereum nodes use it as bootnode.
  • 3 signer nodes(named A,B,C), A hosts in 43.247.91.xxx, B hosts in 123.206.83.xxx, C hosts in 123.207.166.xxx.
  • all ports for A,B,C are opened.

Here is the version info:

Geth  
Version: 1.8.11-stable  
Architecture: amd64  
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.10.2
Operating System: linux
GOPATH=
GOROOT=/usr/local/go

Here is the genesis file:

{
  "config": {
    "chainId": 49344,
    "homesteadBlock": 1,
    "eip150Block": 2,
    "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "eip155Block": 3,
    "eip158Block": 3,
    "byzantiumBlock": 4,
    "clique": {
      "period": 15,
      "epoch": 30000
    }
  },
  "nonce": "0x0",
  "timestamp": "0x5b3cecac",
  "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000b6ad12333e3f48f9926d6cd8f407978ea16920d6fa3142b2e51e84cdebda4e4976e013988c3a1c4afaac28931297d26355404aead21312384168d4590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "gasLimit": "0x59A5380",
  "difficulty": "0x1",
  "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "coinbase": "0x0000000000000000000000000000000000000000",
  "alloc": {
    "7abc981bc05de59e62168acd37ceexxxxxxxxxxx": {
      "balance": "8000000000000000000000000000000000000000"
    },
    "8a99d622d45458e973a2138457xxxxxxxxxxxxxx": {
      "balance": "8000000000000000000000000000000000000000"
    }
  },
  "number": "0x0",
  "gasUsed": "0x0",

  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}

Here is the toml config file:

[Eth]
NetworkId = 49344
SyncMode = "full"
LightPeers = 100
DatabaseCache = 768
GasPrice = 1
EnablePreimageRecording = false

[Eth.Ethash]
CacheDir = "ethash"
CachesInMem = 2
CachesOnDisk = 3
DatasetDir = "/home/cocolian/eth/ethash"
DatasetsInMem = 1
DatasetsOnDisk = 2
PowMode = 0

[Eth.TxPool]
NoLocals = false
Journal = "transactions.rlp"
Rejournal = 3600000000000
PriceLimit = 1
PriceBump = 10
AccountSlots = 16
GlobalSlots = 4096
AccountQueue = 64
GlobalQueue = 1024
Lifetime = 10800000000000

[Eth.GPO]
Blocks = 20
Percentile = 60

[Shh]
MaxMessageSize = 1048576
MinimumAcceptedPOW = 2e-01

[Node]
DataDir = "/home/cocolian/eth/data"
IPCPath = "geth.ipc"
HTTPHost = "0.0.0.0"
HTTPPort = 3088
HTTPCors = ["*"]
HTTPVirtualHosts = ["localhost"]
HTTPModules = ["personal", "db", "eth", "net", "web3", "txpool", "miner"]
WSPort = 3046
WSModules = ["net", "web3", "eth", "shh"]

[Node.P2P]
MaxPeers = 25
NoDiscovery = true
BootstrapNodes = ["enode://6d03fa7c6a0a60effc39df0c0d21d1d16b9a9a4a651b8cc48ea95ea36fe94072ce1fd7baf724b75ed0ca76b657ffb8b25515a33747a50241945eb75b8a90a79e@43.247.91.xxx:3888"]
BootstrapNodesV5 = ["enode://6d03fa7c6a0a60effc39df0c0d21d1d16b9a9a4a651b8cc48ea95ea36fe94072ce1fd7baf724b75ed0ca76b657ffb8b25515a33747a50241945eb75b8a90a79e@43.247.91.xxx:3888"]
StaticNodes = [A,B,C node set other two nodes as static nodes]
TrustedNodes = [same as static nodes]

ListenAddr = ":3084"
EnableMsgEvents = false

[Dashboard]
Host = "localhost"
Port = 8080
Refresh = 5000000000

The command line to startup A,B,C node for mining:

geth --mine --nodiscover --config config.toml --verbosity 4 --nat 'none' --unlock '0xb6ad12333e3f48f9926d6cd8f407978ea16920d6' --password passwdfilepath

for each node, A,B,C which admin.peers command, it can see other two nodes. So I think connection among these nodes are OK.

We prefund two accounts with some ethers in genesis files. These accounts were imported into node A. and then I executed sendTransaction command in it:

eth.sendTransaction({from: eth.accounts[2], to: eth.accounts[0], value: web3.toWei(20000000, "ether"),gasPrice: 20000, nonce:1})

After some minutes, I checked the balance of all 3 accounts in node A, they were no changed. i.e. the transaction is not executed.

For all log files in node A, B, C, I found the following information:

INFO [07-11|13:20:26] Signed recently, must wait for others
INFO [07-11|13:21:11] Signed recently, must wait for others
INFO [07-11|13:21:56] Signed recently, must wait for others
INFO [07-11|13:22:41] Signed recently, must wait for others
INFO [07-11|13:23:26] Signed recently, must wait for others
INFO [07-11|13:24:11] Signed recently, must wait for others
INFO [07-11|13:24:56] Signed recently, must wait for others
INFO [07-11|13:25:41] Signed recently, must wait for others
INFO [07-11|13:26:26] Signed recently, must wait for others

So, what's the wrong? Your help is appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.