Kagome
Polkadot Runtime Engine in C++17
state_response.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_STATE_RESPONSE_HPP
7 #define KAGOME_STATE_RESPONSE_HPP
8 
9 #include "common/buffer.hpp"
10 #include "storage/trie/types.hpp"
11 #include "primitives/common.hpp"
12 
13 namespace kagome::network {
15  struct StateEntry {
18  };
19 
26  std::vector<StateEntry> entries;
28  bool complete;
29  };
30 
34  struct StateResponse {
37  std::vector<KeyValueStateEntry> entries;
40  };
41 } // namespace kagome::network
42 
43 #endif
Class represents arbitrary (including empty) byte buffer.
Definition: buffer.hpp:29
A key value state.
common::Buffer proof
If no_proof is false in request, this contains proof nodes.
std::vector< StateEntry > entries
A collection of keys-values.
A key-value pair.
storage::trie::RootHash state_root
std::vector< KeyValueStateEntry > entries
bool complete
Set to true when there are no more keys to return.