MCPcopy Create free account
hub / github.com/ElementsProject/lightning / currency_requested

Method currency_requested

plugins/currencyrate-plugin/src/oracle.rs:213–215  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

211 }
212
213 fn currency_requested(&mut self) {
214 self.last_request = Instant::now();
215 }
216
217 fn is_currency_still_desired(&self) -> bool {
218 self.last_request + SERVE_TTL * 3 > Instant::now()

Callers 3

currencyconvertFunction · 0.80
currencyrateFunction · 0.80
listcurrencyratesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected