Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add comments on existing approach #172
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 2, 2017
1 parent 3b6e07c commit a0a530c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/db_plugin/db_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void db_plugin_impl::_process_irreversible_block(const signed_block& block)
++processed;
}


// For now providing some simple account processing to maintain eos_balance
void db_plugin_impl::update_account(const chain::Message& msg) {
using bsoncxx::builder::basic::kvp;
using bsoncxx::builder::stream::document;
Expand Down
8 changes: 8 additions & 0 deletions plugins/db_plugin/include/eos/db_plugin/db_plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ using db_plugin_impl_ptr = std::shared_ptr<class db_plugin_impl>;
* Accounts
*
* See data dictionary (DB Schema Definition - EOS API) for description of MongoDB schema.
*
* The goal ultimately is for all chainbase data to be mirrored in MongoDB via a delayed node processing
* irreversible blocks. Currently, only Blocks, Transactions, Messages, and Account balance it mirrored.
* Chainbase is being rewritten to be multi-threaded. Once chainbase is stable, integration directly with
* a mirror database approach can be followed removing the need for the direct processing of Blocks employed
* with this implementation.
*
* If MongoDB env not available (#ifndef MONGODB) this plugin is a no-op.
*/
class db_plugin : public plugin<db_plugin> {
public:
Expand Down

0 comments on commit a0a530c

Please sign in to comment.