LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 455 forks source link

Plugin is not properly loading in child process #8629

Closed ishantiw closed 1 year ago

ishantiw commented 1 year ago

Expected behavior

When a plugin is loaded as childProcess it should be able to expose the registered endpoints.

Actual behavior

When a plugin is loaded as childProcess it is not able to expose its registered endpoint.

Steps to reproduce

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

v6.0.0-beta.2

Could be related to https://github.com/LiskHQ/lisk-sdk/pull/8513

mosmartin commented 1 year ago

@ishantiw How does one load a plugin as a child process?

ishantiw commented 1 year ago

@mosmartin When we call app.registerPlugin we can specify it whether to load it as child process or not. For example, https://github.com/LiskHQ/lisk-sdk/blob/4931464581afa4c0c712f312e217e8fb51452d93/examples/pos-mainchain/src/commands/start.ts#L123