Skip to content

Commit 2aeea30

Browse files
authored
🔀 Merge pull request #43 from perun-network/29-document-ledgerchannelproposal
📝 [client] Document parameters of NewLedgerChannelProposal
2 parents 0fe85e7 + e6eafd4 commit 2aeea30

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/proposalmsgs.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ func (LedgerChannelProposal) Matches(acc ChannelProposalAccept) bool {
260260
}
261261

262262
// NewLedgerChannelProposal creates a ledger channel proposal and applies the
263-
// supplied options. For more information, see ProposalOpts.
263+
// supplied options.
264+
// challengeDuration is the on-chain challenge duration in seconds.
265+
// participant is our wallet address.
266+
// initBals are the initial balances.
267+
// peers are the wire addresses of the channel participants.
268+
// For more information, see ProposalOpts.
264269
func NewLedgerChannelProposal(
265270
challengeDuration uint64,
266271
participant wallet.Address,

0 commit comments

Comments
 (0)