diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-02 20:00:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-02 20:00:25 +0800 |
commit | e2d1d832efe0623539c9d37ca8aee17d44e47067 (patch) | |
tree | ae681ba7255a293bf3edc02c30da207bae9ac96a /core/types | |
parent | d336e24dcec2bb2cb89fff76302882aa82124dc8 (diff) | |
download | go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.gz go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.bz2 go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.lz go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.xz go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.tar.zst go-tangerine-e2d1d832efe0623539c9d37ca8aee17d44e47067.zip |
added nil check
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/block_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/core/types/block_test.go b/core/types/block_test.go index c85708975..ab1254f4c 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -1,23 +1 @@ package types - -import ( - "bytes" - "testing" - - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethutil" - "github.com/ethereum/go-ethereum/rlp" -) - -func init() { - ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "") - ethutil.Config.Db, _ = ethdb.NewMemDatabase() -} - -func TestNewBlock(t *testing.T) { - block := GenesisBlock() - data := ethutil.Encode(block) - - var genesis Block - err := rlp.Decode(bytes.NewReader(data), &genesis) -} |