File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -73,19 +73,19 @@ mod tests {
73
73
74
74
#[ test]
75
75
fn epochs_history_is_none_when_store_history_is_false ( ) {
76
- let epochs_history = EpochsHistoryState :: new ( & StoreConfig :: new ( false , false ) ) ;
76
+ let epochs_history = EpochsHistoryState :: new ( & StoreConfig :: new ( false ) ) ;
77
77
assert ! ( epochs_history. epochs_history. is_none( ) ) ;
78
78
}
79
79
80
80
#[ test]
81
81
fn epochs_history_is_some_when_store_history_is_true ( ) {
82
- let epochs_history = EpochsHistoryState :: new ( & StoreConfig :: new ( true , false ) ) ;
82
+ let epochs_history = EpochsHistoryState :: new ( & StoreConfig :: new ( true ) ) ;
83
83
assert ! ( epochs_history. epochs_history. is_some( ) ) ;
84
84
}
85
85
86
86
#[ test]
87
87
fn handle_epoch_activity_saves_history ( ) {
88
- let epochs_history = EpochsHistoryState :: new ( & StoreConfig :: new ( true , false ) ) ;
88
+ let epochs_history = EpochsHistoryState :: new ( & StoreConfig :: new ( true ) ) ;
89
89
let block = make_block ( 200 ) ;
90
90
epochs_history. handle_epoch_activity (
91
91
& block,
Original file line number Diff line number Diff line change @@ -46,19 +46,6 @@ pub fn save_retired_pools_store_config() -> StoreConfig {
46
46
}
47
47
}
48
48
49
- pub fn save_stake_addresses_store_config ( ) -> StoreConfig {
50
- StoreConfig {
51
- store_epochs_history : false ,
52
- store_retired_pools : false ,
53
- store_registration : false ,
54
- store_updates : false ,
55
- store_delegators : true ,
56
- store_votes : false ,
57
- store_block_hashes : false ,
58
- store_stake_addresses : true ,
59
- }
60
- }
61
-
62
49
pub fn save_block_hashes_store_config ( ) -> StoreConfig {
63
50
StoreConfig {
64
51
store_epochs_history : false ,
You can’t perform that action at this time.
0 commit comments