dfuse-eosio
dfuse-eosio copied to clipboard
Search Archive Cannot resolve relative to head start block
Search Archive errors out when, its start block is relative to head (a negative number) and the chain's head is less than said start block value.
i.e. Search Archive start block flag is set to -2000: --search-archive-start-block=-2000
, and chain head is at 100
[2020-06-25 17:29:01.160 UTC] ERROR (launcher/launcher.go:176)
################################################################
Fatal error in app search-archive:
cannot resolve start block num: relative start block -2000 is to large, cannot resolve to a negative start block -1000
################################################################
{
"context": {
"reportLocation": {
"filePath": "/work/go/pkg/mod/github.com/dfuse-io/[email protected]/launcher/launcher.go",
"functionName": "github.com/dfuse-io/dfuse-eosio/launcher.(*Launcher).shutdownDueToApp.func1",
"lineNumber": "176"
}
},
"logger": "common",
"logging.googleapis.com/labels": {},
"serviceContext": {
"service": "common"
}
}
Error: unable to launch: cannot resolve start block num: relative start block -2000 is to large, cannot resolve to a negative start block -1000
[2020-06-25 17:29:01.160 UTC] INFO (cli/start.go:130) Application search-archive shutdown unexpectedly, quitting {"logger":"dfuse","logging.googleapis.com/labels":{},"serviceContext":{"service":"dfuse"}}
[2020-06-25 17:29:01.161 UTC] ERROR ([email protected]/cli.go:25) dfuse {
"context": {
"reportLocation": {
"filePath": "/work/go/pkg/mod/github.com/dfuse-io/[email protected]/cli.go",
"functionName": "github.com/dfuse-io/derr.Check",
"lineNumber": "25"
}
},
"error": "unable to launch: cannot resolve start block num: relative start block -2000 is to large, cannot resolve to a negative start block -1000",
"logger": "common",
"logging.googleapis.com/labels": {},
"serviceContext": {
"service": "common"
}