fn offchain_worker(now: T::BlockNumber) {
			log::info!("Entering in RiskManager off-chain worker");

			if let Err(e) = Self::_offchain_worker() {
				log::info!(
					target: "RiskManager offchain worker",
					"cannot run offchain worker at {:?}: {:?}",
					now,
					e,
				);
			} else {
				log::debug!(
					target: "RiskManager offchain worker",
					" RiskManager offchain worker start at block: {:?} already done!",
					now,
				);
			}
			log::info!("Exited from RiskManager off-chain worker");
		}
/// Runs after every block. Start offchain worker to check unsafe loan and
/// submit unsigned tx to trigger liquidation.
Runs after every block. Start offchain worker to check unsafe loan and
submit unsigned tx to trigger liquidation.
Runs after every block . Start offchain worker to check unsafe loan and submit unsigned tx to trigger liquidation .
fn offchain_worker(now: T::BlockNumber) {
			log::info!("Entering in RiskManager off-chain worker");
			if let Err(e) = Self::_offchain_worker() {
				log::info!(
					target: "RiskManager offchain worker",
					"cannot run offchain worker at {:?}: {:?}",
					now,
					e,
				);
			} else {
				log::debug!(
					target: "RiskManager offchain worker",
					" RiskManager offchain worker start at block: {:?} already done!",
					now,
				);
			}
			log::info!("Exited from RiskManager off-chain worker");
		}
fn offchain_worker ( now : T :: BlockNumber ) { log :: info ! ( " " ) ; if let Err ( e ) = Self :: _offchain_worker ( ) { log :: info ! ( target " " " " now e ) ; } else { log :: debug ! ( target " " " " now ) ; } log :: info ! ( " " ) ; }
Runs after every block.
Runs after every block .
now
T::BlockNumber
now
T::BlockNumber