cnct: make original htlc amt available for contract resolvers

Previously, contract resolvers that needed to publish a second level tx,
did not have access to the original htlc amount.

This commit reconstructs this amount from data that is already persisted
in arbitrator log.

Co-authored-by: Joost Jager <joost.jager@gmail.com>
This commit is contained in:
Wilmer PaulinoandJoost Jager committed 2019-01-22 20:47:17 -08:00
1 parent 93754f8d37
commit 974e0f2df5
3 files changed
+109 -1

No files matched your search

+4
View File
@@ -40,6 +40,10 @@ type htlcTimeoutResolver struct {
// additional commitment state machine.
htlcIndex uint64
// htlcAmt is the original amount of the htlc, not taking into
// account any fees that may have to be paid if it goes on chain.
htlcAmt lnwire.MilliSatoshi
ResolverKit
}