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:
elnosh committed 2026-01-06 09:12:34 -05:00
1 parent 34329c684e
commit 6f49bea52b
7 files changed
+17 -69

No files matched your search

-18
View File
@@ -7,11 +7,9 @@ import (
"os"
"strconv"
"strings"
"time"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/wire"
"github.com/lightningnetwork/lnd"
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/lntest/wait"
@@ -290,16 +288,6 @@ func CalcStaticFeeBuffer(c lnrpc.CommitmentType, numHTLCs int) btcutil.Amount {
// tests.
func CustomRecordsWithUnaccountable(
originalRecords lnwire.CustomRecords) map[uint64][]byte {
if !ExperimentalAccountabilityActive() {
// Return nil if there are no records, to match wire encoding.
if len(originalRecords) == 0 {
return nil
}
return originalRecords.Copy()
}
return originalRecords.MergedCopy(map[uint64][]byte{
uint64(lnwire.ExperimentalAccountableType): {
lnwire.ExperimentalUnaccountable,
@@ -307,12 +295,6 @@ func CustomRecordsWithUnaccountable(
)
}
// ExperimentalAccountabilityActive returns true if the experimental accountability
// window is still open.
func ExperimentalAccountabilityActive() bool {
return time.Now().Before(lnd.AccountabilityExperimentEnd)
}
// LnrpcOutpointToStr returns a string representation of an lnrpc.OutPoint.
func LnrpcOutpointToStr(outpoint *lnrpc.OutPoint) string {
return fmt.Sprintf("%s:%d", outpoint.TxidStr, outpoint.OutputIndex)