Skip to content

Commit

Permalink
Add static lifetime to emission_amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Oct 25, 2022
1 parent 9edbbce commit 0b6e395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/consensus/consensus_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl ConsensusConstants {
}

/// This gets the emission curve values as (initial, decay, tail)
pub fn emission_amounts(&self) -> (MicroTari, &[u64], MicroTari) {
pub fn emission_amounts(&self) -> (MicroTari, &'static [u64], MicroTari) {
(self.emission_initial, self.emission_decay, self.emission_tail)
}

Expand Down

0 comments on commit 0b6e395

Please sign in to comment.