Kagome
Polkadot Runtime Engine in C++17
|
#include "blockchain/impl/storage_util.hpp"
#include "blockchain/impl/common.hpp"
#include "storage/database_error.hpp"
Go to the source code of this file.
Namespaces | |
kagome::blockchain | |
Functions | |
OUTCOME_CPP_DEFINE_CATEGORY (kagome::blockchain, KeyValueRepositoryError, e) | |
outcome::result< void > | kagome::blockchain::putNumberToIndexKey (storage::BufferStorage &map, const primitives::BlockInfo &block) |
outcome::result< void > | kagome::blockchain::putWithPrefix (storage::BufferStorage &map, prefix::Prefix prefix, BlockNumber num, Hash256 block_hash, const common::Buffer &value) |
outcome::result< bool > | kagome::blockchain::hasWithPrefix (const storage::BufferStorage &map, prefix::Prefix prefix, const primitives::BlockId &block_id) |
outcome::result< std::optional< common::Buffer > > | kagome::blockchain::getWithPrefix (const storage::BufferStorage &map, prefix::Prefix prefix, const primitives::BlockId &block_id) |
common::Buffer | kagome::blockchain::numberToIndexKey (primitives::BlockNumber n) |
common::Buffer | kagome::blockchain::numberAndHashToLookupKey (primitives::BlockNumber number, const common::Hash256 &hash) |
outcome::result< primitives::BlockNumber > | kagome::blockchain::lookupKeyToNumber (const common::BufferView &key) |
common::Buffer | kagome::blockchain::prependPrefix (common::BufferView key, prefix::Prefix key_column) |
OUTCOME_CPP_DEFINE_CATEGORY | ( | kagome::blockchain | , |
KeyValueRepositoryError | , | ||
e | |||
) |
Definition at line 17 of file storage_util.cpp.