#include "mutable_storage_impl.hpp"


Public Member Functions | |
| MutableStorageImpl (boost::optional< std::shared_ptr< const iroha::LedgerState >> ledger_state, std::unique_ptr< WsvCommand > wsv_command, std::unique_ptr< PeerQuery > peer_query, std::unique_ptr< BlockIndex > block_index, std::shared_ptr< CommandExecutor > 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 | applyIf (std::shared_ptr< const shared_model::interface::Block > block, MutableStoragePredicate predicate) override |
| boost::optional< std::shared_ptr< const iroha::LedgerState > > | getLedgerState () const |
| expected::Result< CommitResult, std::string > | commit (BlockStorage &block_storage) &&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(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::unique_ptr< WsvCommand > | wsv_command, | ||
| std::unique_ptr< PeerQuery > | peer_query, | ||
| std::unique_ptr< BlockIndex > | block_index, | ||
| std::shared_ptr< CommandExecutor > | 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 a block to current mutable state using logic specified in function
| block | Block 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 block_storage and the global WSV.
Implements iroha::ametsuchi::MutableStorage.

| boost::optional< std::shared_ptr< const iroha::LedgerState > > iroha::ametsuchi::MutableStorageImpl::getLedgerState | ( | ) | const |
|
friend |