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

Node fail to start because of "Invalid block reward" on mainnet #2481

Closed
4miners opened this issue Oct 17, 2018 · 1 comment
Closed

Node fail to start because of "Invalid block reward" on mainnet #2481

4miners opened this issue Oct 17, 2018 · 1 comment

Comments

@4miners
Copy link
Contributor

4miners commented Oct 17, 2018

Expected behavior

The node should be able to start.

Actual behavior

Node crash with the following error:

[inf] 2018-10-17 15:08:37 | Starting lisk with "mainnet" genesis block.
[inf] 2018-10-17 15:09:17 | Socket Cluster ready for incoming connections
[inf] 2018-10-17 15:09:18 | Releasing enqueued broadcasts
[inf] 2018-10-17 15:09:18 | Queue empty
[inf] 2018-10-17 15:09:18 | Lisk started: 0.0.0.0:8000
[inf] 2018-10-17 15:09:18 | Modules ready and launched
[inf] 2018-10-17 15:09:20 | Blocks 7301593
[inf] 2018-10-17 15:09:20 | Genesis block matched with database
[inf] 2018-10-17 15:09:20 | Validating current block with height 7301593
[inf] 2018-10-17 15:09:20 | Loader->validateBlock Validating block 10273493690874969091 at height 7301593
[ERR] 2018-10-17 15:09:22 | Verify->verifyBlock failed for block 10273493690874969091 at height 7301593. - ["Invalid block reward: 400000000 expected: 300000000"]
[ERR] 2018-10-17 15:09:22 | Loader->validateBlock Validating block failed for 10273493690874969091 at height 7301593. - ["Invalid block reward: 400000000 expected: 300000000"]
[inf] 2018-10-17 15:09:22 | Validating last block of second last round with height 7301391
[inf] 2018-10-17 15:09:23 | Releasing enqueued broadcasts
[inf] 2018-10-17 15:09:23 | Queue empty
[inf] 2018-10-17 15:09:23 | Loader->validateBlock Validating block 12822964154838819782 at height 7301391
[ERR] 2018-10-17 15:09:25 | Verify->verifyBlock failed for block 12822964154838819782 at height 7301391. - ["Invalid block reward: 400000000 expected: 300000000"]
[ERR] 2018-10-17 15:09:25 | Loader->validateBlock Validating block failed for 12822964154838819782 at height 7301391. - ["Invalid block reward: 400000000 expected: 300000000"]
[ERR] 2018-10-17 15:09:25 | There are more than 202 invalid blocks. Can't delete those to recover the chain.
[FTL] 2018-10-17 15:09:25 | Domain master - {"message":"Your block chain is invalid. Please rebuild from snapshot.","stack":"Error: Your block chain is invalid. Please rebuild from snapshot.\n    at Immediate.__private.validateBlock.validateBlockErr (/Users/mq/Documents/GitHub/lisk-rrr/modules/loader.js:688:8)\n    at runCallback (timers.js:674:20)\n    at tryOnImmediate (timers.js:645:5)\n    at processImmediate [as _immediateCallback] (timers.js:617:5)"}
[FTL] 2018-10-17 15:09:25 | Error: Your block chain is invalid. Please rebuild from snapshot.
[inf] 2018-10-17 15:09:25 | Cleaning up...
[inf] 2018-10-17 15:09:25 | Cleaned up successfully

Steps to reproduce

Load mainnet snapshot into the database, start the node.

Which version(s) does this affect? (Environment, OS, etc...)

development branch

@4miners
Copy link
Contributor Author

4miners commented Oct 17, 2018

The reason for this is here:
https://github.com/LiskHQ/lisk/blob/c7ca88aae4cec0297b419bdf3bc72321af7bfc8e/config/mainnet/constants.js#L18-L20
Should be:

	REWARDS: {
		OFFSET: 1451520,
	},

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