Skip to content
Snippets Groups Projects
dap_chain_global_db_remote.h 464 B
#pragma once

#include <stdbool.h>
#include <time.h>

#include "dap_chain_common.h"
// Set addr for current node
bool dap_db_set_cur_node_addr(uint64_t a_address);
// Get addr for current node
uint64_t dap_db_get_cur_node_addr(void);

// Set last timestamp for remote node
bool dap_db_log_set_last_timestamp_remote(uint64_t a_node_addr, time_t a_timestamp);
// Get last timestamp for remote node
time_t dap_db_log_get_last_timestamp_remote(uint64_t a_node_addr);