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

Method mark_success

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

Source from the content-addressed store, hash-verified

181 }
182
183 fn mark_success(&mut self) {
184 self.failures = 0;
185 self.backoff_until = Instant::now();
186 self.last_error = None;
187 }
188
189 fn mark_failure(&mut self, error: String) {
190 self.failures += 1;

Callers 3

refresh_currencyMethod · 0.80
background_refreshMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected