@@ -64,7 +64,7 @@ func errResp(code errCode, format string, v ...interface{}) error {
6464}
6565
6666type ProtocolManager struct {
67- networkId uint64
67+ networkID uint64
6868
6969 fastSync uint32 // Flag whether fast sync is enabled (gets disabled if we already have blocks)
7070 acceptTxs uint32 // Flag whether we're considered synchronised (enables transaction processing)
@@ -98,10 +98,10 @@ type ProtocolManager struct {
9898
9999// NewProtocolManager returns a new Ethereum sub protocol manager. The Ethereum sub protocol manages peers capable
100100// with the Ethereum network.
101- func NewProtocolManager (config * params.ChainConfig , mode downloader.SyncMode , networkId uint64 , mux * event.TypeMux , txpool txPool , engine consensus.Engine , blockchain * core.BlockChain , chaindb ethdb.Database ) (* ProtocolManager , error ) {
101+ func NewProtocolManager (config * params.ChainConfig , mode downloader.SyncMode , networkID uint64 , mux * event.TypeMux , txpool txPool , engine consensus.Engine , blockchain * core.BlockChain , chaindb ethdb.Database ) (* ProtocolManager , error ) {
102102 // Create the protocol manager with the base fields
103103 manager := & ProtocolManager {
104- networkId : networkId ,
104+ networkID : networkID ,
105105 eventMux : mux ,
106106 txpool : txpool ,
107107 blockchain : blockchain ,
@@ -263,7 +263,7 @@ func (pm *ProtocolManager) handle(p *peer) error {
263263 number = head .Number .Uint64 ()
264264 td = pm .blockchain .GetTd (hash , number )
265265 )
266- if err := p .Handshake (pm .networkId , td , hash , genesis .Hash ()); err != nil {
266+ if err := p .Handshake (pm .networkID , td , hash , genesis .Hash ()); err != nil {
267267 p .Log ().Debug ("Ethereum handshake failed" , "err" , err )
268268 return err
269269 }
@@ -779,7 +779,7 @@ type NodeInfo struct {
779779func (pm * ProtocolManager ) NodeInfo () * NodeInfo {
780780 currentBlock := pm .blockchain .CurrentBlock ()
781781 return & NodeInfo {
782- Network : pm .networkId ,
782+ Network : pm .networkID ,
783783 Difficulty : pm .blockchain .GetTd (currentBlock .Hash (), currentBlock .NumberU64 ()),
784784 Genesis : pm .blockchain .Genesis ().Hash (),
785785 Config : pm .blockchain .Config (),
0 commit comments