mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-18 04:00:03 +02:00
common/include/eoskeygen/key_search.hpp: adding abort()
This commit is contained in:
parent
2a528e0eb0
commit
7c2545cdc2
2 changed files with 12 additions and 0 deletions
|
|
@ -83,6 +83,12 @@ void KeySearch::_search_linear()
|
|||
}
|
||||
}
|
||||
|
||||
void KeySearch::abort()
|
||||
{
|
||||
// exit find() operation by setting m_max to zero.
|
||||
m_max = 0;
|
||||
}
|
||||
|
||||
void KeySearch::find(size_t num_results)
|
||||
{
|
||||
m_count = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue