]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/tx_test.go
MTH
[nncp.git] / src / tx_test.go
index 7e07a0524a1d0a5837e7ce9033c2ea229d18e4e4..72c6f614e60405311cb1e37805f5e5050d4e04fe 100644 (file)
@@ -28,7 +28,6 @@ import (
        "testing/quick"
 
        xdr "github.com/davecgh/go-xdr/xdr2"
-       "golang.org/x/crypto/blake2b"
 )
 
 func TestTx(t *testing.T) {
@@ -141,7 +140,7 @@ func TestTx(t *testing.T) {
                                if pkt.Type != PktTypeTrns {
                                        return false
                                }
-                               if bytes.Compare(pkt.Path[:blake2b.Size256], vias[i+1][:]) != 0 {
+                               if bytes.Compare(pkt.Path[:MTHSize], vias[i+1][:]) != 0 {
                                        return false
                                }
                        }