mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
contractcourt: add CommitBlob to taprootBriefcase
This'll be used to store the extra resolution information for the commitment outputs.
This commit is contained in:
@@ -70,6 +70,10 @@ func TestTaprootBriefcase(t *testing.T) {
|
||||
_, err = rand.Read(anchorTweak[:])
|
||||
require.NoError(t, err)
|
||||
|
||||
var commitBlob [100]byte
|
||||
_, err = rand.Read(commitBlob[:])
|
||||
require.NoError(t, err)
|
||||
|
||||
testCase := &taprootBriefcase{
|
||||
CtrlBlocks: tlv.NewRecordT[tlv.TlvType0](ctrlBlocks{
|
||||
CommitSweepCtrlBlock: sweepCtrlBlock[:],
|
||||
@@ -83,6 +87,12 @@ func TestTaprootBriefcase(t *testing.T) {
|
||||
BreachedHtlcTweaks: randHtlcTweaks(t),
|
||||
BreachedSecondLevelHltcTweaks: randHtlcTweaks(t),
|
||||
}),
|
||||
SettledCommitBlob: tlv.SomeRecordT(
|
||||
tlv.NewPrimitiveRecord[tlv.TlvType2](commitBlob[:]),
|
||||
),
|
||||
BreachedCommitBlob: tlv.SomeRecordT(
|
||||
tlv.NewPrimitiveRecord[tlv.TlvType3](commitBlob[:]),
|
||||
),
|
||||
}
|
||||
|
||||
var b bytes.Buffer
|
||||
|
Reference in New Issue
Block a user