[wip] Implement flow control for the funding and payments.