dominant-strategies / go-quai

Official Go Implementation of the Quai Network
GNU General Public License v3.0
2.36k stars 456 forks source link

Crash during testint with Qi #1900

Open kiltsonfire opened 2 weeks ago

kiltsonfire commented 2 weeks ago

System information

Go-quai version: 16fa08b0f9eae840001091422b8162a532db260d (HEAD, kof/genallocs) qi-transactor: d9155ab853e3c1e4a86363de28cd1fa900e9837f (HEAD, origin/goldenage-drk)

Expected behaviour

Don't crash

Actual behaviour

ERROR [06-19|10:42:46.266] Go-Quai Panicked error="runtime error: invalid memory address or nil pointer dereference" stacktrace="goroutine 1720 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x5e\ngithub.com/dominant-strategies/go-quai/core.(Slice).asyncWorkShareUpdateLoop.func1()\n\tgithub.com/dominant-strategies/go-quai/core/slice.go:1888 +0xec\npanic({0x16eecc0?, 0x2a12f80?})\n\truntime/panic.go:770 +0x132\ngithub.com/dominant-strategies/go-quai/core/types.(Transaction).Type(...)\n\tgithub.com/dominant-strategies/go-quai/core/types/transaction.go:530\ngithub.com/dominant-strategies/go-quai/core/types.(Transaction).encodeTyped(0x0, 0xc2dff49d10)\n\tgithub.com/dominant-strategies/go-quai/core/types/transaction.go:438 +0x1c\ngithub.com/dominant-strategies/go-quai/core/types.Transactions.EncodeIndex(...)\n\tgithub.com/dominant-strategies/go-quai/core/types/transaction.go:798\ngithub.com/dominant-strategies/go-quai/core/types.encodeForDerive({0x1e2c0d0?, 0xc48f54b8c0?}, 0x4141e5?, 0xc2dff49d10)\n\tgithub.com/dominant-strategies/go-quai/core/types/hashing.go:79 +0x45\ngithub.com/dominant-strategies/go-quai/core/types.DeriveSha({0x1e2c0d0, 0xc48f54b8c0}, {0x1e30520, 0xc01cc64c30})\n\tgithub.com/dominant-strategies/go-quai/core/types/hashing.go:99 +0x13c\ngithub.com/dominant-strategies/go-quai/core.(Slice).asyncWorkShareUpdateLoop(0xc047790008)\n\tgithub.com/dominant-strategies/go-quai/core/slice.go:1904 +0x1f0\ncreated by github.com/dominant-strategies/go-quai/core.NewSlice in goroutine 1\n\tgithub.com/dominant-strategies/go-quai/core/slice.go:155 +0x7ea\n"

Steps to reproduce the behaviour

run the above in garden.