6#ifndef VERIBLOCK_POP_CPP_C_ENTITIES_ALTBLOCK_H
7#define VERIBLOCK_POP_CPP_C_ENTITIES_ALTBLOCK_H
11#include "veriblock/pop/c/array.h"
12#include "veriblock/pop/c/entities/serde.h"
13#include "veriblock/pop/c/type_helpers.h"
19POP_DECLARE_ENTITY(config);
21POP_DECLARE_ENTITY(alt_block);
23POP_ENTITY_NEW_FUNCTION(alt_block,
24 POP_ARRAY_NAME(u8) hash,
25 POP_ARRAY_NAME(u8) previous_block,
29POP_ENTITY_GETTER_FUNCTION(alt_block, POP_ARRAY_NAME(u8), hash);
30POP_ENTITY_GETTER_FUNCTION(alt_block, POP_ARRAY_NAME(u8), previous_block);
31POP_ENTITY_GETTER_FUNCTION(alt_block, uint32_t, timestamp);
32POP_ENTITY_GETTER_FUNCTION(alt_block, int32_t, height);
34POP_ENTITY_TO_JSON(alt_block,
bool reverseHashes);
36POP_ENTITY_SERIALIZE_TO_VBK(alt_block);
37POP_ENTITY_DESERIALIZE_FROM_VBK(alt_block, POP_ENTITY_NAME(config) *);
39POP_GENERATE_DEFAULT_VALUE(alt_block);