diff --git a/.gitignore b/.gitignore index 90311de0..39b23163 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ moc_* hardfork.hpp build_xc data +CMakeDoxyfile.in build diff --git a/tests/cli/main.cpp b/tests/cli/main.cpp index d300005b..106f3c8c 100644 --- a/tests/cli/main.cpp +++ b/tests/cli/main.cpp @@ -88,6 +88,7 @@ BOOST_AUTO_TEST_CASE( cli_vote_for_2_witnesses ) witness_object init1_obj = con.wallet_api_ptr->get_witness("init1"); int init1_start_votes = init1_obj.total_votes; // Vote for a witness + con.wallet_api_ptr->create_vesting_balance("nathan", "10000", "1.3.0", vesting_balance_type::gpos, true); signed_transaction vote_witness1_tx = con.wallet_api_ptr->vote_for_witness("nathan", "init1", true, true); // generate a block to get things started diff --git a/tests/cli/son.cpp b/tests/cli/son.cpp index 7915c71e..3ffa83be 100644 --- a/tests/cli/son.cpp +++ b/tests/cli/son.cpp @@ -213,6 +213,7 @@ BOOST_AUTO_TEST_CASE( son_voting ) son2_obj = con.wallet_api_ptr->get_son("son2account"); son2_start_votes = son2_obj.total_votes; + con.wallet_api_ptr->create_vesting_balance("nathan", "1000", "1.3.0", vesting_balance_type::gpos, true); // Vote for a son1account BOOST_TEST_MESSAGE("Voting for son1account"); vote_son1_tx = con.wallet_api_ptr->vote_for_son("nathan", "son1account", true, true); @@ -449,6 +450,7 @@ BOOST_AUTO_TEST_CASE( update_son_votes_test ) rejected.clear(); accepted.push_back("son1account"); accepted.push_back("son2account"); + con.wallet_api_ptr->create_vesting_balance("nathan", "1000", "1.3.0", vesting_balance_type::gpos, true); update_votes_tx = con.wallet_api_ptr->update_son_votes("nathan", accepted, rejected, 2, true); BOOST_CHECK(generate_block()); @@ -469,6 +471,7 @@ BOOST_AUTO_TEST_CASE( update_son_votes_test ) accepted.clear(); rejected.clear(); rejected.push_back("son1account"); + con.wallet_api_ptr->create_vesting_balance("nathan", "1000", "1.3.0", vesting_balance_type::gpos, true); update_votes_tx = con.wallet_api_ptr->update_son_votes("nathan", accepted, rejected, 1, true); BOOST_CHECK(generate_maintenance_block()); @@ -619,6 +622,9 @@ BOOST_FIXTURE_TEST_CASE( cli_list_active_sons, cli_fixture ) "http://son" + fc::to_pretty_string(i), sidechain_public_keys, false); + con.wallet_api_ptr->transfer( + "nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE token for your new account", true ); + con.wallet_api_ptr->create_vesting_balance("sonaccount" + fc::to_pretty_string(i), "500", "1.3.0", vesting_balance_type::gpos, true); } BOOST_CHECK(generate_maintenance_block());