Reward issue in private chain [SOLVED]

Hi all,

I have set up a private chain in order to learn about ETC. My chain has 2 nodes running on the same server.
The chain config is based on Morden and is working properly and online and synched, I can mine blocks, blocks are being broadcasted and rewards paid.
Now I’d like to “fast-forward” and test the latest fork (“Defuse Difficulty Bomb”). I changed the block numbers on the config file e.g.

        {
            "name": "Gotham",
            "block": 50,
            "requiredHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "features": [
                {
                    "id": "reward",
                    "options": {
                        "era": 2000000,
                        "type": "ecip1017"
                    }
                }
            ]
        },
        {
            "name": "Defuse Difficulty Bomb",
            "block": 60,
            "requiredHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "features": [
                {
                    "id": "difficulty",
                    "options": {
                        "type": "defused"
                    }
                }
            ]
        }

and upgraded the chain using geth upgradedb using:

./geth --data-dir=~/myPrivateChain2 --chain=customnet upgradedb

However, the reward have not been updated (should be 4 instead of 5).

eth.getBalance(eth.coinbase)/1e18
59.0625
eth.blockNumber
128
eth.blockNumber
129
eth.getBalance(eth.coinbase)/1e18
64.0625

Any ideas?

Thanks a lot,
rodneymo

1 Like

Okay. I think I am mixing up forks with reward updates, which I know understand are not linked. So the question should be, how do I “fast forward” my chain so that the reward is the same as in mainnet?

1 Like

I solved the issue by adjusting the era blocknumber under the Gothan/feature/reward to 100. So that when the block number reached 100 the reward was updated to (current) era 2 with a block reward of 4.

1 Like