#include "mutable_storage_impl.hpp"


Public Member Functions | |
| MutableStorageImpl (boost::optional< std::shared_ptr< const iroha::LedgerState >> ledger_state, std::shared_ptr< PostgresCommandExecutor > command_executor, std::unique_ptr< BlockStorage > block_storage, logger::LoggerManagerTreePtr log_manager) | |
| bool | apply (std::shared_ptr< const shared_model::interface::Block > block) override |
| bool | apply (rxcpp::observable< std::shared_ptr< shared_model::interface::Block >> blocks, MutableStoragePredicate predicate) override |
| boost::optional< std::shared_ptr< const iroha::LedgerState > > | getLedgerState () const |
| expected::Result< CommitResult, std::string > | commit () &&override |
| Apply the local changes made to this MutableStorage to the global WSV. More... | |
| ~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(std::shared_ptr< const shared_model::interface::Block >, const LedgerState &)> |
| iroha::ametsuchi::MutableStorageImpl::MutableStorageImpl | ( | boost::optional< std::shared_ptr< const iroha::LedgerState >> | ledger_state, |
| std::shared_ptr< PostgresCommandExecutor > | command_executor, | ||
| std::unique_ptr< BlockStorage > | block_storage, | ||
| logger::LoggerManagerTreePtr | log_manager | ||
| ) |

|
override |
|
overridevirtual |
Applies block without additional validation function
Implements iroha::ametsuchi::MutableStorage.

|
overridevirtual |
Applies an observable of blocks to current mutable state using logic specified in function
| blocks | Blocks to be applied |
| predicate | Checks whether block is applicable prior to applying transactions |
Implements iroha::ametsuchi::MutableStorage.

|
overridevirtual |
Apply the local changes made to this MutableStorage to the global WSV.
Implements iroha::ametsuchi::MutableStorage.
| boost::optional< std::shared_ptr< const iroha::LedgerState > > iroha::ametsuchi::MutableStorageImpl::getLedgerState | ( | ) | const |
|
friend |