Skip to content

Commit f85e649

Browse files
authored
Merge pull request #738 from evoskuil/master
Updates for new ins|point tables configuration.
2 parents 573cdd1 + 531095c commit f85e649

File tree

5 files changed

+42
-13
lines changed

5 files changed

+42
-13
lines changed

console/executor_test_reader.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ void executor::read_test(bool dump) const
169169
if (!points.empty())
170170
{
171171
pt_fk = points.front();
172-
table::point::record point{};
173-
if (!store_.point.get(pt_fk, point))
172+
table::ins::record ins{};
173+
if (!store_.ins.get(pt_fk, ins))
174174
{
175-
// fault, missing point.
175+
// fault, missing ins.
176176
return;
177177
}
178178

179-
in_fk = point.input_fk;
180-
pt_tx_fk = point.parent_fk;
179+
in_fk = ins.input_fk;
180+
pt_tx_fk = ins.parent_fk;
181181
}
182182

183183
////++found;

console/executor_test_writer.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ void executor::write_test(bool)
4646

4747
#if defined(UNDEFINED)
4848

49+
void executor::write_test(bool)
50+
{
51+
for (database::header_link link{ 793'008_u32 }; link < 885'000_u32; ++link)
52+
{
53+
if (!query_.set_block_unknown(link))
54+
{
55+
logger(format("set_block_unknown fault [%1%].") % link.value);
56+
return;
57+
}
58+
}
59+
60+
logger(format("set_block_unknown complete."));
61+
}
62+
4963
void executor::write_test()
5064
{
5165
code ec{};

src/chasers/chaser_confirm.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
264264
return;
265265
}
266266

267-
////if (!set_organized(link, height))
268-
////{
269-
//// fault(error::confirm10);
270-
//// return;
271-
////}
267+
if (!set_organized(link, height))
268+
{
269+
fault(error::confirm10);
270+
return;
271+
}
272272

273273
set_position(height);
274274

src/chasers/chaser_header.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ code chaser_header::duplicate(size_t& height,
7171
// database::error::block_unconfirmable
7272
// database::error::block_confirmable
7373
// database::error::block_valid
74-
// database::error::unknown_state
74+
// database::error::unknown_state (debugging)
7575
// database::error::unvalidated
7676
const auto ec = query.get_header_state(id);
7777

src/parser.cpp

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ parser::parser(system::chain::selection context) NOEXCEPT
8282
configured.database.output_size = 25'300'000'000;
8383
configured.database.output_rate = 5;
8484

85-
configured.database.point_size = 32'000'000'000;
85+
configured.database.point_size = 21'100'000'000;
8686
configured.database.point_rate = 5;
8787

88+
configured.database.ins_size = 10'500'000'000;
89+
configured.database.ins_rate = 5;
90+
8891
configured.database.puts_size = 3'700'000'000;
8992
configured.database.puts_rate = 5;
9093

@@ -696,14 +699,26 @@ options_metadata parser::load_settings() THROWS
696699
(
697700
"database.point_size",
698701
value<uint64_t>(&configured.database.point_size),
699-
"The minimum allocation of the point table body, defaults to '32000000000'."
702+
"The minimum allocation of the point table body, defaults to '21100000000'."
700703
)
701704
(
702705
"database.point_rate",
703706
value<uint16_t>(&configured.database.point_rate),
704707
"The percentage expansion of the point table body, defaults to '5'."
705708
)
706709

710+
/* ins */
711+
(
712+
"database.ins_size",
713+
value<uint64_t>(&configured.database.ins_size),
714+
"The minimum allocation of the point table body, defaults to '10500000000'."
715+
)
716+
(
717+
"database.ins_rate",
718+
value<uint16_t>(&configured.database.ins_rate),
719+
"The percentage expansion of the ins table body, defaults to '5'."
720+
)
721+
707722
/* puts */
708723
(
709724
"database.puts_size",

0 commit comments

Comments
 (0)