8000 pkg/modelx/modelx.go line 475: currentBlock.Height-uint64(Cfg.NAVG) error · Issue #53 · PoC-Consortium/Nogrod · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pkg/modelx/modelx.go line 475: currentBlock.Height-uint64(Cfg.NAVG) error #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
uohz3 opened this issue Nov 4, 2019 · 0 comments
Open

Comments

@uohz3
Copy link
uohz3 commented Nov 4, 2019

in file: pkg/modelx/modelx.go

if currentBlock.Height != uint64(0) && height < currentBlock.Height-uint64(Cfg.NAVG) { return errors.New("bock too old") }

when uint64(Cfg.NAVG) is bigger than currentBlock.Height, the result of subtraction will be a very large uint64 number. cause this function always return error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0