X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fnode.go;h=0587fbc2b90c2234d2911c80e2adc8ebab9e2e3c;hb=2e22bda93fdf8f2f84e4d19b3f1d46318b497139;hp=b2a598546d54b72e41c1fbc05f601a227b6c964c;hpb=1b001e3dc76b6950f6170a1b2f01bf9c50d230ef;p=nncp.git diff --git a/src/node.go b/src/node.go index b2a5985..0587fbc 100644 --- a/src/node.go +++ b/src/node.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2021 Sergey Matveev +Copyright (C) 2016-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,8 @@ import ( "golang.org/x/crypto/nacl/box" ) +const DummyB32Id = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + type NodeId [blake2b.Size256]byte func (id NodeId) String() string { @@ -48,6 +50,8 @@ type Node struct { FreqChunked int64 FreqMinSize int64 FreqMaxSize int64 + ACKNice uint8 + ACKMinSize int64 Via []*NodeId Addrs map[string]string RxRate int