Remove unintentinally commited code

pull/476/head
Rongjian Lan 6 years ago
parent 51c4b1e91b
commit 8267607b16
  1. 6
      node/node.go

@ -4,7 +4,6 @@ import (
"bytes" "bytes"
"crypto/ecdsa" "crypto/ecdsa"
"encoding/binary" "encoding/binary"
"encoding/hex"
"fmt" "fmt"
"math/big" "math/big"
"os" "os"
@ -282,11 +281,6 @@ func New(host p2p.Host, consensus *bft.Consensus, db ethdb.Database) *Node {
node.BlockChannel = make(chan *types.Block) node.BlockChannel = make(chan *types.Block)
node.ConfirmedBlockChannel = make(chan *types.Block) node.ConfirmedBlockChannel = make(chan *types.Block)
bytes, _ := rlp.EncodeToBytes(chain.GetBlockByNumber(0))
fmt.Println("TestTest")
fmt.Println(hex.EncodeToString(bytes))
hash := chain.GetBlockByNumber(0).Hash()
fmt.Println(hex.EncodeToString(hash[:]))
node.TxPool = core.NewTxPool(core.DefaultTxPoolConfig, params.TestChainConfig, chain) node.TxPool = core.NewTxPool(core.DefaultTxPoolConfig, params.TestChainConfig, chain)
node.Worker = worker.New(params.TestChainConfig, chain, node.Consensus, pki.GetAddressFromPublicKey(node.SelfPeer.PubKey), node.Consensus.ShardID) node.Worker = worker.New(params.TestChainConfig, chain, node.Consensus, pki.GetAddressFromPublicKey(node.SelfPeer.PubKey), node.Consensus.ShardID)
if node.Role == BeaconLeader || node.Role == BeaconValidator { if node.Role == BeaconLeader || node.Role == BeaconValidator {

Loading…
Cancel
Save