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 expected::Result< std::unique_ptr< TemporaryWsv >, std::stringcreateTemporaryWsv ()=0
virtual void prepareBlock (std::unique_ptr< TemporaryWsv > wsv)=0
virtual ~TemporaryFactory ()=default

Constructor & Destructor Documentation

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

Member Function Documentation

virtual expected::Result<std::unique_ptr<TemporaryWsv>, std::string> iroha::ametsuchi::TemporaryFactory::createTemporaryWsv ( )
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 Result with temporary wsv or string error

Implemented in iroha::ametsuchi::StorageImpl.

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: