Skip to content

Commit

Permalink
remove device parameters from make_carrot_transaction_proposal_v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffro256 committed Feb 25, 2025
1 parent ad18a25 commit 0f856c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
14 changes: 0 additions & 14 deletions src/carrot_impl/carrot_tx_builder_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ void make_carrot_transaction_proposal_v1(const std::vector<CarrotPaymentProposal
const std::vector<uint8_t> &extra,
select_inputs_func_t &&select_inputs,
carve_fees_and_balance_func_t &&carve_fees_and_balance,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
CarrotTransactionProposalV1 &tx_proposal_out)
{
Expand Down Expand Up @@ -202,8 +200,6 @@ void make_carrot_transaction_proposal_v1_transfer_subtractable(
const rct::xmr_amount fee_per_weight,
const std::vector<uint8_t> &extra,
select_inputs_func_t &&select_inputs,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
const std::set<std::size_t> &subtractable_normal_payment_proposals,
const std::set<std::size_t> &subtractable_selfsend_payment_proposals,
Expand Down Expand Up @@ -348,8 +344,6 @@ void make_carrot_transaction_proposal_v1_transfer_subtractable(
extra,
std::forward<select_inputs_func_t>(select_inputs),
std::move(carve_fees_and_balance),
s_view_balance_dev,
k_view_dev,
account_spend_pubkey,
tx_proposal_out);
}
Expand All @@ -360,8 +354,6 @@ void make_carrot_transaction_proposal_v1_transfer(
const rct::xmr_amount fee_per_weight,
const std::vector<uint8_t> &extra,
select_inputs_func_t &&select_inputs,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
CarrotTransactionProposalV1 &tx_proposal_out)
{
Expand All @@ -371,8 +363,6 @@ void make_carrot_transaction_proposal_v1_transfer(
fee_per_weight,
extra,
std::forward<select_inputs_func_t>(select_inputs),
s_view_balance_dev,
k_view_dev,
account_spend_pubkey,
/*subtractable_normal_payment_proposals=*/{},
/*subtractable_selfsend_payment_proposals=*/{selfsend_payment_proposals.size()},
Expand All @@ -384,8 +374,6 @@ void make_carrot_transaction_proposal_v1_sweep(
const rct::xmr_amount fee_per_weight,
const std::vector<uint8_t> &extra,
std::vector<CarrotSelectedInput> &&selected_inputs,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
CarrotTransactionProposalV1 &tx_proposal_out)
{
Expand Down Expand Up @@ -452,8 +440,6 @@ void make_carrot_transaction_proposal_v1_sweep(
extra,
std::move(select_inputs),
std::move(carve_fees_and_balance),
s_view_balance_dev,
k_view_dev,
account_spend_pubkey,
tx_proposal_out);
}
Expand Down
8 changes: 0 additions & 8 deletions src/carrot_impl/carrot_tx_builder_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ void make_carrot_transaction_proposal_v1(const std::vector<CarrotPaymentProposal
const std::vector<uint8_t> &extra,
select_inputs_func_t &&select_inputs,
carve_fees_and_balance_func_t &&carve_fees_and_balance,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
CarrotTransactionProposalV1 &tx_proposal_out);

Expand All @@ -78,8 +76,6 @@ void make_carrot_transaction_proposal_v1_transfer_subtractable(
const rct::xmr_amount fee_per_weight,
const std::vector<uint8_t> &extra,
select_inputs_func_t &&select_inputs,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
const std::set<std::size_t> &subtractable_normal_payment_proposals,
const std::set<std::size_t> &subtractable_selfsend_payment_proposals,
Expand All @@ -91,8 +87,6 @@ void make_carrot_transaction_proposal_v1_transfer(
const rct::xmr_amount fee_per_weight,
const std::vector<uint8_t> &extra,
select_inputs_func_t &&select_inputs,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
CarrotTransactionProposalV1 &tx_proposal_out);

Expand All @@ -101,8 +95,6 @@ void make_carrot_transaction_proposal_v1_sweep(
const rct::xmr_amount fee_per_weight,
const std::vector<uint8_t> &extra,
std::vector<CarrotSelectedInput> &&selected_inputs,
const view_balance_secret_device *s_view_balance_dev,
const view_incoming_key_device *k_view_dev,
const crypto::public_key &account_spend_pubkey,
CarrotTransactionProposalV1 &tx_proposal_out);

Expand Down
2 changes: 0 additions & 2 deletions tests/unit_tests/carrot_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,6 @@ static void subtest_multi_account_transfer_over_transaction(const unittest_trans
tx_preproposal.fee_per_weight,
tx_preproposal.extra_extra,
make_fake_input_selection_callback(),
ss_keys.get_view_balance_device(),
&ss_keys.k_view_dev,
ss_keys.account_spend_pubkey,
tx_proposal);

Expand Down

0 comments on commit 0f856c9

Please sign in to comment.