claim: fix hardfork logics and param
This commit is contained in:
parent
f927d6743a
commit
2bf2c86c88
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ func (c *Claim) setValue(val []byte) *Claim { c.Value = val; return c }
|
||||||
func (c *Claim) String() string { return claimToString(c) }
|
func (c *Claim) String() string { return claimToString(c) }
|
||||||
|
|
||||||
func (c *Claim) expireAt() Height {
|
func (c *Claim) expireAt() Height {
|
||||||
if c.Accepted >= paramExtendedClaimExpirationForkHeight {
|
if c.Accepted+paramOriginalClaimExpirationTime > paramExtendedClaimExpirationForkHeight {
|
||||||
return c.Accepted + paramExtendedClaimExpirationTime
|
return c.Accepted + paramExtendedClaimExpirationTime
|
||||||
}
|
}
|
||||||
return c.Accepted + paramOriginalClaimExpirationTime
|
return c.Accepted + paramOriginalClaimExpirationTime
|
||||||
|
|
|
@ -20,7 +20,7 @@ const (
|
||||||
const (
|
const (
|
||||||
DefaultOriginalClaimExpirationTime Height = 262974
|
DefaultOriginalClaimExpirationTime Height = 262974
|
||||||
DefaultExtendedClaimExpirationTime Height = 2102400
|
DefaultExtendedClaimExpirationTime Height = 2102400
|
||||||
DefaultExtendedClaimExpirationForkHeight Height = 278160
|
DefaultExtendedClaimExpirationForkHeight Height = 400155
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in a new issue