Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my kotti authority node keeps falling out of sync #22

Closed
meowsbits opened this issue Feb 19, 2020 · 1 comment
Closed

my kotti authority node keeps falling out of sync #22

meowsbits opened this issue Feb 19, 2020 · 1 comment

Comments

@meowsbits
Copy link
Member

meowsbits commented Feb 19, 2020

Migrated from: etclabscore/multi-geth-fork#49
Original author: @meowsbits


This is the latest case, the mismatching block (my current head which is different than canonical):

> eth.getBlock("latest", true);
{
  difficulty: 1,
  extraData: "0x455443204c616273204b6f74746900000000000000000000000000000000000063bfd5ae04df0435987ef8928aaa6c3882d591b70c3344c51db40c273c59352d6e818826fd03f35a5c44c2ab49c446acd051d9b34504d851fbb7a5b7590cbd3c00",
  gasLimit: 8000000,
  gasUsed: 0,
  hash: "0x4497aa8619d3ec1ae177ffa12d9e65b94975e50f8a866621ee653987c4ad33ea",
  logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  miner: "0x0000000000000000000000000000000000000000",
  mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
  nonce: "0x0000000000000000",
  number: 1265038,
  parentHash: "0xc695c15cebb690cffa48e27c310f8738450e100b19e3f2d3b0c94458e8416221",
  receiptsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  size: 609,
  stateRoot: "0x8627b1972780da86ab7781cb8cb97a8756e83040f110b0e1f2cc45e4fcd33ff8",
  timestamp: 1572865977,
  totalDifficulty: 1957838,
  transactions: [],
  transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  uncles: []
}
> web3.toAscii(eth.getBlock("latest", true).extraData);
"ETC Labs Kotti\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00c¿Õ®\x04ß\x045\u0098~ø\u0092\u008aªl8\u0082Õ\u0091·\f3DÅ\x1d´\f'<Y5-n\u0081\u0088&ý\x03óZ\D«IÄF¬ÐQÙ³E\x04ØQû·¥·Y\f½<\x00"

Visible in this screenshot:
Screenshot_20191107_100423


  • The block authorities are different; my block has ETC Labs as the block signer (via block extra data), while canonical reports notti-kotti-... as the block maker.
  • Canonical includes a transaction, mine does not.

Mismatch block JSON comparison

Mine:

{
  "jsonrpc": "2.0", 
  "id": 1, 
  "result": {
    "difficulty": "0x1", 
    "extraData": "0x455443204c616273204b6f74746900000000000000000000000000000000000063bfd5ae04df0435987ef8928aaa6c3882d591b70c3344c51db40c273c59352d6e818826fd03f35a5c44c2ab49c446acd051d9b34504d851fbb7a5b7590cbd3c00", 
    "gasLimit": "0x7a1200", 
    "gasUsed": "0x0", 
    "hash": "0x4497aa8619d3ec1ae177ffa12d9e65b94975e50f8a866621ee653987c4ad33ea", 
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 
    "miner": "0x0000000000000000000000000000000000000000", 
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", 
    "nonce": "0x0000000000000000", 
    "number": "0x134d8e", 
    "parentHash": "0xc695c15cebb690cffa48e27c310f8738450e100b19e3f2d3b0c94458e8416221", 
    "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 
    "size": "0x261", 
    "stateRoot": "0x8627b1972780da86ab7781cb8cb97a8756e83040f110b0e1f2cc45e4fcd33ff8", 
    "timestamp": "0x5dc007b9", 
    "totalDifficulty": "0x1ddfce", 
    "transactions": [], 
    "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 
    "uncles": []
  }
}

Canonical (via https://explorer.jade.builders/block/0xcaebe0b74c52658891a318bb0ecd6e08fb2c9ada52fd8499ec05dc783a7928c0/raw?network=kotti):

{
    "difficulty": "0x1",
    "extraData": "0x6e6f7474692d6b6f747469000000000000000000000000000000000000000000224d7eced4ee3a781babd1ecc138e045b1a3c07768e6f199aa09ec97168355942c1ab0fe32e0e7ad6230378ae49bf7d4c220635a275fcee592da7eedea4e219601",
    "gasLimit": "0x7a1200",
    "gasUsed": "0x5208",
    "hash": "0xcaebe0b74c52658891a318bb0ecd6e08fb2c9ada52fd8499ec05dc783a7928c0",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "miner": "0x0000000000000000000000000000000000000000",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": "0x134d8e",
    "parentHash": "0xc695c15cebb690cffa48e27c310f8738450e100b19e3f2d3b0c94458e8416221",
    "receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "size": "0x2d0",
    "stateRoot": "0xacd47979435487a7d071e92d49fb288a3b0adf6ab104d391bd28058df6cacc54",
    "timestamp": "0x5d89cab1",
    "totalDifficulty": "0x1ddfce",
    "transactions": [
        {
            "blockHash": "0xcaebe0b74c52658891a318bb0ecd6e08fb2c9ada52fd8499ec05dc783a7928c0",
            "blockNumber": "0x134d8e",
            "from": "0xc58299aa649ae63d3362a6fb6b19946a36746d61",
            "gas": "0x877f8",
            "gasPrice": "0x77359400",
            "hash": "0xece844c6f45c812ab33ba6800c47727c2f976cf657cbe8d6cc082a2c207933e1",
            "input": "0x",
            "nonce": "0x0",
            "to": "0xab8137f2a142b7fb615d7f41fff95e6a36772c4e",
            "transactionIndex": "0x0",
            "value": "0x5af3107a4000",
            "v": "0x30",
            "r": "0x5be1535281cff6ffe6608be828061c538c72790fe08cf75662b2cf77bc96dcad",
            "s": "0x15b4553ab3642933a80f12eeb7e7ef41f27a232675ec70160cd7d04732d790c4"
        }
    ],
    "transactionsRoot": "0x043d6ed6fdb463918ff42cc0935db64cb6a52b4f87c77a7f78413cfebe9efc2f",
    "uncles": []
}

Environment and parameters

I am running geth with the following command:

/root/go/src/github.com/ethereum/go-ethereum/build/bin/geth --kotti --networkid 6 --lightserv 50 --miner.etherbase 0x009bd67e2d46db4e2c948d89dfdc511723495e55 --miner.extradata "ETC Labs Kotti" --mine --unlock 0x009bd67e2d46db4e2c948d89dfdc511723495e55 --password /root/kottipassword.txt --bootnodes enode://06333009fc9ef3c9e174768e495722a7f98fe7afd4660542e983005f85e556028410fd03278944f44cfe5437b1750b5e6bd1738f700fe7da3626d52010d2954c@51.141.15.254:30303 --ethstats "ETC Labs Kotti #0, meow":password@wss://stats.kotti.goerli.net
$ geth version
MultiGeth
Version: 1.9.4-unstable
Git Commit: b0c64213331f67fe4d3e6b251f87c777a4261f1e
Git Commit Date: 20191019
Architecture: amd64
Protocol Versions: [63]
Network Id: 1
Go Version: go1.11.5
Operating System: linux
GOPATH=/root/go
GOROOT=/usr/local/go
root@etclabs-kotti:~# uname -a
Linux etclabs-kotti 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
@meowsbits
Copy link
Member Author

Things seem to have stabilized here, and this hasn't happened to me a in a long time. Closing as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant