Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::TemporaryFactory Class Referenceabstract

#include "temporary_factory.hpp"

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

Public Member Functions

virtual std::unique_ptr< TemporaryWsvcreateTemporaryWsv (std::shared_ptr< CommandExecutor > command_executor)=0
virtual void prepareBlock (std::unique_ptr< TemporaryWsv > wsv)=0
virtual ~TemporaryFactory ()=default

Constructor & Destructor Documentation

◆ ~TemporaryFactory()

virtual iroha::ametsuchi::TemporaryFactory::~TemporaryFactory ( )

Member Function Documentation

◆ 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.

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.

wsv- state which will be prepared.

Implemented in iroha::ametsuchi::StorageImpl.

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