Browse Source

Add allow deprecated to get_max_age (#8714)

* Add allow deprecated to get_max_age

* Update accounts-db/src/blockhash_queue.rs

Co-authored-by: Trent Nelson <490004+t-nelson@users.noreply.github.com>

---------

Co-authored-by: Trent Nelson <490004+t-nelson@users.noreply.github.com>
Rory Harris 3 weeks ago
parent
commit
864c45243b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      accounts-db/src/blockhash_queue.rs

+ 1 - 0
accounts-db/src/blockhash_queue.rs

@@ -141,6 +141,7 @@ impl BlockhashQueue {
         note = "Please use `solana_clock::MAX_PROCESSING_AGE`"
     )]
     pub fn get_max_age(&self) -> usize {
+        #[allow(deprecated)]
         self.max_age
     }
 }