#include "temporary_factory.hpp"
◆ ~TemporaryFactory()
| virtual iroha::ametsuchi::TemporaryFactory::~TemporaryFactory |
( |
| ) |
|
|
virtualdefault |
◆ createTemporaryWsv()
| virtual std::unique_ptr<TemporaryWsv> iroha::ametsuchi::TemporaryFactory::createTemporaryWsv |
( |
std::shared_ptr< CommandExecutor > |
command_executor | ) |
|
|
pure virtual |
Creates a temporary world state view from the current state. Temporary state will be not committed and will be erased on destructor call. Temporary state might be used for transaction validation.
- Returns
- Created temporary wsv.
Implemented in iroha::ametsuchi::StorageImpl.
◆ prepareBlock()
| virtual void iroha::ametsuchi::TemporaryFactory::prepareBlock |
( |
std::unique_ptr< TemporaryWsv > |
wsv | ) |
|
|
pure virtual |
Prepare state which was accumulated in temporary WSV. After preparation, this state is not visible until commited.
- Parameters
-
| wsv | - state which will be prepared. |
Implemented in iroha::ametsuchi::StorageImpl.
The documentation for this class was generated from the following file: