forked from ezehy/starcashx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blockbrowser.h
68 lines (54 loc) · 1.26 KB
/
blockbrowser.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef BLOCKBROWSER_H
#define BLOCKBROWSER_H
#include "clientmodel.h"
#include "walletmodel.h"
#include "main.h"
#include "wallet.h"
#include "base58.h"
#include <QWidget>
#include <QDir>
#include <QFile>
#include <QProcess>
#include <QTime>
#include <QTimer>
#include <QStringList>
#include <QMap>
#include <QSettings>
#include <QSlider>
double getBlockHardness(int);
double getTxTotalValue(std::string);
double convertCoins(int64_t);
double getTxFees(std::string);
int getBlockTime(int);
int getBlocknBits(int);
int getBlockNonce(int);
int blocksInPastHours(int);
int getBlockHashrate(int);
std::string getInputs(std::string);
std::string getOutputs(std::string);
std::string getBlockHash(int);
std::string getBlockMerkle(int);
bool addnode(std::string);
const CBlockIndex* getBlockIndex(int);
int64_t getInputValue(CTransaction, CScript);
namespace Ui {
class BlockBrowser;
}
class WalletModel;
class BlockBrowser : public QWidget
{
Q_OBJECT
public:
explicit BlockBrowser(QWidget *parent = 0);
~BlockBrowser();
void setModel(WalletModel *model);
public slots:
void blockClicked();
void txClicked();
void updateExplorer(bool);
private slots:
private:
Ui::BlockBrowser *ui;
WalletModel *model;
};
#endif // BLOCKBROWSER_H