lnwallet: rewrite channelState to bool for clarity
Over the last few commits we have systematically eliminated all but two states. This allows us to replace it with a boolean to encode the two remaining states. We would like to be able to eliminate this field entirely, but doing so requires being able to prove that the concurrent request block is necessary. This is more difficult and will be left to future commits.
This commit is contained in:
1 parent
17e67348a8
commit
606f8e79d1
2 files changed
+11
-28
No files matched your search
@@ -2147,8 +2147,8 @@ func TestCooperativeCloseDustAdherence(t *testing.T) {
|
||||
}
|
||||
|
||||
resetChannelState := func() {
|
||||
aliceChannel.status = channelOpen
|
||||
bobChannel.status = channelOpen
|
||||
aliceChannel.isClosed = false
|
||||
bobChannel.isClosed = false
|
||||
}
|
||||
|
||||
setBalances := func(aliceBalance, bobBalance lnwire.MilliSatoshi) {
|
||||
|
||||
Reference in new issue
Block a user