[client.keyset] removed 'max' that is now in 'ctx'
This commit is contained in:
parent
69bcb46641
commit
9a787951b1
|
@ -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()
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue