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

0dns doesn't update magic block #17

Closed
lpoli opened this issue Aug 6, 2021 · 3 comments
Closed

0dns doesn't update magic block #17

lpoli opened this issue Aug 6, 2021 · 3 comments
Assignees

Comments

@lpoli
Copy link

lpoli commented Aug 6, 2021

In my local setup when I run network with 4 miners and 1 sharder, it shows 4 miners and 2 sharders in http response in /network path. It is normal to show 4 miners and 2 sharders but it should update to active set of nodes i.e. it should show 4 miners and 1 sharder later on but it always shows 4 miners and 2 sharders.

@NoSkillGuy NoSkillGuy self-assigned this Aug 6, 2021
@cnlangzi
Copy link
Contributor

cnlangzi commented Aug 7, 2021

In my local setup when I run network with 4 miners and 1 sharder, it shows 4 miners and 2 sharders in http response in /network path. It is normal to show 4 miners and 2 sharders but it should update to active set of nodes i.e. it should show 4 miners and 1 sharder later on but it always shows 4 miners and 2 sharders.

@lpoli how do you setup it with 4 miners and 1 sharder? do you only setup it on magic_block.json? It is not enough. You need to update sharder's magic_block_file on https://github.com/0chain/0chain/blob/f345663b60f96d87defed089cb12a99eb865f42a/docker.local/config/0chain.yaml#L120. And setup 4 miners and 1 sharder on its magic_block_file too. eg. https://github.com/0chain/0chain/blob/master/docker.local/config/b0magicBlock_4_miners_2_sharders.json

@NoSkillGuy
Copy link
Contributor

@cnlangzi Is the 0dns getting updated with lastest magic_block ? In my case it isn't

I am running with 2 sharders and 3 miners using the default magic block given in 0chain b0magicBlock_4_miners_2_sharders.json.

0dns_1  | 2021-08-12T14:22:29.895Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:22:34.883Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:22:39.884Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:22:44.891Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:22:49.883Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:22:54.882Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:22:59.894Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:04.888Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:09.891Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:14.889Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:19.882Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:24.882Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:29.885Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:34.887Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}
0dns_1  | 2021-08-12T14:23:39.880Z	INFO	worker/worker.go:44	Magic block updated successfully	{"magic_block_number": 1}

These are my logs.

The issue i see is this sharder API /v1/block/get/latest_finalized_magic_block is always giving the first block

my block chain status

Screenshot 2021-08-12 at 7 56 20 PM

@cnlangzi
Copy link
Contributor

it is ok now. magic block is genesis block

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

No branches or pull requests

3 participants