Skip to content

Load plugins before initializing the system and call OnPluginsLoaded afterward.#633

Merged
jsolman merged 5 commits intomasterfrom
PluginsLoadFirst
Mar 12, 2019
Merged

Load plugins before initializing the system and call OnPluginsLoaded afterward.#633
jsolman merged 5 commits intomasterfrom
PluginsLoadFirst

Conversation

@jsolman
Copy link
Copy Markdown
Contributor

@jsolman jsolman commented Mar 11, 2019

The plugins need to be loaded first in order to facilitate:

  1. Persist plugins receiving the genesis block.
  2. Import blocks plugin ability to wait to load blocks until after other plugins are loaded. (Import blocks after plugins are loaded. neo-modules#53)

This is also needed by neo-project/neo-modules/pull/52

This change also requires the following change in the ApplicationLogs plugin:
neo-project/neo-modules/pull/55

…afterward.

This supports:
* ... persist plugins running on persisting the genesis block.
* ... import blocks plugin to be able to load blocks after other plugins are loaded.
@jsolman jsolman requested review from erikzhang and vncoelho March 11, 2019 23:02
Copy link
Copy Markdown
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

Sounds precise and simple, @jsolman.
It was great that this was found during this journey of UTXO to plugin, it is a good improvement for several other plugins to come.

Let`s wait for @shargon and @erikzhang to give their feedback as well.

vncoelho
vncoelho previously approved these changes Mar 12, 2019
@vncoelho
Copy link
Copy Markdown
Member

From my perspective it is ready and it a quite useful modification.

@jsolman jsolman merged commit 432a3f6 into master Mar 12, 2019
@vncoelho vncoelho deleted the PluginsLoadFirst branch March 12, 2019 04:01
Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
Change applicationlog introduction for v2.9
Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
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.

3 participants