-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
173 lines (65 loc) · 4.45 KB
/
commands.txt
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
1. ------------------------- Run the Docker container for Elasticsearch and Kibana ----------------------------------
cd /home/valentina/Thesis/MX-Thesis-New/packages/mx-chain-es-indexer-go-v1.4.18/ && docker compose up
---------------------------------------------------------------------------------------------------------------------
2. ---------------------------------------- Run elasticindexer -------------------------------------------------------
cd /home/valentina/Thesis/MX-Thesis-New/packages/mx-chain-es-indexer-go-v1.4.18/cmd/elasticindexer && ./elasticindexer
----------------------------------------------------------------------------------------------------------------------
3. ------------------------- Configure the localnet with elasticindexer integration ----------------------------------
cd /home/valentina/Thesis/Localnets && mxpy localnet prerequisites && mxpy localnet build && mxpy localnet config && mxpy localnet start
cd /home/valentina/Thesis/Localnets && mxpy localnet prerequisites && mxpy localnet build && mxpy localnet config &&
cp -f /home/valentina/Thesis/Localnets/external.toml /home/valentina/Thesis/Localnets/localnet/observer00/config/ &&
cp -f /home/valentina/Thesis/Localnets/external.toml /home/valentina/Thesis/Localnets/localnet/observer01/config/ &&
cp -f /home/valentina/Thesis/Localnets/external.toml /home/valentina/Thesis/Localnets/localnet/observer02/config/ &&
cp -f /home/valentina/Thesis/Localnets/external.toml /home/valentina/Thesis/Localnets/localnet/observer03/config/ &&
mxpy localnet start
----------------------------------------------------------------------------------------------------------------------
4. -------------------------------------------- Run the localnet ------------------------------------------------------
mxpy localnet start
-----------------------------------------------------------------------------------------------------------------------
---------------------------------------------- RUN EXPERIMENT -------------------------------------------------------
cd /home/valentina/Thesis/MX-Thesis-New/final-experiments && chmod +x run_experiment.sh && ./run_experiment.sh
-----------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
CERCA IN TUTTI I FILE:
MaxNumOfTxsToSelect
E modificare per gestire il carico a piacimento!
------------------------------------------------------------------------------------------------------------------------
To query the status of a transaction:
curl http://localhost:7950/transaction/557f84ded2600779f44063f72a3fff7bd4d719c29b1d9c5570d0a7b4f4029428 | jq
(Requires installing jq:
sudo apt install jq
)
------------------------------------------------------------------------------------------------------------------------
-----------------
sudo lsof -i :22111
kill -9 25226
-----------------
------------------------------------
export PYTHONPATH="/home/valentina/Thesis/MX-Thesis-New/mx-sdk-py-cli-v9.5.1"
------------------------------------
--------------------- INSTALL GO -------------------------
Before running elasticindexer, Go needs to be installed.
wget https://go.dev/dl/go1.21.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
cd ~ && mkdir go
sudo nano ~/.bashrc
Paste:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin
Then do:
cd /home/valentina/Thesis/MX-Thesis-New/packages/mx-chain-es-indexer-go-v1.4.18/cmd/elasticindexer
go install
go build -o elasticindexer
Now command of step 2. can be executed!
-------------------------------------------------------------------
Per matplotlib: https://www.youtube.com/watch?v=zmwpNGPlkrE&ab_channel=HowtoFixYourComputer (FONTE)
- Install VcxSrv from: https://sourceforge.net/projects/vcxsrv/
- Configure XLaunch (eseguibile che si crea sul desktop una volta installato VcxSrv)
- Run: sudo apt-get update
- Run: sudo apt-get install python3.8-tk
- Run: export DISPLAY=:0.0
- Or put it inside ./bashrc with: sudo nano ~/.bashrc
---------------------------------------------------------------------
***Tx inside miniblock inside historyRepository*** txHash = d9174e82f28378abfb07441ece9b625594bbf53072cfc4695d370349fe90cb51
GENERATING THE ACCOUNT MIGRATION TRANSACTION FOR ALICE!