Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
light: fix txpool causes panic on reorgOnNewHead
panic: runtime error: invalid memory address or nil pointer dereference Mar 04 12:22:51 sf-etclabs sh[26575]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0xc5937c] Mar 04 12:22:51 sf-etclabs sh[26575]: goroutine 57 [running]: Mar 04 12:22:51 sf-etclabs sh[26575]: github.com/ethereum/go-ethereum/light.(*TxPool).reorgOnNewHead(0xc00038cc60, 0x11a2960, 0xc0204bd920, 0xc0209ec480, 0xc0204bd920, 0xc02096eb00, 0x8) Mar 04 12:22:51 sf-etclabs sh[26575]: /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:230 +0x23c Mar 04 12:22:51 sf-etclabs sh[26575]: github.com/ethereum/go-ethereum/light.(*TxPool).setNewHead(0xc00038cc60, 0xc0209ec480) Mar 04 12:22:51 sf-etclabs sh[26575]: /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:311 +0x13a Mar 04 12:22:51 sf-etclabs sh[26575]: github.com/ethereum/go-ethereum/light.(*TxPool).eventLoop(0xc00038cc60) Mar 04 12:22:51 sf-etclabs sh[26575]: /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:292 +0x53 Mar 04 12:22:51 sf-etclabs sh[26575]: created by github.com/ethereum/go-ethereum/light.NewTxPool Mar 04 12:22:51 sf-etclabs sh[26575]: /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:109 +0x3eb Signed-off-by: meows <b5c6@protonmail.com>
- Loading branch information