File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -278,13 +278,9 @@ func (LedgerChannelProposal) Type() wire.Type {
278278// ProposalID returns the identifier of this channel proposal request.
279279func (p LedgerChannelProposal ) ProposalID () (propID ProposalID ) {
280280 hasher := newHasher ()
281- if err := perunio .Encode (hasher ,
282- p .Base (),
283- p .Participant ,
284- wire .Addresses (p .Peers )); err != nil {
281+ if err := perunio .Encode (hasher , p ); err != nil {
285282 log .Panicf ("proposal ID nonce encoding: %v" , err )
286283 }
287-
288284 copy (propID [:], hasher .Sum (nil ))
289285 return
290286}
@@ -354,12 +350,9 @@ func NewSubChannelProposal(
354350// ProposalID returns the identifier of this channel proposal request.
355351func (p SubChannelProposal ) ProposalID () (propID ProposalID ) {
356352 hasher := newHasher ()
357- if err := perunio .Encode (hasher ,
358- p .Base (),
359- p .Parent ); err != nil {
353+ if err := perunio .Encode (hasher , p ); err != nil {
360354 log .Panicf ("proposal ID nonce encoding: %v" , err )
361355 }
362-
363356 copy (propID [:], hasher .Sum (nil ))
364357 return
365358}
You can’t perform that action at this time.
0 commit comments