chain_manager_test.go 323 B

12345678910111213141516171819
  1. package core
  2. import (
  3. "fmt"
  4. "path"
  5. "testing"
  6. "github.com/ethereum/go-ethereum/ethutil"
  7. )
  8. func TestChainInsertions(t *testing.T) {
  9. c1, err := ethutil.ReadAllFile(path.Join("..", "_data", "chain1"))
  10. if err != nil {
  11. fmt.Println(err)
  12. t.FailNow()
  13. }
  14. data1, _ := ethutil.Decode([]byte(c1), 0)
  15. fmt.Println(data1)
  16. }