lnwallet: track their current commitment sig in channel state
This commit is contained in:
1 parent
06bad8ba42
commit
d7d569b267
2 files changed
+6
-6
No files matched your search
+5
-4
@@ -43,20 +43,21 @@ type OpenChannelState struct {
|
|||||||
ourBalance btcutil.Amount
|
ourBalance btcutil.Amount
|
||||||
theirBalance btcutil.Amount
|
theirBalance btcutil.Amount
|
||||||
|
|
||||||
theirCommitTx *wire.MsgTx
|
theirCommitTx *wire.MsgTx
|
||||||
ourCommitTx *wire.MsgTx
|
ourCommitTx *wire.MsgTx
|
||||||
|
theirCommitSig []byte
|
||||||
|
|
||||||
fundingTx *wire.MsgTx
|
fundingTx *wire.MsgTx
|
||||||
|
|
||||||
multiSigKey *btcec.PrivateKey
|
multiSigKey *btcec.PrivateKey
|
||||||
fundingRedeemScript []byte
|
fundingRedeemScript []byte
|
||||||
|
|
||||||
ourShaChain *revocation.HyperShaChain
|
|
||||||
theirShaChain *revocation.HyperShaChain
|
|
||||||
// Current revocation for their commitment transaction. However, since
|
// Current revocation for their commitment transaction. However, since
|
||||||
// this is the hash, and not the pre-image, we can't yet verify that
|
// this is the hash, and not the pre-image, we can't yet verify that
|
||||||
// it's actually in the chain.
|
// it's actually in the chain.
|
||||||
theirCurrentRevocation [wire.HashSize]byte
|
theirCurrentRevocation [wire.HashSize]byte
|
||||||
|
theirShaChain *revocation.HyperShaChain
|
||||||
|
ourShaChain *revocation.HyperShaChain
|
||||||
|
|
||||||
// Final delivery address
|
// Final delivery address
|
||||||
ourDeliveryAddress btcutil.Address
|
ourDeliveryAddress btcutil.Address
|
||||||
|
|||||||
@@ -34,8 +34,7 @@ type ChannelReservation struct {
|
|||||||
ourFundingSigs [][]byte
|
ourFundingSigs [][]byte
|
||||||
theirFundingSigs [][]byte
|
theirFundingSigs [][]byte
|
||||||
|
|
||||||
ourCommitmentSig []byte
|
ourCommitmentSig []byte
|
||||||
theirCommitmentSig []byte
|
|
||||||
|
|
||||||
partialState *OpenChannelState
|
partialState *OpenChannelState
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user