diff --git a/src/git.xdrm.io/schastsp/client/keyset/keyset.go b/src/git.xdrm.io/schastsp/client/keyset/keyset.go index 6740e53..913d94c 100644 --- a/src/git.xdrm.io/schastsp/client/keyset/keyset.go +++ b/src/git.xdrm.io/schastsp/client/keyset/keyset.go @@ -16,7 +16,6 @@ const SecretSize = scha.HSIZE * 4; type T struct { ctx *context.T // current context depth uint16 // cur depth - max uint16 // max depth sec []byte // secret consumed bool // if secret is consumed @@ -125,7 +124,7 @@ func (s *T) Decrement() uint16 { s.consumed = s.depth <= s.ctx.MinDepth()+s.ctx.DepthThreshold() /* (3) Return remaining attempts */ - return s.depth - s.max + return s.depth - s.ctx.MaxDepth() }