github.com/klaytn/klaytn@v1.12.1/node/cn/peer_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/node/cn (interfaces: Peer) 3 4 // Package cn is a generated GoMock package. 5 package cn 6 7 import ( 8 big "math/big" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 types "github.com/klaytn/klaytn/blockchain/types" 13 common "github.com/klaytn/klaytn/common" 14 p2p "github.com/klaytn/klaytn/networks/p2p" 15 discover "github.com/klaytn/klaytn/networks/p2p/discover" 16 snap "github.com/klaytn/klaytn/node/cn/snap" 17 rlp "github.com/klaytn/klaytn/rlp" 18 ) 19 20 // MockPeer is a mock of Peer interface 21 type MockPeer struct { 22 ctrl *gomock.Controller 23 recorder *MockPeerMockRecorder 24 } 25 26 // MockPeerMockRecorder is the mock recorder for MockPeer 27 type MockPeerMockRecorder struct { 28 mock *MockPeer 29 } 30 31 // NewMockPeer creates a new mock instance 32 func NewMockPeer(ctrl *gomock.Controller) *MockPeer { 33 mock := &MockPeer{ctrl: ctrl} 34 mock.recorder = &MockPeerMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use 39 func (m *MockPeer) EXPECT() *MockPeerMockRecorder { 40 return m.recorder 41 } 42 43 // AddSnapExtension mocks base method 44 func (m *MockPeer) AddSnapExtension(arg0 *snap.Peer) { 45 m.ctrl.T.Helper() 46 m.ctrl.Call(m, "AddSnapExtension", arg0) 47 } 48 49 // AddSnapExtension indicates an expected call of AddSnapExtension 50 func (mr *MockPeerMockRecorder) AddSnapExtension(arg0 interface{}) *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSnapExtension", reflect.TypeOf((*MockPeer)(nil).AddSnapExtension), arg0) 53 } 54 55 // AddToKnownBlocks mocks base method 56 func (m *MockPeer) AddToKnownBlocks(arg0 common.Hash) { 57 m.ctrl.T.Helper() 58 m.ctrl.Call(m, "AddToKnownBlocks", arg0) 59 } 60 61 // AddToKnownBlocks indicates an expected call of AddToKnownBlocks 62 func (mr *MockPeerMockRecorder) AddToKnownBlocks(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddToKnownBlocks", reflect.TypeOf((*MockPeer)(nil).AddToKnownBlocks), arg0) 65 } 66 67 // AddToKnownTxs mocks base method 68 func (m *MockPeer) AddToKnownTxs(arg0 common.Hash) { 69 m.ctrl.T.Helper() 70 m.ctrl.Call(m, "AddToKnownTxs", arg0) 71 } 72 73 // AddToKnownTxs indicates an expected call of AddToKnownTxs 74 func (mr *MockPeerMockRecorder) AddToKnownTxs(arg0 interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddToKnownTxs", reflect.TypeOf((*MockPeer)(nil).AddToKnownTxs), arg0) 77 } 78 79 // AsyncSendNewBlock mocks base method 80 func (m *MockPeer) AsyncSendNewBlock(arg0 *types.Block, arg1 *big.Int) { 81 m.ctrl.T.Helper() 82 m.ctrl.Call(m, "AsyncSendNewBlock", arg0, arg1) 83 } 84 85 // AsyncSendNewBlock indicates an expected call of AsyncSendNewBlock 86 func (mr *MockPeerMockRecorder) AsyncSendNewBlock(arg0, arg1 interface{}) *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AsyncSendNewBlock", reflect.TypeOf((*MockPeer)(nil).AsyncSendNewBlock), arg0, arg1) 89 } 90 91 // AsyncSendNewBlockHash mocks base method 92 func (m *MockPeer) AsyncSendNewBlockHash(arg0 *types.Block) { 93 m.ctrl.T.Helper() 94 m.ctrl.Call(m, "AsyncSendNewBlockHash", arg0) 95 } 96 97 // AsyncSendNewBlockHash indicates an expected call of AsyncSendNewBlockHash 98 func (mr *MockPeerMockRecorder) AsyncSendNewBlockHash(arg0 interface{}) *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AsyncSendNewBlockHash", reflect.TypeOf((*MockPeer)(nil).AsyncSendNewBlockHash), arg0) 101 } 102 103 // AsyncSendTransactions mocks base method 104 func (m *MockPeer) AsyncSendTransactions(arg0 types.Transactions) { 105 m.ctrl.T.Helper() 106 m.ctrl.Call(m, "AsyncSendTransactions", arg0) 107 } 108 109 // AsyncSendTransactions indicates an expected call of AsyncSendTransactions 110 func (mr *MockPeerMockRecorder) AsyncSendTransactions(arg0 interface{}) *gomock.Call { 111 mr.mock.ctrl.T.Helper() 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AsyncSendTransactions", reflect.TypeOf((*MockPeer)(nil).AsyncSendTransactions), arg0) 113 } 114 115 // Broadcast mocks base method 116 func (m *MockPeer) Broadcast() { 117 m.ctrl.T.Helper() 118 m.ctrl.Call(m, "Broadcast") 119 } 120 121 // Broadcast indicates an expected call of Broadcast 122 func (mr *MockPeerMockRecorder) Broadcast() *gomock.Call { 123 mr.mock.ctrl.T.Helper() 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broadcast", reflect.TypeOf((*MockPeer)(nil).Broadcast)) 125 } 126 127 // Close mocks base method 128 func (m *MockPeer) Close() { 129 m.ctrl.T.Helper() 130 m.ctrl.Call(m, "Close") 131 } 132 133 // Close indicates an expected call of Close 134 func (mr *MockPeerMockRecorder) Close() *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockPeer)(nil).Close)) 137 } 138 139 // ConnType mocks base method 140 func (m *MockPeer) ConnType() common.ConnType { 141 m.ctrl.T.Helper() 142 ret := m.ctrl.Call(m, "ConnType") 143 ret0, _ := ret[0].(common.ConnType) 144 return ret0 145 } 146 147 // ConnType indicates an expected call of ConnType 148 func (mr *MockPeerMockRecorder) ConnType() *gomock.Call { 149 mr.mock.ctrl.T.Helper() 150 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnType", reflect.TypeOf((*MockPeer)(nil).ConnType)) 151 } 152 153 // DisconnectP2PPeer mocks base method 154 func (m *MockPeer) DisconnectP2PPeer(arg0 p2p.DiscReason) { 155 m.ctrl.T.Helper() 156 m.ctrl.Call(m, "DisconnectP2PPeer", arg0) 157 } 158 159 // DisconnectP2PPeer indicates an expected call of DisconnectP2PPeer 160 func (mr *MockPeerMockRecorder) DisconnectP2PPeer(arg0 interface{}) *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisconnectP2PPeer", reflect.TypeOf((*MockPeer)(nil).DisconnectP2PPeer), arg0) 163 } 164 165 // ExistSnapExtension mocks base method 166 func (m *MockPeer) ExistSnapExtension() bool { 167 m.ctrl.T.Helper() 168 ret := m.ctrl.Call(m, "ExistSnapExtension") 169 ret0, _ := ret[0].(bool) 170 return ret0 171 } 172 173 // ExistSnapExtension indicates an expected call of ExistSnapExtension 174 func (mr *MockPeerMockRecorder) ExistSnapExtension() *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExistSnapExtension", reflect.TypeOf((*MockPeer)(nil).ExistSnapExtension)) 177 } 178 179 // FetchBlockBodies mocks base method 180 func (m *MockPeer) FetchBlockBodies(arg0 []common.Hash) error { 181 m.ctrl.T.Helper() 182 ret := m.ctrl.Call(m, "FetchBlockBodies", arg0) 183 ret0, _ := ret[0].(error) 184 return ret0 185 } 186 187 // FetchBlockBodies indicates an expected call of FetchBlockBodies 188 func (mr *MockPeerMockRecorder) FetchBlockBodies(arg0 interface{}) *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlockBodies", reflect.TypeOf((*MockPeer)(nil).FetchBlockBodies), arg0) 191 } 192 193 // FetchBlockHeader mocks base method 194 func (m *MockPeer) FetchBlockHeader(arg0 common.Hash) error { 195 m.ctrl.T.Helper() 196 ret := m.ctrl.Call(m, "FetchBlockHeader", arg0) 197 ret0, _ := ret[0].(error) 198 return ret0 199 } 200 201 // FetchBlockHeader indicates an expected call of FetchBlockHeader 202 func (mr *MockPeerMockRecorder) FetchBlockHeader(arg0 interface{}) *gomock.Call { 203 mr.mock.ctrl.T.Helper() 204 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlockHeader", reflect.TypeOf((*MockPeer)(nil).FetchBlockHeader), arg0) 205 } 206 207 // GetAddr mocks base method 208 func (m *MockPeer) GetAddr() common.Address { 209 m.ctrl.T.Helper() 210 ret := m.ctrl.Call(m, "GetAddr") 211 ret0, _ := ret[0].(common.Address) 212 return ret0 213 } 214 215 // GetAddr indicates an expected call of GetAddr 216 func (mr *MockPeerMockRecorder) GetAddr() *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAddr", reflect.TypeOf((*MockPeer)(nil).GetAddr)) 219 } 220 221 // GetChainID mocks base method 222 func (m *MockPeer) GetChainID() *big.Int { 223 m.ctrl.T.Helper() 224 ret := m.ctrl.Call(m, "GetChainID") 225 ret0, _ := ret[0].(*big.Int) 226 return ret0 227 } 228 229 // GetChainID indicates an expected call of GetChainID 230 func (mr *MockPeerMockRecorder) GetChainID() *gomock.Call { 231 mr.mock.ctrl.T.Helper() 232 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainID", reflect.TypeOf((*MockPeer)(nil).GetChainID)) 233 } 234 235 // GetID mocks base method 236 func (m *MockPeer) GetID() string { 237 m.ctrl.T.Helper() 238 ret := m.ctrl.Call(m, "GetID") 239 ret0, _ := ret[0].(string) 240 return ret0 241 } 242 243 // GetID indicates an expected call of GetID 244 func (mr *MockPeerMockRecorder) GetID() *gomock.Call { 245 mr.mock.ctrl.T.Helper() 246 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetID", reflect.TypeOf((*MockPeer)(nil).GetID)) 247 } 248 249 // GetP2PPeer mocks base method 250 func (m *MockPeer) GetP2PPeer() *p2p.Peer { 251 m.ctrl.T.Helper() 252 ret := m.ctrl.Call(m, "GetP2PPeer") 253 ret0, _ := ret[0].(*p2p.Peer) 254 return ret0 255 } 256 257 // GetP2PPeer indicates an expected call of GetP2PPeer 258 func (mr *MockPeerMockRecorder) GetP2PPeer() *gomock.Call { 259 mr.mock.ctrl.T.Helper() 260 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetP2PPeer", reflect.TypeOf((*MockPeer)(nil).GetP2PPeer)) 261 } 262 263 // GetP2PPeerID mocks base method 264 func (m *MockPeer) GetP2PPeerID() discover.NodeID { 265 m.ctrl.T.Helper() 266 ret := m.ctrl.Call(m, "GetP2PPeerID") 267 ret0, _ := ret[0].(discover.NodeID) 268 return ret0 269 } 270 271 // GetP2PPeerID indicates an expected call of GetP2PPeerID 272 func (mr *MockPeerMockRecorder) GetP2PPeerID() *gomock.Call { 273 mr.mock.ctrl.T.Helper() 274 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetP2PPeerID", reflect.TypeOf((*MockPeer)(nil).GetP2PPeerID)) 275 } 276 277 // GetRW mocks base method 278 func (m *MockPeer) GetRW() p2p.MsgReadWriter { 279 m.ctrl.T.Helper() 280 ret := m.ctrl.Call(m, "GetRW") 281 ret0, _ := ret[0].(p2p.MsgReadWriter) 282 return ret0 283 } 284 285 // GetRW indicates an expected call of GetRW 286 func (mr *MockPeerMockRecorder) GetRW() *gomock.Call { 287 mr.mock.ctrl.T.Helper() 288 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRW", reflect.TypeOf((*MockPeer)(nil).GetRW)) 289 } 290 291 // GetVersion mocks base method 292 func (m *MockPeer) GetVersion() int { 293 m.ctrl.T.Helper() 294 ret := m.ctrl.Call(m, "GetVersion") 295 ret0, _ := ret[0].(int) 296 return ret0 297 } 298 299 // GetVersion indicates an expected call of GetVersion 300 func (mr *MockPeerMockRecorder) GetVersion() *gomock.Call { 301 mr.mock.ctrl.T.Helper() 302 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersion", reflect.TypeOf((*MockPeer)(nil).GetVersion)) 303 } 304 305 // Handle mocks base method 306 func (m *MockPeer) Handle(arg0 *ProtocolManager) error { 307 m.ctrl.T.Helper() 308 ret := m.ctrl.Call(m, "Handle", arg0) 309 ret0, _ := ret[0].(error) 310 return ret0 311 } 312 313 // Handle indicates an expected call of Handle 314 func (mr *MockPeerMockRecorder) Handle(arg0 interface{}) *gomock.Call { 315 mr.mock.ctrl.T.Helper() 316 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*MockPeer)(nil).Handle), arg0) 317 } 318 319 // Handshake mocks base method 320 func (m *MockPeer) Handshake(arg0 uint64, arg1, arg2 *big.Int, arg3, arg4 common.Hash) error { 321 m.ctrl.T.Helper() 322 ret := m.ctrl.Call(m, "Handshake", arg0, arg1, arg2, arg3, arg4) 323 ret0, _ := ret[0].(error) 324 return ret0 325 } 326 327 // Handshake indicates an expected call of Handshake 328 func (mr *MockPeerMockRecorder) Handshake(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handshake", reflect.TypeOf((*MockPeer)(nil).Handshake), arg0, arg1, arg2, arg3, arg4) 331 } 332 333 // Head mocks base method 334 func (m *MockPeer) Head() (common.Hash, *big.Int) { 335 m.ctrl.T.Helper() 336 ret := m.ctrl.Call(m, "Head") 337 ret0, _ := ret[0].(common.Hash) 338 ret1, _ := ret[1].(*big.Int) 339 return ret0, ret1 340 } 341 342 // Head indicates an expected call of Head 343 func (mr *MockPeerMockRecorder) Head() *gomock.Call { 344 mr.mock.ctrl.T.Helper() 345 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Head", reflect.TypeOf((*MockPeer)(nil).Head)) 346 } 347 348 // Info mocks base method 349 func (m *MockPeer) Info() *PeerInfo { 350 m.ctrl.T.Helper() 351 ret := m.ctrl.Call(m, "Info") 352 ret0, _ := ret[0].(*PeerInfo) 353 return ret0 354 } 355 356 // Info indicates an expected call of Info 357 func (mr *MockPeerMockRecorder) Info() *gomock.Call { 358 mr.mock.ctrl.T.Helper() 359 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockPeer)(nil).Info)) 360 } 361 362 // KnowsBlock mocks base method 363 func (m *MockPeer) KnowsBlock(arg0 common.Hash) bool { 364 m.ctrl.T.Helper() 365 ret := m.ctrl.Call(m, "KnowsBlock", arg0) 366 ret0, _ := ret[0].(bool) 367 return ret0 368 } 369 370 // KnowsBlock indicates an expected call of KnowsBlock 371 func (mr *MockPeerMockRecorder) KnowsBlock(arg0 interface{}) *gomock.Call { 372 mr.mock.ctrl.T.Helper() 373 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KnowsBlock", reflect.TypeOf((*MockPeer)(nil).KnowsBlock), arg0) 374 } 375 376 // KnowsTx mocks base method 377 func (m *MockPeer) KnowsTx(arg0 common.Hash) bool { 378 m.ctrl.T.Helper() 379 ret := m.ctrl.Call(m, "KnowsTx", arg0) 380 ret0, _ := ret[0].(bool) 381 return ret0 382 } 383 384 // KnowsTx indicates an expected call of KnowsTx 385 func (mr *MockPeerMockRecorder) KnowsTx(arg0 interface{}) *gomock.Call { 386 mr.mock.ctrl.T.Helper() 387 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KnowsTx", reflect.TypeOf((*MockPeer)(nil).KnowsTx), arg0) 388 } 389 390 // ReSendTransactions mocks base method 391 func (m *MockPeer) ReSendTransactions(arg0 types.Transactions) error { 392 m.ctrl.T.Helper() 393 ret := m.ctrl.Call(m, "ReSendTransactions", arg0) 394 ret0, _ := ret[0].(error) 395 return ret0 396 } 397 398 // ReSendTransactions indicates an expected call of ReSendTransactions 399 func (mr *MockPeerMockRecorder) ReSendTransactions(arg0 interface{}) *gomock.Call { 400 mr.mock.ctrl.T.Helper() 401 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReSendTransactions", reflect.TypeOf((*MockPeer)(nil).ReSendTransactions), arg0) 402 } 403 404 // RegisterConsensusMsgCode mocks base method 405 func (m *MockPeer) RegisterConsensusMsgCode(arg0 uint64) error { 406 m.ctrl.T.Helper() 407 ret := m.ctrl.Call(m, "RegisterConsensusMsgCode", arg0) 408 ret0, _ := ret[0].(error) 409 return ret0 410 } 411 412 // RegisterConsensusMsgCode indicates an expected call of RegisterConsensusMsgCode 413 func (mr *MockPeerMockRecorder) RegisterConsensusMsgCode(arg0 interface{}) *gomock.Call { 414 mr.mock.ctrl.T.Helper() 415 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterConsensusMsgCode", reflect.TypeOf((*MockPeer)(nil).RegisterConsensusMsgCode), arg0) 416 } 417 418 // RequestBodies mocks base method 419 func (m *MockPeer) RequestBodies(arg0 []common.Hash) error { 420 m.ctrl.T.Helper() 421 ret := m.ctrl.Call(m, "RequestBodies", arg0) 422 ret0, _ := ret[0].(error) 423 return ret0 424 } 425 426 // RequestBodies indicates an expected call of RequestBodies 427 func (mr *MockPeerMockRecorder) RequestBodies(arg0 interface{}) *gomock.Call { 428 mr.mock.ctrl.T.Helper() 429 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestBodies", reflect.TypeOf((*MockPeer)(nil).RequestBodies), arg0) 430 } 431 432 // RequestHeadersByHash mocks base method 433 func (m *MockPeer) RequestHeadersByHash(arg0 common.Hash, arg1, arg2 int, arg3 bool) error { 434 m.ctrl.T.Helper() 435 ret := m.ctrl.Call(m, "RequestHeadersByHash", arg0, arg1, arg2, arg3) 436 ret0, _ := ret[0].(error) 437 return ret0 438 } 439 440 // RequestHeadersByHash indicates an expected call of RequestHeadersByHash 441 func (mr *MockPeerMockRecorder) RequestHeadersByHash(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 442 mr.mock.ctrl.T.Helper() 443 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestHeadersByHash", reflect.TypeOf((*MockPeer)(nil).RequestHeadersByHash), arg0, arg1, arg2, arg3) 444 } 445 446 // RequestHeadersByNumber mocks base method 447 func (m *MockPeer) RequestHeadersByNumber(arg0 uint64, arg1, arg2 int, arg3 bool) error { 448 m.ctrl.T.Helper() 449 ret := m.ctrl.Call(m, "RequestHeadersByNumber", arg0, arg1, arg2, arg3) 450 ret0, _ := ret[0].(error) 451 return ret0 452 } 453 454 // RequestHeadersByNumber indicates an expected call of RequestHeadersByNumber 455 func (mr *MockPeerMockRecorder) RequestHeadersByNumber(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 456 mr.mock.ctrl.T.Helper() 457 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestHeadersByNumber", reflect.TypeOf((*MockPeer)(nil).RequestHeadersByNumber), arg0, arg1, arg2, arg3) 458 } 459 460 // RequestNodeData mocks base method 461 func (m *MockPeer) RequestNodeData(arg0 []common.Hash) error { 462 m.ctrl.T.Helper() 463 ret := m.ctrl.Call(m, "RequestNodeData", arg0) 464 ret0, _ := ret[0].(error) 465 return ret0 466 } 467 468 // RequestNodeData indicates an expected call of RequestNodeData 469 func (mr *MockPeerMockRecorder) RequestNodeData(arg0 interface{}) *gomock.Call { 470 mr.mock.ctrl.T.Helper() 471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestNodeData", reflect.TypeOf((*MockPeer)(nil).RequestNodeData), arg0) 472 } 473 474 // RequestReceipts mocks base method 475 func (m *MockPeer) RequestReceipts(arg0 []common.Hash) error { 476 m.ctrl.T.Helper() 477 ret := m.ctrl.Call(m, "RequestReceipts", arg0) 478 ret0, _ := ret[0].(error) 479 return ret0 480 } 481 482 // RequestReceipts indicates an expected call of RequestReceipts 483 func (mr *MockPeerMockRecorder) RequestReceipts(arg0 interface{}) *gomock.Call { 484 mr.mock.ctrl.T.Helper() 485 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestReceipts", reflect.TypeOf((*MockPeer)(nil).RequestReceipts), arg0) 486 } 487 488 // RequestStakingInfo mocks base method 489 func (m *MockPeer) RequestStakingInfo(arg0 []common.Hash) error { 490 m.ctrl.T.Helper() 491 ret := m.ctrl.Call(m, "RequestStakingInfo", arg0) 492 ret0, _ := ret[0].(error) 493 return ret0 494 } 495 496 // RequestStakingInfo indicates an expected call of RequestStakingInfo 497 func (mr *MockPeerMockRecorder) RequestStakingInfo(arg0 interface{}) *gomock.Call { 498 mr.mock.ctrl.T.Helper() 499 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestStakingInfo", reflect.TypeOf((*MockPeer)(nil).RequestStakingInfo), arg0) 500 } 501 502 // RunningCap mocks base method 503 func (m *MockPeer) RunningCap(arg0 string, arg1 []uint) bool { 504 m.ctrl.T.Helper() 505 ret := m.ctrl.Call(m, "RunningCap", arg0, arg1) 506 ret0, _ := ret[0].(bool) 507 return ret0 508 } 509 510 // RunningCap indicates an expected call of RunningCap 511 func (mr *MockPeerMockRecorder) RunningCap(arg0, arg1 interface{}) *gomock.Call { 512 mr.mock.ctrl.T.Helper() 513 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunningCap", reflect.TypeOf((*MockPeer)(nil).RunningCap), arg0, arg1) 514 } 515 516 // Send mocks base method 517 func (m *MockPeer) Send(arg0 uint64, arg1 interface{}) error { 518 m.ctrl.T.Helper() 519 ret := m.ctrl.Call(m, "Send", arg0, arg1) 520 ret0, _ := ret[0].(error) 521 return ret0 522 } 523 524 // Send indicates an expected call of Send 525 func (mr *MockPeerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call { 526 mr.mock.ctrl.T.Helper() 527 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockPeer)(nil).Send), arg0, arg1) 528 } 529 530 // SendBlockBodies mocks base method 531 func (m *MockPeer) SendBlockBodies(arg0 []*blockBody) error { 532 m.ctrl.T.Helper() 533 ret := m.ctrl.Call(m, "SendBlockBodies", arg0) 534 ret0, _ := ret[0].(error) 535 return ret0 536 } 537 538 // SendBlockBodies indicates an expected call of SendBlockBodies 539 func (mr *MockPeerMockRecorder) SendBlockBodies(arg0 interface{}) *gomock.Call { 540 mr.mock.ctrl.T.Helper() 541 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendBlockBodies", reflect.TypeOf((*MockPeer)(nil).SendBlockBodies), arg0) 542 } 543 544 // SendBlockBodiesRLP mocks base method 545 func (m *MockPeer) SendBlockBodiesRLP(arg0 []rlp.RawValue) error { 546 m.ctrl.T.Helper() 547 ret := m.ctrl.Call(m, "SendBlockBodiesRLP", arg0) 548 ret0, _ := ret[0].(error) 549 return ret0 550 } 551 552 // SendBlockBodiesRLP indicates an expected call of SendBlockBodiesRLP 553 func (mr *MockPeerMockRecorder) SendBlockBodiesRLP(arg0 interface{}) *gomock.Call { 554 mr.mock.ctrl.T.Helper() 555 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendBlockBodiesRLP", reflect.TypeOf((*MockPeer)(nil).SendBlockBodiesRLP), arg0) 556 } 557 558 // SendBlockHeaders mocks base method 559 func (m *MockPeer) SendBlockHeaders(arg0 []*types.Header) error { 560 m.ctrl.T.Helper() 561 ret := m.ctrl.Call(m, "SendBlockHeaders", arg0) 562 ret0, _ := ret[0].(error) 563 return ret0 564 } 565 566 // SendBlockHeaders indicates an expected call of SendBlockHeaders 567 func (mr *MockPeerMockRecorder) SendBlockHeaders(arg0 interface{}) *gomock.Call { 568 mr.mock.ctrl.T.Helper() 569 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendBlockHeaders", reflect.TypeOf((*MockPeer)(nil).SendBlockHeaders), arg0) 570 } 571 572 // SendFetchedBlockBodiesRLP mocks base method 573 func (m *MockPeer) SendFetchedBlockBodiesRLP(arg0 []rlp.RawValue) error { 574 m.ctrl.T.Helper() 575 ret := m.ctrl.Call(m, "SendFetchedBlockBodiesRLP", arg0) 576 ret0, _ := ret[0].(error) 577 return ret0 578 } 579 580 // SendFetchedBlockBodiesRLP indicates an expected call of SendFetchedBlockBodiesRLP 581 func (mr *MockPeerMockRecorder) SendFetchedBlockBodiesRLP(arg0 interface{}) *gomock.Call { 582 mr.mock.ctrl.T.Helper() 583 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendFetchedBlockBodiesRLP", reflect.TypeOf((*MockPeer)(nil).SendFetchedBlockBodiesRLP), arg0) 584 } 585 586 // SendFetchedBlockHeader mocks base method 587 func (m *MockPeer) SendFetchedBlockHeader(arg0 *types.Header) error { 588 m.ctrl.T.Helper() 589 ret := m.ctrl.Call(m, "SendFetchedBlockHeader", arg0) 590 ret0, _ := ret[0].(error) 591 return ret0 592 } 593 594 // SendFetchedBlockHeader indicates an expected call of SendFetchedBlockHeader 595 func (mr *MockPeerMockRecorder) SendFetchedBlockHeader(arg0 interface{}) *gomock.Call { 596 mr.mock.ctrl.T.Helper() 597 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendFetchedBlockHeader", reflect.TypeOf((*MockPeer)(nil).SendFetchedBlockHeader), arg0) 598 } 599 600 // SendNewBlock mocks base method 601 func (m *MockPeer) SendNewBlock(arg0 *types.Block, arg1 *big.Int) error { 602 m.ctrl.T.Helper() 603 ret := m.ctrl.Call(m, "SendNewBlock", arg0, arg1) 604 ret0, _ := ret[0].(error) 605 return ret0 606 } 607 608 // SendNewBlock indicates an expected call of SendNewBlock 609 func (mr *MockPeerMockRecorder) SendNewBlock(arg0, arg1 interface{}) *gomock.Call { 610 mr.mock.ctrl.T.Helper() 611 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendNewBlock", reflect.TypeOf((*MockPeer)(nil).SendNewBlock), arg0, arg1) 612 } 613 614 // SendNewBlockHashes mocks base method 615 func (m *MockPeer) SendNewBlockHashes(arg0 []common.Hash, arg1 []uint64) error { 616 m.ctrl.T.Helper() 617 ret := m.ctrl.Call(m, "SendNewBlockHashes", arg0, arg1) 618 ret0, _ := ret[0].(error) 619 return ret0 620 } 621 622 // SendNewBlockHashes indicates an expected call of SendNewBlockHashes 623 func (mr *MockPeerMockRecorder) SendNewBlockHashes(arg0, arg1 interface{}) *gomock.Call { 624 mr.mock.ctrl.T.Helper() 625 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendNewBlockHashes", reflect.TypeOf((*MockPeer)(nil).SendNewBlockHashes), arg0, arg1) 626 } 627 628 // SendNodeData mocks base method 629 func (m *MockPeer) SendNodeData(arg0 [][]byte) error { 630 m.ctrl.T.Helper() 631 ret := m.ctrl.Call(m, "SendNodeData", arg0) 632 ret0, _ := ret[0].(error) 633 return ret0 634 } 635 636 // SendNodeData indicates an expected call of SendNodeData 637 func (mr *MockPeerMockRecorder) SendNodeData(arg0 interface{}) *gomock.Call { 638 mr.mock.ctrl.T.Helper() 639 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendNodeData", reflect.TypeOf((*MockPeer)(nil).SendNodeData), arg0) 640 } 641 642 // SendReceiptsRLP mocks base method 643 func (m *MockPeer) SendReceiptsRLP(arg0 []rlp.RawValue) error { 644 m.ctrl.T.Helper() 645 ret := m.ctrl.Call(m, "SendReceiptsRLP", arg0) 646 ret0, _ := ret[0].(error) 647 return ret0 648 } 649 650 // SendReceiptsRLP indicates an expected call of SendReceiptsRLP 651 func (mr *MockPeerMockRecorder) SendReceiptsRLP(arg0 interface{}) *gomock.Call { 652 mr.mock.ctrl.T.Helper() 653 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendReceiptsRLP", reflect.TypeOf((*MockPeer)(nil).SendReceiptsRLP), arg0) 654 } 655 656 // SendStakingInfoRLP mocks base method 657 func (m *MockPeer) SendStakingInfoRLP(arg0 []rlp.RawValue) error { 658 m.ctrl.T.Helper() 659 ret := m.ctrl.Call(m, "SendStakingInfoRLP", arg0) 660 ret0, _ := ret[0].(error) 661 return ret0 662 } 663 664 // SendStakingInfoRLP indicates an expected call of SendStakingInfoRLP 665 func (mr *MockPeerMockRecorder) SendStakingInfoRLP(arg0 interface{}) *gomock.Call { 666 mr.mock.ctrl.T.Helper() 667 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendStakingInfoRLP", reflect.TypeOf((*MockPeer)(nil).SendStakingInfoRLP), arg0) 668 } 669 670 // SendTransactions mocks base method 671 func (m *MockPeer) SendTransactions(arg0 types.Transactions) error { 672 m.ctrl.T.Helper() 673 ret := m.ctrl.Call(m, "SendTransactions", arg0) 674 ret0, _ := ret[0].(error) 675 return ret0 676 } 677 678 // SendTransactions indicates an expected call of SendTransactions 679 func (mr *MockPeerMockRecorder) SendTransactions(arg0 interface{}) *gomock.Call { 680 mr.mock.ctrl.T.Helper() 681 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransactions", reflect.TypeOf((*MockPeer)(nil).SendTransactions), arg0) 682 } 683 684 // SetAddr mocks base method 685 func (m *MockPeer) SetAddr(arg0 common.Address) { 686 m.ctrl.T.Helper() 687 m.ctrl.Call(m, "SetAddr", arg0) 688 } 689 690 // SetAddr indicates an expected call of SetAddr 691 func (mr *MockPeerMockRecorder) SetAddr(arg0 interface{}) *gomock.Call { 692 mr.mock.ctrl.T.Helper() 693 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAddr", reflect.TypeOf((*MockPeer)(nil).SetAddr), arg0) 694 } 695 696 // SetHead mocks base method 697 func (m *MockPeer) SetHead(arg0 common.Hash, arg1 *big.Int) { 698 m.ctrl.T.Helper() 699 m.ctrl.Call(m, "SetHead", arg0, arg1) 700 } 701 702 // SetHead indicates an expected call of SetHead 703 func (mr *MockPeerMockRecorder) SetHead(arg0, arg1 interface{}) *gomock.Call { 704 mr.mock.ctrl.T.Helper() 705 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHead", reflect.TypeOf((*MockPeer)(nil).SetHead), arg0, arg1) 706 } 707 708 // UpdateRWImplementationVersion mocks base method 709 func (m *MockPeer) UpdateRWImplementationVersion() { 710 m.ctrl.T.Helper() 711 m.ctrl.Call(m, "UpdateRWImplementationVersion") 712 } 713 714 // UpdateRWImplementationVersion indicates an expected call of UpdateRWImplementationVersion 715 func (mr *MockPeerMockRecorder) UpdateRWImplementationVersion() *gomock.Call { 716 mr.mock.ctrl.T.Helper() 717 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRWImplementationVersion", reflect.TypeOf((*MockPeer)(nil).UpdateRWImplementationVersion)) 718 }