Update chain/actors/actor_paych.go

This commit is contained in:
Whyrusleeping 2019-07-25 12:17:15 -07:00 committed by GitHub
parent 89bf320134
commit bcdb3ed90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ func (pca PaymentChannelActor) UpdateChannelState(act *types.Actor, vmctx types.
self.ToSend = newSendBalance self.ToSend = newSendBalance
if sv.MinCloseHeight != 0 { if sv.MinCloseHeight != 0 {
if self.ClosingAt < sv.MinCloseHeight { if self.ClosingAt != 0 && self.ClosingAt < sv.MinCloseHeight {
self.ClosingAt = sv.MinCloseHeight self.ClosingAt = sv.MinCloseHeight
} }
if self.MinCloseHeight < sv.MinCloseHeight { if self.MinCloseHeight < sv.MinCloseHeight {