clboss/Boss/Mod/ChannelCreator
2020-11-18 16:46:20 +08:00
..
Carpenter.cpp Boss/Mod/: Use iterators instead of indexing for Jsmn::Object types. 2020-11-18 16:46:20 +08:00
Carpenter.hpp Boss/Mod/ChannelCreator/Carpenter.cpp: Implement actual channel creation. 2020-09-17 14:02:24 +08:00
Main.cpp Boss/Mod/ChannelCreator/Carpenter.cpp: Implement actual channel creation. 2020-09-17 14:02:24 +08:00
Main.hpp Boss/Mod/ChannelCreator/Carpenter.cpp: Implement actual channel creation. 2020-09-17 14:02:24 +08:00
Manager.cpp *: Silence clang warnings. 2020-11-02 19:02:35 +08:00
Manager.hpp Boss/Mod/ChannelCreator/Manager.cpp: Remove Boss::Mod::ChannelCreator::Dowser. 2020-10-12 15:37:57 +08:00
Planner.cpp Boss/Mod/ChannelCreator/: Reject proposals that have too little liquidity to their patrons, do not give them minimum liquidity. 2020-10-01 09:01:37 +08:00
Planner.hpp Boss/Mod/ChannelCreator/: Reject proposals that have too little liquidity to their patrons, do not give them minimum liquidity. 2020-10-01 09:01:37 +08:00
README.md Boss/Mod/ChannelCreator/Planner.cpp: Initial cut at planner. 2020-09-16 22:35:28 +08:00

This module creates channels.

It reacts to Boss::Msg::RequestChannelCreation, then queries a Boss::Mod::ChannelCandidateInvestigator::Main for candidates, then figures out some kind of divison of available funds to those candidates.

  • Dowser - given a single candidate, attempts to figure out some recommended amount to put in a channel for this. This object is created at runtime for each recommended candidate.
  • Planner - given an amount, some proposal nodes, and how many channels we already have, creates a plan of how to build channels. This object is created at runtime when we have onchain funds we want to use.
  • Carpenter - actually constructs channels, and reports channel creation success and failure.
  • Manager - handles the above objects, and wrangles with most messages received.
  • Main - Holds the Carpenter and Manager.