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

Function fromwire_dstore_node_bias

plugins/askrene/datastore_wire.c:281–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281bool fromwire_dstore_node_bias(const tal_t *ctx,
282 const u8 **cursor, size_t *len,
283 struct node_id *node,
284 const char **description,
285 s8 *in_bias, s8 *out_bias,
286 u64 *timestamp)
287{
288 if (fromwire_u16(cursor, len) != DSTORE_NODE_BIAS) {
289 fromwire_fail(cursor, len);
290 return false;
291 }
292
293 fromwire_node_id(cursor, len, node);
294 *in_bias = fromwire_s8(cursor, len);
295 *out_bias = fromwire_s8(cursor, len);
296 *description = fromwire_opt_wirestring(ctx, cursor, len);
297 *timestamp = fromwire_u64(cursor, len);
298
299 return *cursor != NULL;
300}
301
302void towire_dstore_node_bias(u8 **data,
303 const struct node_id *node,

Callers 1

load_node_biasFunction · 0.85

Calls 6

fromwire_s8Function · 0.85
fromwire_opt_wirestringFunction · 0.85
fromwire_u16Function · 0.50
fromwire_failFunction · 0.50
fromwire_node_idFunction · 0.50
fromwire_u64Function · 0.50

Tested by

no test coverage detected