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

Function add_rebalance_pair

plugins/bkpr/rebalances.c:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void add_rebalance_pair(struct command *cmd,
80 struct bkpr *bkpr,
81 u64 created_index1, u64 created_index2)
82{
83 const char **path;
84 new_rebalance_pair(bkpr->rebalances, created_index1, created_index2);
85
86 path = ds_rebalance_path(tmpctx, created_index1, created_index2);
87 /* Contents are ignored: key is the data */
88 jsonrpc_set_datastore_string(cmd, path, "", "must-create",
89 ignore_datastore_reply, NULL, NULL);
90}
91
92const u64 *find_rebalance(const struct bkpr *bkpr, u64 created_index)
93{

Callers 1

maybe_record_rebalanceFunction · 0.85

Calls 2

new_rebalance_pairFunction · 0.85
ds_rebalance_pathFunction · 0.85

Tested by

no test coverage detected