#include "mutable_factory.hpp"


Public Member Functions | |
| virtual iroha::expected::Result< std::unique_ptr< MutableStorage >, std::string > | createMutableStorage (std::shared_ptr< CommandExecutor > command_executor)=0 |
| virtual CommitResult | commit (std::unique_ptr< MutableStorage > mutableStorage)=0 |
| virtual bool | preparedCommitEnabled () const =0 |
| Check if prepared commits are enabled. More... | |
| virtual CommitResult | commitPrepared (std::shared_ptr< const shared_model::interface::Block > block)=0 |
| virtual | ~MutableFactory ()=default |
|
virtualdefault |
|
pure virtual |
Commit mutable storage to Ametsuchi. This transforms Ametsuchi to the new state consistent with MutableStorage.
| mutableStorage |
Implemented in iroha::ametsuchi::StorageBase.
|
pure virtual |
Try to apply prepared block to Ametsuchi.
| block | The previously prepared block that will be committed now. |
Implemented in iroha::ametsuchi::RocksDbStorageImpl, and iroha::ametsuchi::StorageImpl.
|
pure virtual |
Creates a mutable storage from the current state. Mutable storage is the only way to commit the block to the ledger.
Implemented in iroha::ametsuchi::RocksDbStorageImpl, and iroha::ametsuchi::StorageImpl.
|
pure virtual |
Check if prepared commits are enabled.
Implemented in iroha::ametsuchi::StorageBase.