Refactor block conversion (#38)

Move more of block conversion out of observer
This commit is contained in:
Matt K
2017-10-31 12:51:05 -05:00
committed by ericmeyer
parent 963cc83299
commit c961e85099
7 changed files with 35 additions and 49 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package integration_test
import (
"fmt"
"math/big"
"path"
"path/filepath"
"runtime"
@@ -44,7 +43,7 @@ var _ = Describe("Reading from the Geth blockchain", func() {
firstBlock := <-addedBlock
Expect(firstBlock).ShouldNot(BeNil())
secondBlock := <-addedBlock
Expect(firstBlock.Number.Add(firstBlock.Number, big.NewInt(1))).Should(Equal(secondBlock.Number))
Expect(firstBlock.Number + 1).Should(Equal(secondBlock.Number))
close(done)
}, 10)