Add Bank support for "upgrade epochs" where all non-vote transactions will be rejected (bp #11082) (#11110)

* Add Bank support for "upgrade epochs" where all non-vote transactions will be rejected

(cherry picked from commit e5d8c4383f)

# Conflicts:
#	runtime/src/bank.rs

* Fix merge conflict

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-07-17 17:29:34 +00:00
committed by GitHub
parent 45ce1b4f96
commit dca00d1bde
3 changed files with 166 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ pub enum TransactionError {
/// implies that account locks are not taken for this TX, and should
/// not be unlocked.
SanitizeFailure,
/// Transactions are currently disabled due to cluster maintenance
ClusterMaintenance,
}
pub type Result<T> = result::Result<T, TransactionError>;