pool/funding
Olaoluwa Osuntokun 05cb020997
rpc: add automated sidecar negotiation for the recipient
In this commit, we add automated sidecar negotiation for the recipient.
We'll use the new expose mailbox system to communicate with the provider
of the ticket to incrementally transform and complete it.

We add a new state machine attached to the sidecar acceptor that drives
the sidecar ticket to completion. We have two main states to handle:
sending the ticket w/ our node's information to the provider, and then
waiting for the final ticket from the provider that contains the order
information.

rpc: add automated ticket negotiation for the sidecar provider

In this commit, we add automated ticket negotiation for the sidecar
provider. The provider's state machine is a bit more involved as it
needs to do more in order to finalize the ticket. It starts by making a
new stream, and waiting for the recipient to send over the sidecar
information with their node information. From there it submits the bid,
checkpoints the state, and then adds the bid information before sending
the ticket back to the recipient.
2021-05-09 19:25:06 -07:00
..
batch.go funding: fix error message 2021-03-19 16:50:33 +01:00
log.go funding+rpcserver+log: move funding manager to own package 2020-12-08 11:25:12 +01:00
manager.go rpc: add automated sidecar negotiation for the recipient 2021-05-09 19:25:06 -07:00
manager_test.go sidecar: update ticket w/ new offer field to indicate auto negotiation 2021-05-09 19:24:56 -07:00