You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't affect actual fees (the fee-payer will still be charged for 2 sigs) or CU's in the way things are currently written, but for the sake of accurate counting, it is incorrect.
Proposed Solution
Update SimpleVote to track the number of signatures:
Just want to clarify here for later - transactions are still charged the correct fee, for 2 signatures, it is just not properly accounted for by cost-model.
Problem
TransactionCost
has two cases in the enum;SimpleVote
andTransaction
. ASimpleVote
is defined by these things:agave/cost-model/src/transaction_cost.rs
Lines 8 to 10 in 11aa06d
Note that a
SimpleVote
can contain 1 or 2 signatures, butTransactionCost::num_transaction_signatures()
reports a fixed value of1
for simple votes:agave/cost-model/src/transaction_cost.rs
Lines 95 to 100 in 11aa06d
This doesn't affect actual fees (the fee-payer will still be charged for 2 sigs) or CU's in the way things are currently written, but for the sake of accurate counting, it is incorrect.
Proposed Solution
Update
SimpleVote
to track the number ofsignatures
:agave/cost-model/src/transaction_cost.rs
Line 15 in 11aa06d
and populate that field here:
agave/cost-model/src/cost_model.rs
Lines 40 to 42 in 11aa06d
The text was updated successfully, but these errors were encountered: