diff --git a/blockchain/blockchain.go b/blockchain/blockchain.go index 5c88fd5be5..551b9e7f35 100644 --- a/blockchain/blockchain.go +++ b/blockchain/blockchain.go @@ -179,7 +179,7 @@ func headsHeader(txn db.Transaction) (*core.Header, error) { } func (b *Blockchain) BlockByNumber(number uint64) (*core.Block, error) { - b.listener.OnRead("blockByNumber") + b.listener.OnRead("BlockByNumber") var block *core.Block return block, b.database.View(func(txn db.Transaction) error { var err error diff --git a/blockchain/blockchain_test.go b/blockchain/blockchain_test.go index 4a95635281..4c217c3ba1 100644 --- a/blockchain/blockchain_test.go +++ b/blockchain/blockchain_test.go @@ -633,7 +633,7 @@ func TestRevert(t *testing.T) { }) revertedHeight := uint64(2) - t.Run("blockByNumber should fail with reverted height", func(t *testing.T) { + t.Run("BlockByNumber should fail with reverted height", func(t *testing.T) { _, err := chain.BlockByNumber(revertedHeight) require.Error(t, err) })