forked from qubic/qubic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodeUtils.h
More file actions
36 lines (34 loc) · 2.66 KB
/
nodeUtils.h
File metadata and controls
36 lines (34 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "connection.h"
#include "structs.h"
void printTickInfoFromNode(const char* nodeIp, int nodePort);
void printSystemInfoFromNode(const char* nodeIp, int nodePort);
CurrentSystemInfo getSystemInfoFromNode(QCPtr qc);
uint32_t getTickNumberFromNode(QCPtr qc);
bool checkTxOnTick(QCPtr qc, const char* txHash, uint32_t requestedTick, bool printTxReceipt = true);
bool checkTxOnTick(const char* nodeIp, const int nodePort, const char* txHash, uint32_t requestedTick, bool printTxReceipt = true);
void downloadFile(const char* nodeIp, const int nodePort, const char* trailer, const char* outFilePath, const char* compressTool = nullptr);
int _GetInputDataFromTxHash(QCPtr& qc, const char* txHash, uint8_t* outData, int& dataSize);
int _GetTxInfo(QCPtr& qc, const char* txHash);
int getTxInfo(const char* nodeIp, const int nodePort, const char* txHash);
void getQuorumTick(const char* nodeIp, const int nodePort, uint32_t requestedTick, const char* compFileName);
bool getTickData(QCPtr qc, const uint32_t tick, TickData& result);
void getTickDataToFile(const char* nodeIp, const int nodePort, uint32_t requestedTick, const char* fileName);
void printTickDataFromFile(const char* fileName, const char* compFile);
bool checkTxOnFile(const char* txHash, const char* fileName);
void sendRawPacket(const char* nodeIp, const int nodePort, int rawPacketSize, uint8_t* rawPacket);
void sendSpecialCommand(const char* nodeIp, const int nodePort, const char* seed, int command);
void getComputorListToFile(const char* nodeIp, const int nodePort, const char* fileName);
void getNodeIpList(const char* nodeIp, const int nodePort);
void getLogFromNode(const char* nodeIp, const int nodePort, uint64_t* passcode);
void dumpSpectrumToCSV(const char* input, const char* output);
void dumpUniverseToCSV(const char* input, const char* output);
void getMiningScoreRanking(const char* nodeIp, const int nodePort, const char* seed);
void getVoteCounterTransaction(const char* nodeIp, const int nodePort, unsigned int requestedTick, const char* compFileName);
void uploadFile(const char* nodeIp, const int nodePort, const char* filePath, const char* seed, unsigned int tickOffset, const char* compressTool = nullptr);
// remote tools:
void toggleMainAux(const char* nodeIp, const int nodePort, const char* seed, std::string mode0, std::string mode1);
void setSolutionThreshold(const char* nodeIp, const int nodePort, const char* seed, int epoch, int threshold);
void syncTime(const char* nodeIp, const int nodePort, const char* seed);
void setLoggingMode(const char* nodeIp, const int nodePort, const char* seed, char mode);
void broadcastCompChat(const char* nodeIp, const int nodePort, const char* seed, char* compChatMsg);