qiyichain / peculiar

Golang implemention of Qiyi chain which is a high-performance permissioned public chain
https://qiyichain.cn
GNU Lesser General Public License v3.0
3 stars 1 forks source link

system validator contract address can't add new validator when its address is not in B-end whitelist #17

Closed youngqqcn closed 2 years ago

youngqqcn commented 2 years ago

system validator contract address can't add new validator when its address is not in B-end whitelist

# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x1639696d8c80f084b977c4111e47284f6df326bf8d1d3dc2103c459601791538"],"id":1}' localhost:8545 -s | jq
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x8dab190e7dadceda2dddb266e2afac87a2f0a61c6a65014d1cf0f8fdd3a7dfc9",
    "blockNumber": "0xe949",
    "contractAddress": null,
    "cumulativeGasUsed": "0xf018",
    "effectiveGasPrice": "0x9502f900",
    "from": "0xf513e4e5ded9b510780d016c482fc158209de9aa",
    "gasUsed": "0xf018",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "status": "0x0",
    "to": "0x000000000000000000000000000000000000f000",
    "transactionHash": "0x1639696d8c80f084b977c4111e47284f6df326bf8d1d3dc2103c459601791538",
    "transactionIndex": "0x0",
    "type": "0x2"
  }
}
youngqqcn commented 2 years ago

we should add 0x000000000000000000000000000000000000f000 as B-end whitelist in default.

youngqqcn commented 2 years ago

fixed at pull #18