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

Function ds_rebalance_path

plugins/bkpr/rebalances.c:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static const char **ds_rebalance_path(const tal_t *ctx, u64 id1, u64 id2)
65{
66 u64 lesser, greater;
67 if (id1 < id2) {
68 lesser = id1;
69 greater = id2;
70 } else {
71 lesser = id2;
72 greater = id1;
73 }
74 return mkdatastorekey(ctx, "bookkeeper", "rebalances",
75 take(tal_fmt(NULL, "%"PRIu64"-%"PRIu64,
76 lesser, greater)));
77}
78
79void add_rebalance_pair(struct command *cmd,
80 struct bkpr *bkpr,

Callers 1

add_rebalance_pairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected