-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
52 lines (42 loc) · 1.09 KB
/
main.cpp
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
#include <fstream>
#include <std>
#include <string>
#include <blockchain/blockchain.cpp>
#include <cli/cli.cpp>
#include <derivation/derivation.cpp>
#include <encryption/encryption.cpp>
#include <hashing/hashing.cpp>
#include <internet/internet.cpp>
#include <messaging/messaging.cpp>
#include <node/node.cpp>
#include <smart-contract/smart-contract.cpp>
#include <threading/threading.cpp>
#include <transaction/transaction.cpp>
#include <ui/ui.cpp>
#include <wallet/wallet.cpp>
namespace main {
unsigned int start() {
ui.start();
wallet.start();
blockchain.start();
};
unsigned int pause() {
messaging.pause();
internet.pause();
smartcontract.pause();
transaction.pause();
};
unsigned int stop() {
internet.stop();
messaging.stop();
smartcontract.stop();
transaction.stop();
blockchain.stop();
decryption.stop();
node.stop();
wallet.stop();
hashing.stop();
cli.stop();
ui.stop();
};
}