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.
This commit is contained in:
1 parent
34329c684e
commit
6f49bea52b
7 files changed
+17
-69
No files matched your search
@@ -139,12 +139,6 @@ var (
|
||||
// TODO(roasbeef): add command line param to modify.
|
||||
MaxFundingAmount = funding.MaxBtcFundingAmount
|
||||
|
||||
// AccountabilityExperimentEnd is the time after which nodes should stop
|
||||
// propagating experimental accountable signals.
|
||||
//
|
||||
// Per blip04: January 1, 2026 12:00:00 AM UTC in unix seconds.
|
||||
AccountabilityExperimentEnd = time.Unix(1767225600, 0)
|
||||
|
||||
// ErrGossiperBan is one of the errors that can be returned when we
|
||||
// attempt to finalize a connection to a remote peer.
|
||||
ErrGossiperBan = errors.New("gossiper has banned remote's key")
|
||||
@@ -4444,13 +4438,7 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
|
||||
AuxTrafficShaper: s.implCfg.TrafficShaper,
|
||||
AuxChannelNegotiator: s.implCfg.AuxChannelNegotiator,
|
||||
ShouldFwdExpAccountability: func() bool {
|
||||
if s.cfg.ProtocolOptions.NoExpAccountability() {
|
||||
return false
|
||||
}
|
||||
|
||||
return clock.NewDefaultClock().Now().Before(
|
||||
AccountabilityExperimentEnd,
|
||||
)
|
||||
return !s.cfg.ProtocolOptions.NoExpAccountability()
|
||||
},
|
||||
NoDisconnectOnPongFailure: s.cfg.NoDisconnectOnPongFailure,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user