Replies: 1 comment 1 reply
-
CreateVirtualPaymentChannelTowards // replace this
CreateVirtualPaymentChannel(Intermediaries []types.Address, CounterParty types.Address, ChallengeDuration uint32, Outcome outcome.Exit) virtualfund.ObjectiveResponse
// with this
CreateVirtualPaymentChannel(CounterParty types.Address, ChallengeDuration uint32, Outcome outcome.Exit) virtualfund.ObjectiveResponse Current usage of the API is limited to tests which specifically orchestrate the shape of the network from an all-knowing perspective. A real-world usage of the current API would require the consuming applications to coordinate on determining a working ledger path, but this 'pathfinding' operation is part of nitro's domain and should be encapsulated as much as possible. Obstacles to this changeA nice thing about the existing method is that it contains all of the information required to compute the
A |
Beta Was this translation helpful? Give feedback.
-
Work towards #904 has brought about changes to go-nitro's public API, ie, the API of
client.Client
.Currently, the API is:
Some goals for the API:
Beta Was this translation helpful? Give feedback.
All reactions