mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
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. |
||
|---|---|---|
| .. | ||
| batch.go | ||
| log.go | ||
| manager.go | ||
| manager_test.go | ||