hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
storage_init.hpp File Reference
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <boost/optional/optional_fwd.hpp>
#include "common/result_fwd.hpp"
#include "logger/logger_fwd.hpp"
#include "logger/logger_manager_fwd.hpp"
Include dependency graph for storage_init.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 shared_model::interface
 
 iroha
 
 iroha::ametsuchi
 

Functions

expected::Result< std::shared_ptr< iroha::ametsuchi::Storage >, std::string > iroha::initStorage (std::shared_ptr< ametsuchi::RocksDBContext > db_context, std::shared_ptr< iroha::PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::QueryResponseFactory > query_response_factory, boost::optional< std::string > block_storage_dir, std::optional< std::reference_wrapper< const iroha::ametsuchi::VmCaller >> vm_caller_ref, std::function< void(std::shared_ptr< shared_model::interface::Block const >)> callback, logger::LoggerManagerTreePtr log_manager)
 
expected::Result< std::shared_ptr< iroha::ametsuchi::Storage >, std::string > iroha::initStorage (iroha::ametsuchi::PostgresOptions const &pg_opt, std::shared_ptr< iroha::ametsuchi::PoolWrapper > pool_wrapper, std::shared_ptr< iroha::PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::QueryResponseFactory > query_response_factory, boost::optional< std::string > block_storage_dir, std::optional< std::reference_wrapper< const iroha::ametsuchi::VmCaller >> vm_caller_ref, std::function< void(std::shared_ptr< shared_model::interface::Block const >)> callback, logger::LoggerManagerTreePtr log_manager)