diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-17 06:48:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-17 06:48:18 +0800 |
commit | 8ce6a3647821706cf5e9bb1a9dc13f23c84f6585 (patch) | |
tree | bb96f374054efc6c830e98c11dc4b91b5313056f /core/error.go | |
parent | 94505146a21cc0aee16d79aebc17c8fcb1f91324 (diff) | |
download | dexon-8ce6a3647821706cf5e9bb1a9dc13f23c84f6585.tar.gz dexon-8ce6a3647821706cf5e9bb1a9dc13f23c84f6585.tar.zst dexon-8ce6a3647821706cf5e9bb1a9dc13f23c84f6585.zip |
converted chain manager
Diffstat (limited to 'core/error.go')
-rw-r--r-- | core/error.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/error.go b/core/error.go index 69e320eb0..f6ac26cff 100644 --- a/core/error.go +++ b/core/error.go @@ -4,6 +4,8 @@ import ( "errors" "fmt" "math/big" + + "github.com/ethereum/go-ethereum/common" ) var ( @@ -21,7 +23,7 @@ func (err *ParentErr) Error() string { return err.Message } -func ParentError(hash []byte) error { +func ParentError(hash common.Hash) error { return &ParentErr{Message: fmt.Sprintf("Block's parent unknown %x", hash)} } @@ -136,7 +138,7 @@ func IsTDError(e error) bool { type KnownBlockError struct { number *big.Int - hash []byte + hash common.Hash } func (self *KnownBlockError) Error() string { |