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

Method mark_failure

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

Source from the content-addressed store, hash-verified

155 }
156
157 fn mark_failure(&mut self) {
158 self.failures += 1;
159 let delay = INITIAL_BACKOFF * 2u32.pow(self.failures.min(10));
160 self.backoff_until = Instant::now() + delay.min(MAX_BACKOFF);
161 }
162}
163
164#[derive(Debug)]

Callers 2

refresh_currencyMethod · 0.80
background_refreshMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected