]> Cypherpunks repositories - nncp.git/commitdiff
Sending to area does not require private key existence
authorSergey Matveev <stargrave@stargrave.org>
Thu, 25 Sep 2025 15:13:50 +0000 (18:13 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 28 Sep 2025 09:00:50 +0000 (12:00 +0300)
src/tx.go

index e0f4f0896daea03f421dfa1087110e6f5b09ef4b..2504135a5883cb57bb724e172d45a2a91210b6a5 100644 (file)
--- a/src/tx.go
+++ b/src/tx.go
@@ -59,9 +59,6 @@ func (ctx *Ctx) Tx(
        var area *Area
        if areaId != nil {
                area = ctx.AreaId2Area[*areaId]
-               if area.Prv == nil {
-                       return nil, 0, "", errors.New("area has no encryption keys")
-               }
        }
        hops := make([]*Node, 0, 1+len(node.Via))
        hops = append(hops, node)