Polkadot 的交易优先级是否仅基于手续费?

Is Polkadot transaction priority only based on fees?

Polkdadot wiki 在 Learn > Basics > Transaction Fees 中说:

Block producers prioritize transactions based on each transaction's total fee. Since a portion of the fee will go to the block producer, producers will include the transactions with the highest fees to maximize their reward.

交易的权重(或任何其他因素)对优先级排序有影响吗?大批量交易(自然会产生更高的费用)优先于较小的交易,无论其权重如何,这似乎违反直觉。

您可以完全自行决定交易的优先级。如果您使用默认 ChargeTransactionPayment signed extension you will use the following formula to calculate the priority: https://github.com/paritytech/substrate/blob/fb24fda76d613305ebb2e5728c75362c94b64aa1/frame/transaction-payment/src/lib.rs#L614-L681