pub fn register_tick(&self, hash: &Hash) {
        if self.is_frozen() {
            // warn!("{}", Warn(format!("=========== FIXME: register_tick() working on a frozen bank! ================").to_string()));
            println!("{}",Warn(format!("=========== FIXME: register_tick() working on a frozen bank! ================").to_string(),module_path!().to_string()));
        }

        // TODO: put this assert back in
        // assert!(!self.is_frozen());

        let current_tick_height = {
            self.tick_height.fetch_add(1, Ordering::SeqCst);
            self.tick_height.load(Ordering::SeqCst) as u64
        };
        inc_new_counter_debug!("bank-register_tick-registered", 1);

        // Register a new block hash if at the last tick in the slot
        if current_tick_height % self.ticks_per_slot == self.ticks_per_slot - 1 {
            self.blockhash_queue.write().unwrap().register_hash(hash);
        }
    }
/// Tell the bank which Entry IDs exist on the ledger. This function
/// assumes subsequent calls correspond to later entries, and will boot
/// the oldest ones once its internal cache is full. Once boot, the
/// bank will reject transactions using that `hash`.
Tell the bank which Entry IDs exist on the ledger. This function
assumes subsequent calls correspond to later entries, and will boot
the oldest ones once its internal cache is full. Once boot, the
bank will reject transactions using that `hash`.
Tell the bank which Entry IDs exist on the ledger . This function assumes subsequent calls correspond to later entries and will boot the oldest ones once its internal cache is full . Once boot the bank will reject transactions using that ` hash ` .
pub fn register_tick(&self, hash: &Hash) {
        if self.is_frozen() {
            // warn!("{}", Warn(format!("=========== FIXME: register_tick() working on a frozen bank! ================").to_string()));
            println!("{}",Warn(format!("=========== FIXME: register_tick() working on a frozen bank! ================").to_string(),module_path!().to_string()));
        }
        // TODO: put this assert back in
        // assert!(!self.is_frozen());
        let current_tick_height = {
            self.tick_height.fetch_add(1, Ordering::SeqCst);
            self.tick_height.load(Ordering::SeqCst) as u64
        };
        inc_new_counter_debug!("bank-register_tick-registered", 1);
        // Register a new block hash if at the last tick in the slot
        if current_tick_height % self.ticks_per_slot == self.ticks_per_slot - 1 {
            self.blockhash_queue.write().unwrap().register_hash(hash);
        }
    }
pub fn register_tick ( & self , hash : & Hash ) { if self . is_frozen ( ) { // warn!("{}", Warn(format!("=========== FIXME: register_tick() working on a frozen bank! ================").to_string())); println ! ( " " Warn ( format ( " " ) to_string ( ) module_path ( ) to_string ( ) ) ) ; } // TODO: put this assert back in // assert!(!self.is_frozen()); let current_tick_height = { self . tick_height . fetch_add ( 1 , Ordering :: SeqCst ) ; self . tick_height . load ( Ordering :: SeqCst ) as u64 } ; inc_new_counter_debug ! ( " " 1 ) ; // Register a new block hash if at the last tick in the slot if current_tick_height % self . ticks_per_slot == self . ticks_per_slot - 1 { self . blockhash_queue . write ( ) . unwrap ( ) . register_hash ( hash ) ; } }
Tell the bank which Entry IDs exist on the ledger.
Tell the bank which Entry IDs exist on the ledger .
&self
hash
&Hash
&self
hash
&Hash