LiskArchive / lisk-engine

:bullettrain_front: Lisk blockchain engine
https://lisk.com
Apache License 2.0
0 stars 0 forks source link

Implement RegisterRPCHandler function #51

Closed matjazv closed 1 year ago

matjazv commented 1 year ago

What was the problem?

This PR resolves #41.

How was it solved?

How was it tested?

matjazv commented 1 year ago

Currently SendRequestMessage returns Response struct which has field err error. If it would be sufficient that err could be string type instead of error type then Response struct could be removed and only ResponseMsg struct could be used in entire p2p/v2 package.

Downside is that modules could not do if err != nil but they would must do if err != "".