Skip to content

run analyser as chain node#120

Open
huangzhiran wants to merge 3 commits intov1from
change-575
Open

run analyser as chain node#120
huangzhiran wants to merge 3 commits intov1from
change-575

Conversation

@huangzhiran
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread server/server.go Outdated
Comment thread server/server.go
Comment thread server/server.go
Comment thread server/server.go
Comment thread server/server.go
cs := srv.ChainService(config.Default.ChainConfig.Chain.EVMNetworkID)
dao := cs.BlockDAO()
bdao = kernel.NewLocalBatchBlockDao(dao)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In p2p mode, L355 does not need to be executed again, as it will automatically synchronize blocks from the network.
As for L346, I'm not sure if running Start again would cause any issues. You should verify this, but it likely also does not need to be executed again.

Comment thread config/config.go
BlockDB Blockdao `yaml:"blockDB"`
Log log.GlobalConfig `yaml:"log" json:"-"`
SubLogs map[string]log.GlobalConfig `yaml:"subLogs" json:"-"`
Genesis genesis.Genesis `yaml:"genesis"`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, the genesis configuration can be treated as a standalone configuration file. We can first note a TODO for this.

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

Successfully merging this pull request may close these issues.

2 participants