adder icon indicating copy to clipboard operation
adder copied to clipboard

Panic in input/chainsync.NewBlockEvent when processing Byron EBB (gouroboros IssuerVkey result)

Open BurgessTG opened this issue 8 months ago • 0 comments

When using the adder pipeline with the input/chainsync module to sync Cardano mainnet from genesis , a panic occurs.

The panic message is: panic: runtime error: cannot convert slice with length 0 to array or pointer to array with length 32

goroutine 86 [running]: github.com/blinklabs-io/gouroboros/ledger/byron.(*ByronEpochBoundaryBlockHeader).IssuerVkey(...) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/ledger/byron/byron.go:585 github.com/blinklabs-io/gouroboros/ledger/byron.(*ByronEpochBoundaryBlock).IssuerVkey(0xc000049488?) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/ledger/byron/byron.go:708 +0x25 github.com/blinklabs-io/adder/input/chainsync.NewBlockEvent({0xeda0f0, 0xc000130190}, 0x1) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/input/chainsync/block.go:61 +0x162 github.com/blinklabs-io/adder/input/chainsync.(*ChainSync).handleRollForward(0xc00018a140, {{{0xed20d0, 0xc00069e060}, {0xed20d0, 0xc00069e080}}, 0xc00001e510, 0x0}, 0x0?, {0xc6ebc0, 0xc000130190}, ...) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/input/chainsync/chainsync.go:328 +0x186 github.com/blinklabs-io/gouroboros/protocol/chainsync.(*Client).handleRollForward(0xc00001e510, {0xed34a0, 0xc00069a200}) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/protocol/chainsync/client.go:713 +0x8d3 github.com/blinklabs-io/gouroboros/protocol/chainsync.(*Client).messageHandler(0xc00001e510, {0xed34a0, 0xc00069a200}) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/protocol/chainsync/client.go:566 +0x4a github.com/blinklabs-io/gouroboros/protocol.(*Protocol).handleMessage(0xc000022200, {0xed34a0, 0xc00069a200}) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/protocol/protocol.go:588 +0x15a github.com/blinklabs-io/gouroboros/protocol.(*Protocol).recvLoop(0xc000022200) /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/protocol/protocol.go:440 +0x167 created by github.com/blinklabs-io/gouroboros/protocol.(*Protocol).Start.func1 in goroutine 1 /root/go/pkg/mod/github.com/blinklabs-io/[email protected]/protocol/protocol.go:164 +0x2eb

BurgessTG avatar May 05 '25 20:05 BurgessTG