Restrict transaction fee payers to system accounts (#4198)

automerge
This commit is contained in:
Michael Vines
2019-05-24 13:06:55 -07:00
committed by Grimes
parent f56955a17c
commit 9843c3a5cb
4 changed files with 46 additions and 0 deletions

View File

@ -28,6 +28,9 @@ pub enum TransactionError {
/// The from `Pubkey` does not have sufficient balance to pay the fee to schedule the transaction
InsufficientFundsForFee,
/// This account may not be used to pay transaction fees
InvalidAccountForFee,
/// The bank has seen `Signature` before. This can occur under normal operation
/// when a UDP packet is duplicated, as a user error from a client not updating
/// its `recent_blockhash`, or as a double-spend attack.