Skip to content

Commit 1a9076f

Browse files
committed
Add prevout reporting to console dumps.
1 parent a2620a7 commit 1a9076f

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

console/executor_dumps.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ void executor::dump_body_sizes() const
100100
query_.candidate_body_size() %
101101
query_.confirmed_body_size() %
102102
query_.spend_body_size() %
103+
query_.prevout_body_size() %
103104
query_.strong_tx_body_size() %
104105
query_.validated_tx_body_size() %
105106
query_.validated_bk_body_size() %
@@ -116,6 +117,7 @@ void executor::dump_records() const
116117
query_.candidate_records() %
117118
query_.confirmed_records() %
118119
query_.spend_records() %
120+
query_.prevout_records() %
119121
query_.strong_tx_records() %
120122
query_.address_records());
121123
}
@@ -128,6 +130,7 @@ void executor::dump_buckets() const
128130
query_.tx_buckets() %
129131
query_.point_buckets() %
130132
query_.spend_buckets() %
133+
query_.prevout_buckets() %
131134
query_.strong_tx_buckets() %
132135
query_.validated_tx_buckets() %
133136
query_.validated_bk_buckets() %
@@ -144,6 +147,7 @@ void executor::dump_collisions() const
144147
(to_double(query_.tx_records()) / query_.tx_buckets()) %
145148
(to_double(query_.point_records()) / query_.point_buckets()) %
146149
(to_double(query_.spend_records()) / query_.spend_buckets()) %
150+
(to_double(query_.prevout_records()) / query_.prevout_buckets()) %
147151
(to_double(query_.strong_tx_records()) / query_.strong_tx_buckets()) %
148152
(to_double(query_.tx_records()) / query_.validated_tx_buckets()) %
149153
(to_double(query_.header_records()) / query_.validated_bk_buckets()) %

console/localize.hpp

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ namespace node {
8080
" candidate :%8%\n" \
8181
" confirmed :%9%\n" \
8282
" spend :%10%\n" \
83-
" strong_tx :%11%\n" \
84-
" valid_tx :%12%\n" \
85-
" valid_bk :%13%\n" \
86-
" address :%14%\n" \
87-
" neutrino :%15%"
83+
" prevout :%11%\n" \
84+
" strong_tx :%12%\n" \
85+
" valid_tx :%13%\n" \
86+
" valid_bk :%14%\n" \
87+
" address :%15%\n" \
88+
" neutrino :%16%"
8889
#define BN_MEASURE_RECORDS \
8990
"Table records...\n" \
9091
" header :%1%\n" \
@@ -93,8 +94,9 @@ namespace node {
9394
" candidate :%4%\n" \
9495
" confirmed :%5%\n" \
9596
" spend :%6%\n" \
96-
" strong_tx :%7%\n" \
97-
" address :%8%"
97+
" prevout :%7%\n" \
98+
" strong_tx :%8%\n" \
99+
" address :%9%"
98100
#define BN_MEASURE_SLABS \
99101
"Table slabs..."
100102
#define BN_MEASURE_SLABS_ROW \
@@ -110,23 +112,25 @@ namespace node {
110112
" tx :%3%\n" \
111113
" point :%4%\n" \
112114
" spend :%5%\n" \
113-
" strong_tx :%6%\n" \
114-
" valid_tx :%7%\n" \
115-
" valid_bk :%8%\n" \
116-
" address :%9%\n" \
117-
" neutrino :%10%"
115+
" prevout :%6%\n" \
116+
" strong_tx :%7%\n" \
117+
" valid_tx :%8%\n" \
118+
" valid_bk :%9%\n" \
119+
" address :%10%\n" \
120+
" neutrino :%11%"
118121
#define BN_MEASURE_COLLISION_RATES \
119122
"Collision rates...\n" \
120123
" header :%1%\n" \
121124
" txs :%2%\n" \
122125
" tx :%3%\n" \
123126
" point :%4%\n" \
124127
" spend :%5%\n" \
125-
" strong_tx :%6%\n" \
126-
" valid_tx :%7%\n" \
127-
" valid_bk :%8%\n" \
128-
" address :%9%\n" \
129-
" neutrino :%10%"
128+
" prevout :%6%\n" \
129+
" strong_tx :%7%\n" \
130+
" valid_tx :%8%\n" \
131+
" valid_bk :%9%\n" \
132+
" address :%10%\n" \
133+
" neutrino :%11%"
130134
#define BN_MEASURE_PROGRESS_START \
131135
"Thinking..."
132136
#define BN_MEASURE_PROGRESS \

0 commit comments

Comments
 (0)