streamingfast / merger

Apache License 2.0
4 stars 5 forks source link

Add guard for lastMergedBlockTime #8

Closed froch closed 2 years ago

froch commented 2 years ago

fixes

Starting dfuse for Ethereum with config file '$HOME/firehose_near.yaml'
Launching applications: firehose,merger,mindreader-node,relayer
--home=$datadir/mindreader/data  run
failed to load bundle  (merger/app.go:88){"file_name": "$datadir/merger/merger.seen.gob"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xffab14]
goroutine 213 [running]:
github.com/streamingfast/merger.(*Merger).launch(0xc0007ca000)
        $HOME/go/pkg/mod/github.com/streamingfast/merger@v0.0.3-0.20211222185803-be94ba68b3dd/merger.go:144 +0x494
github.com/streamingfast/merger.(*Merger).Launch(0xc0007ca000)
        $HOME/go/pkg/mod/github.com/streamingfast/merger@v0.0.3-0.20211222185803-be94ba68b3dd/merger.go:77 +0x12a
created by github.com/streamingfast/merger/app/merger.(*App).Run
        $HOME/go/pkg/mod/github.com/streamingfast/merger@v0.0.3-0.20211222185803-be94ba68b3dd/app/merger/app.go:142