0

I have some confuse with chain_plugin and mongo_plugin, why do we need them? And if I can modify chainbase which can write directly state to disk, Do I can discard mongoDB?

1

chain_plugin is actually the core part that manages the blockchain data structure in nodeos. Most of time it is enabled automatically.

mongo_db_plugin is an add-on plugin that aims to replace the previous history_plugin and history_api_plugin, and is for data access / analysis / reporting purpose only. It is more like a peripheral module attached to the nodeos core and it can not work without chain_plugin. If you do not need a mongodb database for query, you can definitely disable mongo_db_plugin and it will save huge amount of system resources.

  • Thank you very much, I got it. And I think chainbase which be used to store longest chain but mongo_db cannot. – user2644 Dec 1 '18 at 1:20
  • 1
    @Onotoko Yes, chainbase is where actual chain data is stored. – Tong Shen Dec 3 '18 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy