* Simplify account.rent_epoch handling for sysvar rent (#16049)
* Add some code for special local testing
* Add comment to store_account_and_update_capitalization
* Simplify account.rent_epoch handling for sysvar rent
* Introduce *_for_test functions
* Add deprecation messages to existing api
(cherry picked from commit 6d5c6c17c5
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# programs/stake/src/stake_instruction.rs
# programs/vote/src/vote_instruction.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# runtime/src/system_instruction_processor.rs
# sdk/benches/slot_hashes.rs
# sdk/benches/slot_history.rs
# sdk/src/account.rs
# sdk/src/keyed_account.rs
# sdk/src/native_loader.rs
# sdk/src/recent_blockhashes_account.rs
* Fix conflicts
* rustfmt
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
@@ -62,6 +62,8 @@ pub type Slot = u64;
|
||||
pub type Epoch = u64;
|
||||
|
||||
pub const GENESIS_EPOCH: Epoch = 0;
|
||||
// must be sync with Account::rent_epoch::default()
|
||||
pub const INITIAL_RENT_EPOCH: Epoch = 0;
|
||||
|
||||
/// SlotIndex is an index to the slots of a epoch
|
||||
pub type SlotIndex = u64;
|
||||
|
Reference in New Issue
Block a user