Fix RPC wallet_change_seed (#1586)
This commit is contained in:
parent
5245414dee
commit
90f5c576d3
2 changed files with 3 additions and 2 deletions
|
@ -2162,9 +2162,10 @@ TEST (rpc, wallet_change_seed)
|
|||
request.put ("wallet", system0.nodes[0]->wallets.items.begin ()->first.to_string ());
|
||||
request.put ("seed", seed.pub.to_string ());
|
||||
test_response response (request, rpc, system0.io_ctx);
|
||||
system0.deadline_set (5s);
|
||||
while (response.status == 0)
|
||||
{
|
||||
system0.poll ();
|
||||
ASSERT_NO_ERROR (system0.poll ());
|
||||
}
|
||||
ASSERT_EQ (200, response.status);
|
||||
{
|
||||
|
|
|
@ -3187,7 +3187,7 @@ void nano::rpc_handler::wallet_change_seed ()
|
|||
nano::raw_key seed;
|
||||
if (!seed.data.decode_hex (seed_text))
|
||||
{
|
||||
auto count (count_optional_impl ());
|
||||
auto count (count_optional_impl (0));
|
||||
auto transaction (node.store.tx_begin_write ());
|
||||
if (wallet->store.valid_password (transaction))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue