]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/check.go
Simplify Base32-related code
[nncp.git] / src / check.go
index ae5b80f0c4a0bd7d24d89feb2c044ab01a938fe7..9bdc2864051ccd88537c622bba0520265000f13e 100644 (file)
@@ -44,7 +44,7 @@ func (ctx *Ctx) checkXxIsBad(nodeId *NodeId, xx TRxTx) bool {
                sds := SDS{
                        "xx":       string(xx),
                        "node":     nodeId,
-                       "pkt":      ToBase32(job.HshValue[:]),
+                       "pkt":      Base32Codec.EncodeToString(job.HshValue[:]),
                        "fullsize": job.Size,
                }
                gut, err := Check(job.Fd, job.HshValue[:], sds, ctx.ShowPrgrs)