diff options
author | Felix Lange <fjl@twurst.com> | 2016-11-09 08:20:49 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-11-09 09:19:07 +0800 |
commit | be3865211c2d8f71e0733b17c469881502e89371 (patch) | |
tree | 1b92be622d4d54d7f7d2ecfb9652c9a071172cd6 /light/lightchain_test.go | |
parent | 0f19cbc6e5b842fb271eedeed47f433d0c63ff2e (diff) | |
download | go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.tar go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.tar.gz go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.tar.bz2 go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.tar.lz go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.tar.xz go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.tar.zst go-tangerine-be3865211c2d8f71e0733b17c469881502e89371.zip |
core/types: remove header accessors
These accessors were introduced by light client changes, but
the only method that is actually used is GetNumberU64. This
commit replaces all uses of .GetNumberU64 with .Number.Uint64.
Diffstat (limited to 'light/lightchain_test.go')
-rw-r--r-- | light/lightchain_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/light/lightchain_test.go b/light/lightchain_test.go index b7668a3b5..60b909e97 100644 --- a/light/lightchain_test.go +++ b/light/lightchain_test.go @@ -134,7 +134,7 @@ func testFork(t *testing.T, LightChain *LightChain, i, n int, comparator func(td } func printChain(bc *LightChain) { - for i := bc.CurrentHeader().GetNumberU64(); i > 0; i-- { + for i := bc.CurrentHeader().Number.Uint64(); i > 0; i-- { b := bc.GetHeaderByNumber(uint64(i)) fmt.Printf("\t%x %v\n", b.Hash(), b.Difficulty) } |