Skip to content

Commit 19f31ec

Browse files
committed
server: remove accountability signal experiment period
In the previous iteration with endorsement signaling, the recommendation was for the sender to set it to 1 and that could have had privacy concerns when first deploying given that the default was to downgrade the signal to 0. In the latest proposal the recommended default for both sending and forwarding nodes is to set `accountable` to 0. As a result, the dates have been removed given that there are no privacy risks associated with relaying the signal with zero values.
1 parent 49876c1 commit 19f31ec

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

docs/release-notes/release-notes-0.21.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
This applies to both funders and fundees, with the ability to override the
4949
value during channel opening or acceptance.
5050

51+
* Rename [experimental endorsement signal](https://github.com/lightning/blips/blob/a833e7b49f224e1240b5d669e78fa950160f5a06/blip-0004.md)
52+
to [accountable](https://github.com/lightningnetwork/lnd/pull/10367) to match
53+
the latest [proposal](https://github.com/lightning/blips/pull/67).
54+
5155
## RPC Updates
5256

5357
## lncli Updates

htlcswitch/link.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,8 +3346,6 @@ func (l *channelLink) processRemoteAdds(fwdPkg *channeldb.FwdPkg) {
33463346
func (l *channelLink) experimentalAccountability(
33473347
customUpdateAdd record.CustomSet) fn.Option[byte] {
33483348

3349-
// Only relay experimental signal if we are within the experiment
3350-
// period.
33513349
if !l.cfg.ShouldFwdExpAccountability() {
33523350
return fn.None[byte]()
33533351
}

rpcserver.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -775,13 +775,7 @@ func (r *rpcServer) addDeps(ctx context.Context, s *server,
775775
return nil
776776
},
777777
ShouldSetExpAccountability: func() bool {
778-
if s.cfg.ProtocolOptions.NoExpAccountability() {
779-
return false
780-
}
781-
782-
return clock.NewDefaultClock().Now().Before(
783-
AccountabilityExperimentEnd,
784-
)
778+
return !s.cfg.ProtocolOptions.NoExpAccountability()
785779
},
786780
}
787781

server.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ var (
139139
// TODO(roasbeef): add command line param to modify.
140140
MaxFundingAmount = funding.MaxBtcFundingAmount
141141

142-
// AccountabilityExperimentEnd is the time after which nodes should stop
143-
// propagating experimental accountable signals.
144-
//
145-
// Per blip04: January 1, 2026 12:00:00 AM UTC in unix seconds.
146-
AccountabilityExperimentEnd = time.Unix(1767225600, 0)
147-
148142
// ErrGossiperBan is one of the errors that can be returned when we
149143
// attempt to finalize a connection to a remote peer.
150144
ErrGossiperBan = errors.New("gossiper has banned remote's key")
@@ -4432,13 +4426,7 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
44324426
AuxTrafficShaper: s.implCfg.TrafficShaper,
44334427
AuxChannelNegotiator: s.implCfg.AuxChannelNegotiator,
44344428
ShouldFwdExpAccountability: func() bool {
4435-
if s.cfg.ProtocolOptions.NoExpAccountability() {
4436-
return false
4437-
}
4438-
4439-
return clock.NewDefaultClock().Now().Before(
4440-
AccountabilityExperimentEnd,
4441-
)
4429+
return !s.cfg.ProtocolOptions.NoExpAccountability()
44424430
},
44434431
NoDisconnectOnPongFailure: s.cfg.NoDisconnectOnPongFailure,
44444432
}

0 commit comments

Comments
 (0)