@@ -173,15 +173,15 @@ func (self *ethProtocolTester) handshake(t *testing.T, mock bool) {
173173 err := p2p .ExpectMsg (self , StatusMsg , & statusMsgData {
174174 ProtocolVersion : ProtocolVersion ,
175175 NetworkId : NetworkId ,
176- TD : * td ,
176+ TD : td ,
177177 CurrentBlock : currentBlock ,
178178 GenesisBlock : genesis ,
179179 })
180180 if err != nil {
181181 t .Fatalf ("incorrect outgoing status: %v" , err )
182182 }
183183 if mock {
184- go p2p .Send (self , StatusMsg , & statusMsgData {ProtocolVersion , NetworkId , * td , currentBlock , genesis })
184+ go p2p .Send (self , StatusMsg , & statusMsgData {ProtocolVersion , NetworkId , td , currentBlock , genesis })
185185 }
186186}
187187
@@ -201,15 +201,15 @@ func TestStatusMsgErrors(t *testing.T) {
201201 wantErrorCode : ErrNoStatusMsg ,
202202 },
203203 {
204- code : StatusMsg , data : statusMsgData {10 , NetworkId , * td , currentBlock , genesis },
204+ code : StatusMsg , data : statusMsgData {10 , NetworkId , td , currentBlock , genesis },
205205 wantErrorCode : ErrProtocolVersionMismatch ,
206206 },
207207 {
208- code : StatusMsg , data : statusMsgData {ProtocolVersion , 999 , * td , currentBlock , genesis },
208+ code : StatusMsg , data : statusMsgData {ProtocolVersion , 999 , td , currentBlock , genesis },
209209 wantErrorCode : ErrNetworkIdMismatch ,
210210 },
211211 {
212- code : StatusMsg , data : statusMsgData {ProtocolVersion , NetworkId , * td , currentBlock , common.Hash {3 }},
212+ code : StatusMsg , data : statusMsgData {ProtocolVersion , NetworkId , td , currentBlock , common.Hash {3 }},
213213 wantErrorCode : ErrGenesisBlockMismatch ,
214214 },
215215 }
0 commit comments