forked from lthn/blockchain
wallet: getting rid of unused code
This commit is contained in:
parent
781273fb0c
commit
b043f8cc0f
2 changed files with 0 additions and 34 deletions
|
|
@ -3089,39 +3089,6 @@ bool wallet2::get_contracts(escrow_contracts_container& contracts)
|
|||
return true;
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::get_fake_offers(std::list<bc_services::offer_details_ex>& offers, uint64_t amount)
|
||||
{
|
||||
|
||||
for (uint64_t i = 0; i != amount; i++)
|
||||
{
|
||||
bc_services::offer_details od;
|
||||
od.offer_type = rand() % 4;
|
||||
od.amount_primary = rand();
|
||||
od.amount_target = rand();
|
||||
od.bonus = get_random_rext(10);
|
||||
od.target = get_random_rext(10);
|
||||
od.location_country = get_random_rext(6);
|
||||
od.location_city = get_random_rext(10);
|
||||
od.contacts = get_random_rext(20);
|
||||
od.comment = get_random_rext(30);
|
||||
od.payment_types = get_random_rext(10);
|
||||
od.deal_option = get_random_rext(10);
|
||||
od.category = get_random_rext(4);
|
||||
od.expiration_time = 3;
|
||||
|
||||
crypto::hash tx_id = crypto::rand<crypto::hash>();
|
||||
offers.push_back(bc_services::offer_details_ex());
|
||||
bc_services::offer_details_ex& odl = offers.back();
|
||||
static_cast<bc_services::offer_details&>(odl) = od;
|
||||
odl.timestamp = m_core_runtime_config.get_core_time();
|
||||
odl.index_in_tx = 0;
|
||||
odl.tx_hash = tx_id;
|
||||
odl.stopped = false;
|
||||
odl.fee = 10000;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void wallet2::build_escrow_release_templates(crypto::hash multisig_id,
|
||||
uint64_t fee,
|
||||
currency::transaction& tx_release_template,
|
||||
|
|
|
|||
|
|
@ -698,7 +698,6 @@ namespace tools
|
|||
bool reset_password(const std::string& pass);
|
||||
bool is_password_valid(const std::string& pass);
|
||||
bool get_actual_offers(std::list<bc_services::offer_details_ex>& offers);
|
||||
bool get_fake_offers(std::list<bc_services::offer_details_ex>& offers, uint64_t amount);
|
||||
bool process_contract_info(wallet_public::wallet_transfer_info& wti, const std::vector<currency::payload_items_v>& decrypted_attach);
|
||||
bool handle_proposal(wallet_public::wallet_transfer_info& wti, const bc_services::proposal_body& prop);
|
||||
void accept_proposal(const crypto::hash& contract_id, uint64_t b_acceptance_fee, currency::transaction* p_acceptance_tx = nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue