github.com/decred/dcrlnd@v0.7.6/lncfg/protocol_legacy_off.go (about)

     1  //go:build !dev
     2  // +build !dev
     3  
     4  package lncfg
     5  
     6  // Legacy is a sub-config that houses all the legacy protocol options.  These
     7  // are mostly used for integration tests as most modern nodes shuld always run
     8  // with them on by default.
     9  type LegacyProtocol struct {
    10  }
    11  
    12  // LegacyOnion returns true if the old legacy onion format should be used when
    13  // we're an intermediate or final hop. This controls if we set the
    14  // TLVOnionPayloadOptional bit or not.
    15  func (l *LegacyProtocol) LegacyOnion() bool {
    16  	return false
    17  }
    18  
    19  // NoStaticRemoteKey returns true if the old commitment format with a tweaked
    20  // remote key should be used for new funded channels.
    21  func (l *LegacyProtocol) NoStaticRemoteKey() bool {
    22  	return false
    23  }