Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PostgresBlockIndex Class Reference

#include "postgres_block_index.hpp"

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

Public Member Functions

 PostgresBlockIndex (std::unique_ptr< Indexer > indexer, logger::LoggerPtr log)
void index (const shared_model::interface::Block &block) override
 Index a block. More...
- Public Member Functions inherited from iroha::ametsuchi::BlockIndex
virtual ~BlockIndex ()=default

Detailed Description

Creates several indices for passed blocks. Namely: transaction hash -> block, where this transaction is stored transaction creator -> block where his transaction is located

Additionally, for each Transfer Asset command:

  1. (account, asset) -> block for each: a. creator of the transaction b. source account c. destination account
  2. account -> block for source and destination accounts
  3. (account, height) -> list of txes

Constructor & Destructor Documentation

PostgresBlockIndex::PostgresBlockIndex ( std::unique_ptr< Indexer indexer,
logger::LoggerPtr  log 

Member Function Documentation

void PostgresBlockIndex::index ( const shared_model::interface::Block block)

Index a block.

Implements iroha::ametsuchi::BlockIndex.

Here is the call graph for this function:

Here is the caller graph for this function:

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