solana
solana copied to clipboard
`lamports_per_signature` in nonce account is not used
Problem
nonce account holds a fee_calculator
that provides lamports_per_signature
. However this lamports_per_signature
is not used:
-
calculate_fee(...)
usesfee_structure.lamports_per_siganture
to calculate signature fee; -
process_message(...)
passes last block_hash'slamports_per_signature
to transaction processing.
Proposed Solution
- remove
fee_calculator
andlamports_per_signature()
from nonce account - remove code (such as this) that fetches
lamports_per_signature
before callingcalculate_fee(...)