]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/node.go
exec notification, freq.maxsize, paxed directories
[nncp.git] / src / node.go
index 165cd86999fde4cf31d4f7ec47548357acff6377..65f5e9cde30cc7e8c4931f9c54384c89b9c8e9b2 100644 (file)
@@ -45,6 +45,7 @@ type Node struct {
        FreqPath       *string
        FreqChunked    int64
        FreqMinSize    int64
+       FreqMaxSize    int64
        Via            []*NodeId
        Addrs          map[string]string
        RxRate         int
@@ -100,10 +101,12 @@ func NewNodeGenerate() (*NodeOur, error) {
 
 func (nodeOur *NodeOur) Their() *Node {
        return &Node{
-               Name:    "self",
-               Id:      nodeOur.Id,
-               ExchPub: nodeOur.ExchPub,
-               SignPub: nodeOur.SignPub,
+               Name:        "self",
+               Id:          nodeOur.Id,
+               ExchPub:     nodeOur.ExchPub,
+               SignPub:     nodeOur.SignPub,
+               FreqChunked: MaxFileSize,
+               FreqMaxSize: MaxFileSize,
        }
 }