Nogrod icon indicating copy to clipboard operation
Nogrod copied to clipboard

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

Open uohz3 opened this issue 5 years ago • 0 comments

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.

uohz3 avatar Nov 04 '19 10:11 uohz3