hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::MutableStorageImpl Class Reference

#include "mutable_storage_impl.hpp"

Inheritance diagram for iroha::ametsuchi::MutableStorageImpl:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::MutableStorageImpl:
Collaboration graph

Public Member Functions

 MutableStorageImpl (shared_model::interface::types::HashType top_hash, std::shared_ptr< PostgresCommandExecutor > cmd_executor, std::unique_ptr< soci::session > sql, std::shared_ptr< shared_model::interface::CommonObjectsFactory > factory, logger::Logger log=logger::log("MutableStorage"))
 
bool apply (const shared_model::interface::Block &block) override
 
bool apply (rxcpp::observable< std::shared_ptr< shared_model::interface::Block >> blocks, MutableStoragePredicate predicate) override
 
 ~MutableStorageImpl () override
 
- Public Member Functions inherited from iroha::ametsuchi::MutableStorage
virtual ~MutableStorage ()=default
 

Friends

class StorageImpl
 

Additional Inherited Members

- Public Types inherited from iroha::ametsuchi::MutableStorage
using MutableStoragePredicate = std::function< bool(const shared_model::interface::Block &, PeerQuery &, const shared_model::interface::types::HashType &)>
 

Constructor & Destructor Documentation

iroha::ametsuchi::MutableStorageImpl::MutableStorageImpl ( shared_model::interface::types::HashType  top_hash,
std::shared_ptr< PostgresCommandExecutor cmd_executor,
std::unique_ptr< soci::session >  sql,
std::shared_ptr< shared_model::interface::CommonObjectsFactory factory,
logger::Logger  log = logger::log("MutableStorage") 
)

Here is the call graph for this function:

iroha::ametsuchi::MutableStorageImpl::~MutableStorageImpl ( )
override

Here is the call graph for this function:

Member Function Documentation

bool iroha::ametsuchi::MutableStorageImpl::apply ( const shared_model::interface::Block block)
overridevirtual

Applies block without additional validation function

See also
apply(block, function)

Implements iroha::ametsuchi::MutableStorage.

Here is the caller graph for this function:

bool iroha::ametsuchi::MutableStorageImpl::apply ( rxcpp::observable< std::shared_ptr< shared_model::interface::Block >>  blocks,
MutableStoragePredicate  predicate 
)
overridevirtual

Applies an observable of blocks to current mutable state using logic specified in function

Parameters
blocksBlocks to be applied
predicateChecks whether block is applicable prior to applying transactions
Returns
True if blocks were successfully applied, false otherwise.

Implements iroha::ametsuchi::MutableStorage.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class StorageImpl
friend

The documentation for this class was generated from the following files: