"strconv"
"strings"
- "github.com/davecgh/go-xdr/xdr2"
- "go.cypherpunks.ru/nncp/v4"
+ xdr "github.com/davecgh/go-xdr/xdr2"
+ "go.cypherpunks.ru/nncp/v5"
"golang.org/x/crypto/blake2b"
)
nodeIds[*node.Id] = struct{}{}
}
+ ctx.Umask()
+
sds := nncp.SDS{}
if *doTx {
sds["xx"] = string(nncp.TTx)
if err = os.Rename(tmp.Name(), dstPath); err != nil {
log.Fatalln("Error during renaming:", err)
}
+ if err = nncp.DirSync(selfPath); err != nil {
+ log.Fatalln("Error during syncing:", err)
+ }
}
}
ctx.LogI("nncp-bundle", nncp.SdsAdd(sds, nncp.SDS{