Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

remove repeat register of history_plugin #6280

Merged
merged 2 commits into from
Nov 15, 2018
Merged

Conversation

jiaqizho
Copy link
Contributor

@jiaqizho jiaqizho commented Nov 9, 2018

Remove repeat register of history_plugin from nodeos.

@conr2d
Copy link
Contributor

conr2d commented Nov 14, 2018

If the repeated line you mentioned is https://github.com/EOSIO/eos/blob/master/programs/nodeos/CMakeLists.txt#L55, I think it's not for loading history_plugin in runtime, but it tries link nodeos to history_plugin during compilation. In that case, nodeos doesn't load history_plugin repeatedly.

@heifner heifner changed the base branch from master to develop November 14, 2018 20:41
@heifner
Copy link
Contributor

heifner commented Nov 14, 2018

It is actually registered via:
https://github.com/EOSIO/eos/blob/master/plugins/history_plugin/history_plugin.cpp#L17

You are correct that explicit register in main is not needed.

@jiaqizho
Copy link
Contributor Author

okay , misunderstand about that . but same result .

hah ! very nice .

@heifner heifner changed the title remove repeat load history_plugin remove repeat register of history_plugin Nov 15, 2018
@heifner heifner merged commit fdd1c2d into EOSIO:develop Nov 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants