channeldb+lnwallet: save initial balances during channel opening

This commit is contained in:
yyforyongyu committed 2022-04-20 01:18:12 +08:00
1 parent 291a8e4eff
commit 22f8f6ed4a
3 files changed
+22 -7

No files matched your search

+2
View File
@@ -352,6 +352,8 @@ func createTestChannelState(t *testing.T, cdb *ChannelStateDB) *OpenChannel {
Packager: NewChannelPackager(chanID),
FundingTxn: channels.TestFundingTx,
ThawHeight: uint32(defaultPendingHeight),
InitialLocalBalance: lnwire.MilliSatoshi(9000),
InitialRemoteBalance: lnwire.MilliSatoshi(3000),
}
}