Closed gyozajiro closed 3 years ago
@mifeng @vic-en You can test the config update endpoint using the Postman file (test/postman/Gateway.postman_collection.json
). I'll update the client to add the ethereum chain switching based-on the global config.
The conf_global.yml
allows us to switch network without restarting the Node server. It did added some complexity and requires re-instantiation of some classes. And it seems to slow down the endpoints from some observations. Due to the performance issue, I have reservations on whether it is worth the change.
@phbrgnomo Let's get some tasks redesign tasks completed in #44 before trying to add this. I would like to see #63, #64 and #70 done first, then I will refactor this PR into typescript.
@vic-en will recreate the PR with some additional updates to the code.