Skip to content

Commit

Permalink
Merge pull request #600 from evoskuil/master
Browse files Browse the repository at this point in the history
Change address table config message to say "0 disables".
  • Loading branch information
evoskuil committed Apr 30, 2024
2 parents 13db3b4 + 1988291 commit 4e0df3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion console/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,22 @@ void executor::scan_collisions() const
// arbitrary testing (const).
void executor::read_test() const
{
console("No read test implemented.");
// Binance wallet address with 1,380,169 transaction count.
// blockstream.info/address/bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h
const auto data = base16_array("0014dc6bf86354105de2fcd9868a2b0376d6731cb92f");
const chain::script output_script{ data, false };
const auto mnemonic = output_script.to_string(chain::flags::all_rules);
console(format("Getting payments to {%1%}.") % mnemonic);

database::output_links outputs{};
if (!query_.to_address_outputs(outputs, output_script.hash()))
{
console(format("Error finding addresses for {%1%}.") % mnemonic);
return;
}

console(format("Found [%1%] outputs with {%2%}.") % outputs.size() %
mnemonic);
}

#if defined(UNDEFINED)
Expand Down
2 changes: 1 addition & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ options_metadata parser::load_settings() THROWS
(
"database.address_buckets",
value<uint32_t>(&configured.database.address_buckets),
"The number of buckets in the address table head, defaults to '1459791875' (1 disables)."
"The number of buckets in the address table head, defaults to '1459791875' (0 disables)."
)
(
"database.address_size",
Expand Down

0 comments on commit 4e0df3d

Please sign in to comment.