Skip to content

Commit

Permalink
chain: reproduce panic
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Dec 10, 2024
1 parent a28e868 commit 8e6ee2f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions chain/db_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package chain_test

import (
"testing"

"go.sia.tech/core/types"
"go.sia.tech/coreutils/chain"
"go.sia.tech/coreutils/testutil"
)

func TestGetEmptyBlockID(t *testing.T) {
n, genesisBlock := testutil.V2Network()
store, tipState, err := chain.NewDBStore(chain.NewMemDB(), n, genesisBlock)
if err != nil {
t.Fatal(err)
}
cm := chain.NewManager(store, tipState)
_, _ = cm.Block(types.BlockID{})
}

0 comments on commit 8e6ee2f

Please sign in to comment.