major refactor part 2: remove cold import, full sync, generalize node table

This commit is contained in:
Ian Norden
2020-02-20 16:14:17 -06:00
parent 0f765df12c
commit ca273a026d
171 changed files with 196 additions and 6330 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ package node
import (
"context"
"fmt"
"regexp"
"strconv"
"strings"
@@ -60,7 +61,7 @@ func MakeNode(rpcClient core.RPCClient) core.Node {
id, name := pr.NodeInfo()
return core.Node{
GenesisBlock: pr.GenesisBlock(),
NetworkID: pr.NetworkID(),
NetworkID: fmt.Sprintf("%f", pr.NetworkID()),
ID: id,
ClientName: name,
}
+1 -1
View File
@@ -82,7 +82,7 @@ var _ = Describe("Node Info", func() {
It("returns the network id for any client", func() {
client := fakes.NewMockRPCClient()
n := node.MakeNode(client)
Expect(n.NetworkID).To(Equal(float64(1234)))
Expect(n.NetworkID).To(Equal("1234.000000"))
})
It("returns geth ID and client name for geth node", func() {