aboutsummaryrefslogtreecommitdiffstats
path: root/chain/error.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-03 20:50:51 +0800
committerobscuren <geffobscura@gmail.com>2014-12-03 20:50:51 +0800
commit6095edac5843aa18e389ef2deaa49fe05b7fcfb9 (patch)
tree851b5616b2024248b6b9790199ef289e04725cbb /chain/error.go
parent64f35ba8d1f31d6821a0a1bf946c71396a996f30 (diff)
parent3d9a4e7084c33cb28a2265c0dd232a0ea3871c92 (diff)
downloadgo-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.gz
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.bz2
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.lz
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.xz
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.zst
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.zip
merge
Diffstat (limited to 'chain/error.go')
-rw-r--r--chain/error.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/chain/error.go b/chain/error.go
index 7dce2b608..0c4d6e59e 100644
--- a/chain/error.go
+++ b/chain/error.go
@@ -128,12 +128,12 @@ func IsTDError(e error) bool {
}
type KnownBlockError struct {
- number uint64
+ number *big.Int
hash []byte
}
func (self *KnownBlockError) Error() string {
- return fmt.Sprintf("block %d already known (%x)", self.number, self.hash[0:4])
+ return fmt.Sprintf("block %v already known (%x)", self.number, self.hash[0:4])
}
func IsKnownBlockErr(e error) bool {
_, ok := e.(*KnownBlockError)