mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-06 02:41:29 +01:00
contractcourt/chain_watcher: handleKnownRemoteState
Similar to what we did for the local state handling, we extract handling all known remote states we can act on (breach, current, pending state) into its own method. Since we want to handle the case where we lost state (both in case of local and remote close) last, we don't rely on the remote state number to check which commit we are looking at, but match on TXIDs directly.
This commit is contained in:
@@ -1485,7 +1485,7 @@ func TestBalanceAtHeight(t *testing.T) {
|
||||
targetHeight: unknownHeight,
|
||||
expectedLocalBalance: 0,
|
||||
expectedRemoteBalance: 0,
|
||||
expectedError: errLogEntryNotFound,
|
||||
expectedError: ErrLogEntryNotFound,
|
||||
},
|
||||
{
|
||||
name: "height not reached",
|
||||
|
||||
Reference in New Issue
Block a user