mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
wathtower/blob+wtserver: support anchor sessions
This commit is contained in:
@@ -138,8 +138,9 @@ func (t Type) String() string {
|
||||
// supportedTypes is the set of all configurations known to be supported by the
|
||||
// package.
|
||||
var supportedTypes = map[Type]struct{}{
|
||||
TypeAltruistCommit: {},
|
||||
TypeRewardCommit: {},
|
||||
TypeAltruistCommit: {},
|
||||
TypeRewardCommit: {},
|
||||
TypeAltruistAnchorCommit: {},
|
||||
}
|
||||
|
||||
// IsSupportedType returns true if the given type is supported by the package.
|
||||
|
@@ -123,6 +123,12 @@ func TestSupportedTypes(t *testing.T) {
|
||||
t.Fatalf("default type %s is not supported", blob.TypeAltruistCommit)
|
||||
}
|
||||
|
||||
// Assert that the altruist anchor commit types are supported.
|
||||
if !blob.IsSupportedType(blob.TypeAltruistAnchorCommit) {
|
||||
t.Fatalf("default type %s is not supported",
|
||||
blob.TypeAltruistAnchorCommit)
|
||||
}
|
||||
|
||||
// Assert that all claimed supported types are actually supported.
|
||||
for _, supType := range blob.SupportedTypes() {
|
||||
if blob.IsSupportedType(supType) {
|
||||
|
Reference in New Issue
Block a user