Skip to content

Commit 5316fb7

Browse files
authored
Merge pull request #774 from evoskuil/master
Remove arraymaps from collision rate report.
2 parents 1b4b81c + 4df5057 commit 5316fb7

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

console/executor_dumps.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,16 @@ void executor::dump_buckets() const
141141
query_.address_buckets());
142142
}
143143

144-
// txs, validated_tx, validated_bk collision rates assume 1:1 records.
145144
void executor::dump_collisions() const
146145
{
147146
logger(format(BN_MEASURE_COLLISION_RATES) %
148147
(to_double(query_.header_records()) / query_.header_buckets()) %
149-
(to_double(query_.header_records()) / query_.txs_buckets()) %
150148
(to_double(query_.tx_records()) / query_.tx_buckets()) %
151149
(to_double(query_.point_records()) / query_.point_buckets()) %
152150
(to_double(query_.strong_tx_records()) / query_.strong_tx_buckets()) %
153-
(to_double(query_.header_records()) / query_.validated_bk_buckets()) %
154151
(to_double(query_.tx_records()) / query_.validated_tx_buckets()) %
155-
(query_.address_enabled() ?
156-
(to_double(query_.address_records()) / query_.address_buckets()) : zero));
152+
(query_.address_enabled() ? (to_double(query_.address_records()) /
153+
query_.address_buckets()) : zero));
157154
}
158155

159156
void executor::dump_progress() const

console/localize.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@ namespace node {
126126
#define BN_MEASURE_COLLISION_RATES \
127127
"Collision rates...\n" \
128128
" header :%1%\n" \
129-
" txs :%2%\n" \
130-
" tx :%3%\n" \
131-
" point :%4%\n" \
132-
" strong_tx :%5%\n" \
133-
" valid_bk :%6%\n" \
134-
" valid_tx :%7%\n" \
135-
" address :%8%"
129+
" tx :%2%\n" \
130+
" point :%3%\n" \
131+
" strong_tx :%4%\n" \
132+
" valid_tx :%5%\n" \
133+
" address :%6%"
136134
#define BN_MEASURE_PROGRESS_START \
137135
"Thinking..."
138136
#define BN_MEASURE_PROGRESS \

include/bitcoin/node/chasers/chaser_organize.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,6 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
202202
BC_POP_WARNING()
203203

204204
#undef CLASS
205+
#undef TEMPLATE
205206

206207
#endif

install-cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ build_from_tarball_boost()
899899
"$BOOST_CXXFLAGS" \
900900
"$BOOST_LINKFLAGS" \
901901
"link=$BOOST_LINK" \
902-
"warnings=off" \
902+
"warnings=off" \
903903
"boost.locale.iconv=$BOOST_ICU_ICONV" \
904904
"boost.locale.posix=$BOOST_ICU_POSIX" \
905905
"-sNO_BZIP2=1" \

install-cmakepresets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ build_from_tarball_boost()
942942
"$BOOST_CXXFLAGS" \
943943
"$BOOST_LINKFLAGS" \
944944
"link=$BOOST_LINK" \
945-
"warnings=off" \
945+
"warnings=off" \
946946
"boost.locale.iconv=$BOOST_ICU_ICONV" \
947947
"boost.locale.posix=$BOOST_ICU_POSIX" \
948948
"-sNO_BZIP2=1" \

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ build_from_tarball_boost()
774774
"$BOOST_CXXFLAGS" \
775775
"$BOOST_LINKFLAGS" \
776776
"link=$BOOST_LINK" \
777-
"warnings=off" \
777+
"warnings=off" \
778778
"boost.locale.iconv=$BOOST_ICU_ICONV" \
779779
"boost.locale.posix=$BOOST_ICU_POSIX" \
780780
"-sNO_BZIP2=1" \

0 commit comments

Comments
 (0)