Scorum
raw_block_api.hpp
Go to the documentation of this file.
1 
2 #pragma once
3 
5 
6 #include <fc/api.hpp>
7 
8 namespace scorum {
9 namespace app {
10 struct api_context;
11 }
12 }
13 
14 namespace scorum {
15 namespace plugin {
16 namespace raw_block {
17 
18 namespace detail {
19 class raw_block_api_impl;
20 }
21 
23 {
24  uint32_t block_num = 0;
25 };
26 
28 {
31  fc::time_point_sec timestamp;
32  std::string raw_block;
33 };
34 
45 {
46 public:
48 
49  void on_api_startup();
50 
54 
56  void push_raw_block(std::string block_b64);
57 
59 
60 private:
61  std::shared_ptr<detail::raw_block_api_impl> my;
62 };
63 }
64 }
65 }
66 
68 
69 FC_REFLECT(scorum::plugin::raw_block::get_raw_block_result, (block_id)(previous)(timestamp)(raw_block))
70 
71 FC_API(scorum::plugin::raw_block::raw_block_api, (get_raw_block)(push_raw_block))
raw_block_api(const scorum::app::api_context &ctx)
get_raw_block_result get_raw_block(get_raw_block_args args)
void push_raw_block(std::string block_b64)
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
fc::ripemd160 block_id_type
Definition: types.hpp:63
Definition: asset.cpp:15