Skip to content

Commit

Permalink
Merge pull request #736 from evoskuil/master
Browse files Browse the repository at this point in the history
Update obsoleted seed help to not refer to nonexistent entropy command, regenerate.
  • Loading branch information
evoskuil authored Aug 20, 2023
2 parents 0ccbf50 + 10bfd15 commit 2388e24
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion include/bitcoin/explorer/commands/seed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace commands {
* Various localizable strings.
*/
#define BX_SEED_OBSOLETE \
"This command is obsolete. Use the entropy command instead."
"This command is obsolete."

/**
* Class to implement the seed command.
Expand Down
1 change: 0 additions & 1 deletion include/bitcoin/explorer/generated.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
#include <bitcoin/explorer/commands/script-to-key.hpp>
#include <bitcoin/explorer/commands/script-to-witness.hpp>
#include <bitcoin/explorer/commands/seed.hpp>
#include <bitcoin/explorer/commands/seed.hpp>
#include <bitcoin/explorer/commands/send-tx.hpp>
#include <bitcoin/explorer/commands/settings.hpp>
#include <bitcoin/explorer/commands/sha160.hpp>
Expand Down
2 changes: 1 addition & 1 deletion model/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@
</command>

<command symbol="seed" category="WALLET" obsolete="true" description="Generate a pseudorandom seed.">
<define name="BX_SEED_OBSOLETE" value="This command is obsolete. Use the entropy command instead." />
<define name="BX_SEED_OBSOLETE" value="This command is obsolete." />
</command>

<command symbol="send-tx" formerly="sendtx-obelisk" output="string" category="ONLINE" network="true" description="Broadcast a transaction to the Bitcoin network via a Libbitcoin server.">
Expand Down
3 changes: 0 additions & 3 deletions src/generated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ void broadcast(const function<void(shared_ptr<command>)> func)
func(make_shared<script_to_key>());
func(make_shared<script_to_witness>());
func(make_shared<seed>());
func(make_shared<seed>());
func(make_shared<send_tx>());
func(make_shared<settings>());
func(make_shared<sha160>());
Expand Down Expand Up @@ -338,8 +337,6 @@ shared_ptr<command> find(const string& symbol)
return make_shared<script_to_witness>();
if (symbol == seed::symbol())
return make_shared<seed>();
if (symbol == seed::symbol())
return make_shared<seed>();
if (symbol == send_tx::symbol())
return make_shared<send_tx>();
if (symbol == settings::symbol())
Expand Down
5 changes: 0 additions & 5 deletions test/generated__find.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,6 @@ BOOST_AUTO_TEST_CASE(generated__find__seed__returns_object)
BOOST_REQUIRE(find("seed") != nullptr);
}

BOOST_AUTO_TEST_CASE(generated__find__seed__returns_object)
{
BOOST_REQUIRE(find("seed") != nullptr);
}

BOOST_AUTO_TEST_CASE(generated__find__send_tx__returns_object)
{
BOOST_REQUIRE(find("send-tx") != nullptr);
Expand Down
5 changes: 0 additions & 5 deletions test/generated__symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,6 @@ BOOST_AUTO_TEST_CASE(generated__symbol__seed__returns_expected_value)
BOOST_REQUIRE_EQUAL(seed::symbol(), "seed");
}

BOOST_AUTO_TEST_CASE(generated__symbol__seed__returns_expected_value)
{
BOOST_REQUIRE_EQUAL(seed::symbol(), "seed");
}

BOOST_AUTO_TEST_CASE(generated__symbol__send_tx__returns_expected_value)
{
BOOST_REQUIRE_EQUAL(send_tx::symbol(), "send-tx");
Expand Down

0 comments on commit 2388e24

Please sign in to comment.