github.com/klaytn/klaytn@v1.12.1/work/mocks/blockchain_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/work (interfaces: BlockChain) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 io "io" 9 big "math/big" 10 reflect "reflect" 11 12 gomock "github.com/golang/mock/gomock" 13 blockchain "github.com/klaytn/klaytn/blockchain" 14 state "github.com/klaytn/klaytn/blockchain/state" 15 types "github.com/klaytn/klaytn/blockchain/types" 16 vm "github.com/klaytn/klaytn/blockchain/vm" 17 common "github.com/klaytn/klaytn/common" 18 consensus "github.com/klaytn/klaytn/consensus" 19 event "github.com/klaytn/klaytn/event" 20 params "github.com/klaytn/klaytn/params" 21 rlp "github.com/klaytn/klaytn/rlp" 22 snapshot "github.com/klaytn/klaytn/snapshot" 23 ) 24 25 // MockBlockChain is a mock of BlockChain interface. 26 type MockBlockChain struct { 27 ctrl *gomock.Controller 28 recorder *MockBlockChainMockRecorder 29 } 30 31 // MockBlockChainMockRecorder is the mock recorder for MockBlockChain. 32 type MockBlockChainMockRecorder struct { 33 mock *MockBlockChain 34 } 35 36 // NewMockBlockChain creates a new mock instance. 37 func NewMockBlockChain(ctrl *gomock.Controller) *MockBlockChain { 38 mock := &MockBlockChain{ctrl: ctrl} 39 mock.recorder = &MockBlockChainMockRecorder{mock} 40 return mock 41 } 42 43 // EXPECT returns an object that allows the caller to indicate expected use. 44 func (m *MockBlockChain) EXPECT() *MockBlockChainMockRecorder { 45 return m.recorder 46 } 47 48 // ApplyTransaction mocks base method. 49 func (m *MockBlockChain) ApplyTransaction(arg0 *params.ChainConfig, arg1 *common.Address, arg2 *state.StateDB, arg3 *types.Header, arg4 *types.Transaction, arg5 *uint64, arg6 *vm.Config) (*types.Receipt, *vm.InternalTxTrace, error) { 50 m.ctrl.T.Helper() 51 ret := m.ctrl.Call(m, "ApplyTransaction", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 52 ret0, _ := ret[0].(*types.Receipt) 53 ret1, _ := ret[1].(*vm.InternalTxTrace) 54 ret2, _ := ret[2].(error) 55 return ret0, ret1, ret2 56 } 57 58 // ApplyTransaction indicates an expected call of ApplyTransaction. 59 func (mr *MockBlockChainMockRecorder) ApplyTransaction(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyTransaction", reflect.TypeOf((*MockBlockChain)(nil).ApplyTransaction), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 62 } 63 64 // BadBlocks mocks base method. 65 func (m *MockBlockChain) BadBlocks() ([]blockchain.BadBlockArgs, error) { 66 m.ctrl.T.Helper() 67 ret := m.ctrl.Call(m, "BadBlocks") 68 ret0, _ := ret[0].([]blockchain.BadBlockArgs) 69 ret1, _ := ret[1].(error) 70 return ret0, ret1 71 } 72 73 // BadBlocks indicates an expected call of BadBlocks. 74 func (mr *MockBlockChainMockRecorder) BadBlocks() *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BadBlocks", reflect.TypeOf((*MockBlockChain)(nil).BadBlocks)) 77 } 78 79 // BlockSubscriptionLoop mocks base method. 80 func (m *MockBlockChain) BlockSubscriptionLoop(arg0 *blockchain.TxPool) { 81 m.ctrl.T.Helper() 82 m.ctrl.Call(m, "BlockSubscriptionLoop", arg0) 83 } 84 85 // BlockSubscriptionLoop indicates an expected call of BlockSubscriptionLoop. 86 func (mr *MockBlockChainMockRecorder) BlockSubscriptionLoop(arg0 interface{}) *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockSubscriptionLoop", reflect.TypeOf((*MockBlockChain)(nil).BlockSubscriptionLoop), arg0) 89 } 90 91 // CloseBlockSubscriptionLoop mocks base method. 92 func (m *MockBlockChain) CloseBlockSubscriptionLoop() { 93 m.ctrl.T.Helper() 94 m.ctrl.Call(m, "CloseBlockSubscriptionLoop") 95 } 96 97 // CloseBlockSubscriptionLoop indicates an expected call of CloseBlockSubscriptionLoop. 98 func (mr *MockBlockChainMockRecorder) CloseBlockSubscriptionLoop() *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseBlockSubscriptionLoop", reflect.TypeOf((*MockBlockChain)(nil).CloseBlockSubscriptionLoop)) 101 } 102 103 // Config mocks base method. 104 func (m *MockBlockChain) Config() *params.ChainConfig { 105 m.ctrl.T.Helper() 106 ret := m.ctrl.Call(m, "Config") 107 ret0, _ := ret[0].(*params.ChainConfig) 108 return ret0 109 } 110 111 // Config indicates an expected call of Config. 112 func (mr *MockBlockChainMockRecorder) Config() *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockBlockChain)(nil).Config)) 115 } 116 117 // ContractCode mocks base method. 118 func (m *MockBlockChain) ContractCode(arg0 common.Hash) ([]byte, error) { 119 m.ctrl.T.Helper() 120 ret := m.ctrl.Call(m, "ContractCode", arg0) 121 ret0, _ := ret[0].([]byte) 122 ret1, _ := ret[1].(error) 123 return ret0, ret1 124 } 125 126 // ContractCode indicates an expected call of ContractCode. 127 func (mr *MockBlockChainMockRecorder) ContractCode(arg0 interface{}) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContractCode", reflect.TypeOf((*MockBlockChain)(nil).ContractCode), arg0) 130 } 131 132 // ContractCodeWithPrefix mocks base method. 133 func (m *MockBlockChain) ContractCodeWithPrefix(arg0 common.Hash) ([]byte, error) { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "ContractCodeWithPrefix", arg0) 136 ret0, _ := ret[0].([]byte) 137 ret1, _ := ret[1].(error) 138 return ret0, ret1 139 } 140 141 // ContractCodeWithPrefix indicates an expected call of ContractCodeWithPrefix. 142 func (mr *MockBlockChainMockRecorder) ContractCodeWithPrefix(arg0 interface{}) *gomock.Call { 143 mr.mock.ctrl.T.Helper() 144 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContractCodeWithPrefix", reflect.TypeOf((*MockBlockChain)(nil).ContractCodeWithPrefix), arg0) 145 } 146 147 // CurrentBlock mocks base method. 148 func (m *MockBlockChain) CurrentBlock() *types.Block { 149 m.ctrl.T.Helper() 150 ret := m.ctrl.Call(m, "CurrentBlock") 151 ret0, _ := ret[0].(*types.Block) 152 return ret0 153 } 154 155 // CurrentBlock indicates an expected call of CurrentBlock. 156 func (mr *MockBlockChainMockRecorder) CurrentBlock() *gomock.Call { 157 mr.mock.ctrl.T.Helper() 158 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentBlock", reflect.TypeOf((*MockBlockChain)(nil).CurrentBlock)) 159 } 160 161 // CurrentBlockUpdateLoop mocks base method. 162 func (m *MockBlockChain) CurrentBlockUpdateLoop(arg0 *blockchain.TxPool) { 163 m.ctrl.T.Helper() 164 m.ctrl.Call(m, "CurrentBlockUpdateLoop", arg0) 165 } 166 167 // CurrentBlockUpdateLoop indicates an expected call of CurrentBlockUpdateLoop. 168 func (mr *MockBlockChainMockRecorder) CurrentBlockUpdateLoop(arg0 interface{}) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentBlockUpdateLoop", reflect.TypeOf((*MockBlockChain)(nil).CurrentBlockUpdateLoop), arg0) 171 } 172 173 // CurrentFastBlock mocks base method. 174 func (m *MockBlockChain) CurrentFastBlock() *types.Block { 175 m.ctrl.T.Helper() 176 ret := m.ctrl.Call(m, "CurrentFastBlock") 177 ret0, _ := ret[0].(*types.Block) 178 return ret0 179 } 180 181 // CurrentFastBlock indicates an expected call of CurrentFastBlock. 182 func (mr *MockBlockChainMockRecorder) CurrentFastBlock() *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentFastBlock", reflect.TypeOf((*MockBlockChain)(nil).CurrentFastBlock)) 185 } 186 187 // CurrentHeader mocks base method. 188 func (m *MockBlockChain) CurrentHeader() *types.Header { 189 m.ctrl.T.Helper() 190 ret := m.ctrl.Call(m, "CurrentHeader") 191 ret0, _ := ret[0].(*types.Header) 192 return ret0 193 } 194 195 // CurrentHeader indicates an expected call of CurrentHeader. 196 func (mr *MockBlockChainMockRecorder) CurrentHeader() *gomock.Call { 197 mr.mock.ctrl.T.Helper() 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentHeader", reflect.TypeOf((*MockBlockChain)(nil).CurrentHeader)) 199 } 200 201 // Engine mocks base method. 202 func (m *MockBlockChain) Engine() consensus.Engine { 203 m.ctrl.T.Helper() 204 ret := m.ctrl.Call(m, "Engine") 205 ret0, _ := ret[0].(consensus.Engine) 206 return ret0 207 } 208 209 // Engine indicates an expected call of Engine. 210 func (mr *MockBlockChainMockRecorder) Engine() *gomock.Call { 211 mr.mock.ctrl.T.Helper() 212 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Engine", reflect.TypeOf((*MockBlockChain)(nil).Engine)) 213 } 214 215 // Export mocks base method. 216 func (m *MockBlockChain) Export(arg0 io.Writer) error { 217 m.ctrl.T.Helper() 218 ret := m.ctrl.Call(m, "Export", arg0) 219 ret0, _ := ret[0].(error) 220 return ret0 221 } 222 223 // Export indicates an expected call of Export. 224 func (mr *MockBlockChainMockRecorder) Export(arg0 interface{}) *gomock.Call { 225 mr.mock.ctrl.T.Helper() 226 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Export", reflect.TypeOf((*MockBlockChain)(nil).Export), arg0) 227 } 228 229 // ExportN mocks base method. 230 func (m *MockBlockChain) ExportN(arg0 io.Writer, arg1, arg2 uint64) error { 231 m.ctrl.T.Helper() 232 ret := m.ctrl.Call(m, "ExportN", arg0, arg1, arg2) 233 ret0, _ := ret[0].(error) 234 return ret0 235 } 236 237 // ExportN indicates an expected call of ExportN. 238 func (mr *MockBlockChainMockRecorder) ExportN(arg0, arg1, arg2 interface{}) *gomock.Call { 239 mr.mock.ctrl.T.Helper() 240 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportN", reflect.TypeOf((*MockBlockChain)(nil).ExportN), arg0, arg1, arg2) 241 } 242 243 // FastSyncCommitHead mocks base method. 244 func (m *MockBlockChain) FastSyncCommitHead(arg0 common.Hash) error { 245 m.ctrl.T.Helper() 246 ret := m.ctrl.Call(m, "FastSyncCommitHead", arg0) 247 ret0, _ := ret[0].(error) 248 return ret0 249 } 250 251 // FastSyncCommitHead indicates an expected call of FastSyncCommitHead. 252 func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(arg0 interface{}) *gomock.Call { 253 mr.mock.ctrl.T.Helper() 254 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FastSyncCommitHead", reflect.TypeOf((*MockBlockChain)(nil).FastSyncCommitHead), arg0) 255 } 256 257 // Genesis mocks base method. 258 func (m *MockBlockChain) Genesis() *types.Block { 259 m.ctrl.T.Helper() 260 ret := m.ctrl.Call(m, "Genesis") 261 ret0, _ := ret[0].(*types.Block) 262 return ret0 263 } 264 265 // Genesis indicates an expected call of Genesis. 266 func (mr *MockBlockChainMockRecorder) Genesis() *gomock.Call { 267 mr.mock.ctrl.T.Helper() 268 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Genesis", reflect.TypeOf((*MockBlockChain)(nil).Genesis)) 269 } 270 271 // GetBlock mocks base method. 272 func (m *MockBlockChain) GetBlock(arg0 common.Hash, arg1 uint64) *types.Block { 273 m.ctrl.T.Helper() 274 ret := m.ctrl.Call(m, "GetBlock", arg0, arg1) 275 ret0, _ := ret[0].(*types.Block) 276 return ret0 277 } 278 279 // GetBlock indicates an expected call of GetBlock. 280 func (mr *MockBlockChainMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call { 281 mr.mock.ctrl.T.Helper() 282 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockBlockChain)(nil).GetBlock), arg0, arg1) 283 } 284 285 // GetBlockByHash mocks base method. 286 func (m *MockBlockChain) GetBlockByHash(arg0 common.Hash) *types.Block { 287 m.ctrl.T.Helper() 288 ret := m.ctrl.Call(m, "GetBlockByHash", arg0) 289 ret0, _ := ret[0].(*types.Block) 290 return ret0 291 } 292 293 // GetBlockByHash indicates an expected call of GetBlockByHash. 294 func (mr *MockBlockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call { 295 mr.mock.ctrl.T.Helper() 296 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockByHash", reflect.TypeOf((*MockBlockChain)(nil).GetBlockByHash), arg0) 297 } 298 299 // GetBlockByNumber mocks base method. 300 func (m *MockBlockChain) GetBlockByNumber(arg0 uint64) *types.Block { 301 m.ctrl.T.Helper() 302 ret := m.ctrl.Call(m, "GetBlockByNumber", arg0) 303 ret0, _ := ret[0].(*types.Block) 304 return ret0 305 } 306 307 // GetBlockByNumber indicates an expected call of GetBlockByNumber. 308 func (mr *MockBlockChainMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call { 309 mr.mock.ctrl.T.Helper() 310 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockByNumber", reflect.TypeOf((*MockBlockChain)(nil).GetBlockByNumber), arg0) 311 } 312 313 // GetBlockHashesFromHash mocks base method. 314 func (m *MockBlockChain) GetBlockHashesFromHash(arg0 common.Hash, arg1 uint64) []common.Hash { 315 m.ctrl.T.Helper() 316 ret := m.ctrl.Call(m, "GetBlockHashesFromHash", arg0, arg1) 317 ret0, _ := ret[0].([]common.Hash) 318 return ret0 319 } 320 321 // GetBlockHashesFromHash indicates an expected call of GetBlockHashesFromHash. 322 func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(arg0, arg1 interface{}) *gomock.Call { 323 mr.mock.ctrl.T.Helper() 324 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockHashesFromHash", reflect.TypeOf((*MockBlockChain)(nil).GetBlockHashesFromHash), arg0, arg1) 325 } 326 327 // GetBlockReceiptsInCache mocks base method. 328 func (m *MockBlockChain) GetBlockReceiptsInCache(arg0 common.Hash) types.Receipts { 329 m.ctrl.T.Helper() 330 ret := m.ctrl.Call(m, "GetBlockReceiptsInCache", arg0) 331 ret0, _ := ret[0].(types.Receipts) 332 return ret0 333 } 334 335 // GetBlockReceiptsInCache indicates an expected call of GetBlockReceiptsInCache. 336 func (mr *MockBlockChainMockRecorder) GetBlockReceiptsInCache(arg0 interface{}) *gomock.Call { 337 mr.mock.ctrl.T.Helper() 338 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockReceiptsInCache", reflect.TypeOf((*MockBlockChain)(nil).GetBlockReceiptsInCache), arg0) 339 } 340 341 // GetBodyRLP mocks base method. 342 func (m *MockBlockChain) GetBodyRLP(arg0 common.Hash) rlp.RawValue { 343 m.ctrl.T.Helper() 344 ret := m.ctrl.Call(m, "GetBodyRLP", arg0) 345 ret0, _ := ret[0].(rlp.RawValue) 346 return ret0 347 } 348 349 // GetBodyRLP indicates an expected call of GetBodyRLP. 350 func (mr *MockBlockChainMockRecorder) GetBodyRLP(arg0 interface{}) *gomock.Call { 351 mr.mock.ctrl.T.Helper() 352 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBodyRLP", reflect.TypeOf((*MockBlockChain)(nil).GetBodyRLP), arg0) 353 } 354 355 // GetContractStorageRoot mocks base method. 356 func (m *MockBlockChain) GetContractStorageRoot(arg0 *types.Block, arg1 state.Database, arg2 common.Address) (common.ExtHash, error) { 357 m.ctrl.T.Helper() 358 ret := m.ctrl.Call(m, "GetContractStorageRoot", arg0, arg1, arg2) 359 ret0, _ := ret[0].(common.ExtHash) 360 ret1, _ := ret[1].(error) 361 return ret0, ret1 362 } 363 364 // GetContractStorageRoot indicates an expected call of GetContractStorageRoot. 365 func (mr *MockBlockChainMockRecorder) GetContractStorageRoot(arg0, arg1, arg2 interface{}) *gomock.Call { 366 mr.mock.ctrl.T.Helper() 367 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractStorageRoot", reflect.TypeOf((*MockBlockChain)(nil).GetContractStorageRoot), arg0, arg1, arg2) 368 } 369 370 // GetHeader mocks base method. 371 func (m *MockBlockChain) GetHeader(arg0 common.Hash, arg1 uint64) *types.Header { 372 m.ctrl.T.Helper() 373 ret := m.ctrl.Call(m, "GetHeader", arg0, arg1) 374 ret0, _ := ret[0].(*types.Header) 375 return ret0 376 } 377 378 // GetHeader indicates an expected call of GetHeader. 379 func (mr *MockBlockChainMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call { 380 mr.mock.ctrl.T.Helper() 381 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeader", reflect.TypeOf((*MockBlockChain)(nil).GetHeader), arg0, arg1) 382 } 383 384 // GetHeaderByHash mocks base method. 385 func (m *MockBlockChain) GetHeaderByHash(arg0 common.Hash) *types.Header { 386 m.ctrl.T.Helper() 387 ret := m.ctrl.Call(m, "GetHeaderByHash", arg0) 388 ret0, _ := ret[0].(*types.Header) 389 return ret0 390 } 391 392 // GetHeaderByHash indicates an expected call of GetHeaderByHash. 393 func (mr *MockBlockChainMockRecorder) GetHeaderByHash(arg0 interface{}) *gomock.Call { 394 mr.mock.ctrl.T.Helper() 395 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeaderByHash", reflect.TypeOf((*MockBlockChain)(nil).GetHeaderByHash), arg0) 396 } 397 398 // GetHeaderByNumber mocks base method. 399 func (m *MockBlockChain) GetHeaderByNumber(arg0 uint64) *types.Header { 400 m.ctrl.T.Helper() 401 ret := m.ctrl.Call(m, "GetHeaderByNumber", arg0) 402 ret0, _ := ret[0].(*types.Header) 403 return ret0 404 } 405 406 // GetHeaderByNumber indicates an expected call of GetHeaderByNumber. 407 func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(arg0 interface{}) *gomock.Call { 408 mr.mock.ctrl.T.Helper() 409 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeaderByNumber", reflect.TypeOf((*MockBlockChain)(nil).GetHeaderByNumber), arg0) 410 } 411 412 // GetLogsByHash mocks base method. 413 func (m *MockBlockChain) GetLogsByHash(arg0 common.Hash) [][]*types.Log { 414 m.ctrl.T.Helper() 415 ret := m.ctrl.Call(m, "GetLogsByHash", arg0) 416 ret0, _ := ret[0].([][]*types.Log) 417 return ret0 418 } 419 420 // GetLogsByHash indicates an expected call of GetLogsByHash. 421 func (mr *MockBlockChainMockRecorder) GetLogsByHash(arg0 interface{}) *gomock.Call { 422 mr.mock.ctrl.T.Helper() 423 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogsByHash", reflect.TypeOf((*MockBlockChain)(nil).GetLogsByHash), arg0) 424 } 425 426 // GetReceiptsByBlockHash mocks base method. 427 func (m *MockBlockChain) GetReceiptsByBlockHash(arg0 common.Hash) types.Receipts { 428 m.ctrl.T.Helper() 429 ret := m.ctrl.Call(m, "GetReceiptsByBlockHash", arg0) 430 ret0, _ := ret[0].(types.Receipts) 431 return ret0 432 } 433 434 // GetReceiptsByBlockHash indicates an expected call of GetReceiptsByBlockHash. 435 func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(arg0 interface{}) *gomock.Call { 436 mr.mock.ctrl.T.Helper() 437 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReceiptsByBlockHash", reflect.TypeOf((*MockBlockChain)(nil).GetReceiptsByBlockHash), arg0) 438 } 439 440 // GetTd mocks base method. 441 func (m *MockBlockChain) GetTd(arg0 common.Hash, arg1 uint64) *big.Int { 442 m.ctrl.T.Helper() 443 ret := m.ctrl.Call(m, "GetTd", arg0, arg1) 444 ret0, _ := ret[0].(*big.Int) 445 return ret0 446 } 447 448 // GetTd indicates an expected call of GetTd. 449 func (mr *MockBlockChainMockRecorder) GetTd(arg0, arg1 interface{}) *gomock.Call { 450 mr.mock.ctrl.T.Helper() 451 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTd", reflect.TypeOf((*MockBlockChain)(nil).GetTd), arg0, arg1) 452 } 453 454 // GetTdByHash mocks base method. 455 func (m *MockBlockChain) GetTdByHash(arg0 common.Hash) *big.Int { 456 m.ctrl.T.Helper() 457 ret := m.ctrl.Call(m, "GetTdByHash", arg0) 458 ret0, _ := ret[0].(*big.Int) 459 return ret0 460 } 461 462 // GetTdByHash indicates an expected call of GetTdByHash. 463 func (mr *MockBlockChainMockRecorder) GetTdByHash(arg0 interface{}) *gomock.Call { 464 mr.mock.ctrl.T.Helper() 465 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTdByHash", reflect.TypeOf((*MockBlockChain)(nil).GetTdByHash), arg0) 466 } 467 468 // GetTxAndLookupInfo mocks base method. 469 func (m *MockBlockChain) GetTxAndLookupInfo(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64) { 470 m.ctrl.T.Helper() 471 ret := m.ctrl.Call(m, "GetTxAndLookupInfo", arg0) 472 ret0, _ := ret[0].(*types.Transaction) 473 ret1, _ := ret[1].(common.Hash) 474 ret2, _ := ret[2].(uint64) 475 ret3, _ := ret[3].(uint64) 476 return ret0, ret1, ret2, ret3 477 } 478 479 // GetTxAndLookupInfo indicates an expected call of GetTxAndLookupInfo. 480 func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfo(arg0 interface{}) *gomock.Call { 481 mr.mock.ctrl.T.Helper() 482 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxAndLookupInfo", reflect.TypeOf((*MockBlockChain)(nil).GetTxAndLookupInfo), arg0) 483 } 484 485 // GetTxAndLookupInfoInCache mocks base method. 486 func (m *MockBlockChain) GetTxAndLookupInfoInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64) { 487 m.ctrl.T.Helper() 488 ret := m.ctrl.Call(m, "GetTxAndLookupInfoInCache", arg0) 489 ret0, _ := ret[0].(*types.Transaction) 490 ret1, _ := ret[1].(common.Hash) 491 ret2, _ := ret[2].(uint64) 492 ret3, _ := ret[3].(uint64) 493 return ret0, ret1, ret2, ret3 494 } 495 496 // GetTxAndLookupInfoInCache indicates an expected call of GetTxAndLookupInfoInCache. 497 func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfoInCache(arg0 interface{}) *gomock.Call { 498 mr.mock.ctrl.T.Helper() 499 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxAndLookupInfoInCache", reflect.TypeOf((*MockBlockChain)(nil).GetTxAndLookupInfoInCache), arg0) 500 } 501 502 // GetTxLookupInfoAndReceipt mocks base method. 503 func (m *MockBlockChain) GetTxLookupInfoAndReceipt(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt) { 504 m.ctrl.T.Helper() 505 ret := m.ctrl.Call(m, "GetTxLookupInfoAndReceipt", arg0) 506 ret0, _ := ret[0].(*types.Transaction) 507 ret1, _ := ret[1].(common.Hash) 508 ret2, _ := ret[2].(uint64) 509 ret3, _ := ret[3].(uint64) 510 ret4, _ := ret[4].(*types.Receipt) 511 return ret0, ret1, ret2, ret3, ret4 512 } 513 514 // GetTxLookupInfoAndReceipt indicates an expected call of GetTxLookupInfoAndReceipt. 515 func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt(arg0 interface{}) *gomock.Call { 516 mr.mock.ctrl.T.Helper() 517 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxLookupInfoAndReceipt", reflect.TypeOf((*MockBlockChain)(nil).GetTxLookupInfoAndReceipt), arg0) 518 } 519 520 // GetTxLookupInfoAndReceiptInCache mocks base method. 521 func (m *MockBlockChain) GetTxLookupInfoAndReceiptInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt) { 522 m.ctrl.T.Helper() 523 ret := m.ctrl.Call(m, "GetTxLookupInfoAndReceiptInCache", arg0) 524 ret0, _ := ret[0].(*types.Transaction) 525 ret1, _ := ret[1].(common.Hash) 526 ret2, _ := ret[2].(uint64) 527 ret3, _ := ret[3].(uint64) 528 ret4, _ := ret[4].(*types.Receipt) 529 return ret0, ret1, ret2, ret3, ret4 530 } 531 532 // GetTxLookupInfoAndReceiptInCache indicates an expected call of GetTxLookupInfoAndReceiptInCache. 533 func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache(arg0 interface{}) *gomock.Call { 534 mr.mock.ctrl.T.Helper() 535 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxLookupInfoAndReceiptInCache", reflect.TypeOf((*MockBlockChain)(nil).GetTxLookupInfoAndReceiptInCache), arg0) 536 } 537 538 // HasBadBlock mocks base method. 539 func (m *MockBlockChain) HasBadBlock(arg0 common.Hash) bool { 540 m.ctrl.T.Helper() 541 ret := m.ctrl.Call(m, "HasBadBlock", arg0) 542 ret0, _ := ret[0].(bool) 543 return ret0 544 } 545 546 // HasBadBlock indicates an expected call of HasBadBlock. 547 func (mr *MockBlockChainMockRecorder) HasBadBlock(arg0 interface{}) *gomock.Call { 548 mr.mock.ctrl.T.Helper() 549 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasBadBlock", reflect.TypeOf((*MockBlockChain)(nil).HasBadBlock), arg0) 550 } 551 552 // HasBlock mocks base method. 553 func (m *MockBlockChain) HasBlock(arg0 common.Hash, arg1 uint64) bool { 554 m.ctrl.T.Helper() 555 ret := m.ctrl.Call(m, "HasBlock", arg0, arg1) 556 ret0, _ := ret[0].(bool) 557 return ret0 558 } 559 560 // HasBlock indicates an expected call of HasBlock. 561 func (mr *MockBlockChainMockRecorder) HasBlock(arg0, arg1 interface{}) *gomock.Call { 562 mr.mock.ctrl.T.Helper() 563 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasBlock", reflect.TypeOf((*MockBlockChain)(nil).HasBlock), arg0, arg1) 564 } 565 566 // HasHeader mocks base method. 567 func (m *MockBlockChain) HasHeader(arg0 common.Hash, arg1 uint64) bool { 568 m.ctrl.T.Helper() 569 ret := m.ctrl.Call(m, "HasHeader", arg0, arg1) 570 ret0, _ := ret[0].(bool) 571 return ret0 572 } 573 574 // HasHeader indicates an expected call of HasHeader. 575 func (mr *MockBlockChainMockRecorder) HasHeader(arg0, arg1 interface{}) *gomock.Call { 576 mr.mock.ctrl.T.Helper() 577 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasHeader", reflect.TypeOf((*MockBlockChain)(nil).HasHeader), arg0, arg1) 578 } 579 580 // InsertChain mocks base method. 581 func (m *MockBlockChain) InsertChain(arg0 types.Blocks) (int, error) { 582 m.ctrl.T.Helper() 583 ret := m.ctrl.Call(m, "InsertChain", arg0) 584 ret0, _ := ret[0].(int) 585 ret1, _ := ret[1].(error) 586 return ret0, ret1 587 } 588 589 // InsertChain indicates an expected call of InsertChain. 590 func (mr *MockBlockChainMockRecorder) InsertChain(arg0 interface{}) *gomock.Call { 591 mr.mock.ctrl.T.Helper() 592 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertChain", reflect.TypeOf((*MockBlockChain)(nil).InsertChain), arg0) 593 } 594 595 // InsertHeaderChain mocks base method. 596 func (m *MockBlockChain) InsertHeaderChain(arg0 []*types.Header, arg1 int) (int, error) { 597 m.ctrl.T.Helper() 598 ret := m.ctrl.Call(m, "InsertHeaderChain", arg0, arg1) 599 ret0, _ := ret[0].(int) 600 ret1, _ := ret[1].(error) 601 return ret0, ret1 602 } 603 604 // InsertHeaderChain indicates an expected call of InsertHeaderChain. 605 func (mr *MockBlockChainMockRecorder) InsertHeaderChain(arg0, arg1 interface{}) *gomock.Call { 606 mr.mock.ctrl.T.Helper() 607 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertHeaderChain", reflect.TypeOf((*MockBlockChain)(nil).InsertHeaderChain), arg0, arg1) 608 } 609 610 // InsertReceiptChain mocks base method. 611 func (m *MockBlockChain) InsertReceiptChain(arg0 types.Blocks, arg1 []types.Receipts) (int, error) { 612 m.ctrl.T.Helper() 613 ret := m.ctrl.Call(m, "InsertReceiptChain", arg0, arg1) 614 ret0, _ := ret[0].(int) 615 ret1, _ := ret[1].(error) 616 return ret0, ret1 617 } 618 619 // InsertReceiptChain indicates an expected call of InsertReceiptChain. 620 func (mr *MockBlockChainMockRecorder) InsertReceiptChain(arg0, arg1 interface{}) *gomock.Call { 621 mr.mock.ctrl.T.Helper() 622 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertReceiptChain", reflect.TypeOf((*MockBlockChain)(nil).InsertReceiptChain), arg0, arg1) 623 } 624 625 // IsParallelDBWrite mocks base method. 626 func (m *MockBlockChain) IsParallelDBWrite() bool { 627 m.ctrl.T.Helper() 628 ret := m.ctrl.Call(m, "IsParallelDBWrite") 629 ret0, _ := ret[0].(bool) 630 return ret0 631 } 632 633 // IsParallelDBWrite indicates an expected call of IsParallelDBWrite. 634 func (mr *MockBlockChainMockRecorder) IsParallelDBWrite() *gomock.Call { 635 mr.mock.ctrl.T.Helper() 636 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsParallelDBWrite", reflect.TypeOf((*MockBlockChain)(nil).IsParallelDBWrite)) 637 } 638 639 // IsSenderTxHashIndexingEnabled mocks base method. 640 func (m *MockBlockChain) IsSenderTxHashIndexingEnabled() bool { 641 m.ctrl.T.Helper() 642 ret := m.ctrl.Call(m, "IsSenderTxHashIndexingEnabled") 643 ret0, _ := ret[0].(bool) 644 return ret0 645 } 646 647 // IsSenderTxHashIndexingEnabled indicates an expected call of IsSenderTxHashIndexingEnabled. 648 func (mr *MockBlockChainMockRecorder) IsSenderTxHashIndexingEnabled() *gomock.Call { 649 mr.mock.ctrl.T.Helper() 650 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSenderTxHashIndexingEnabled", reflect.TypeOf((*MockBlockChain)(nil).IsSenderTxHashIndexingEnabled)) 651 } 652 653 // PostChainEvents mocks base method. 654 func (m *MockBlockChain) PostChainEvents(arg0 []interface{}, arg1 []*types.Log) { 655 m.ctrl.T.Helper() 656 m.ctrl.Call(m, "PostChainEvents", arg0, arg1) 657 } 658 659 // PostChainEvents indicates an expected call of PostChainEvents. 660 func (mr *MockBlockChainMockRecorder) PostChainEvents(arg0, arg1 interface{}) *gomock.Call { 661 mr.mock.ctrl.T.Helper() 662 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostChainEvents", reflect.TypeOf((*MockBlockChain)(nil).PostChainEvents), arg0, arg1) 663 } 664 665 // PrepareStateMigration mocks base method. 666 func (m *MockBlockChain) PrepareStateMigration() error { 667 m.ctrl.T.Helper() 668 ret := m.ctrl.Call(m, "PrepareStateMigration") 669 ret0, _ := ret[0].(error) 670 return ret0 671 } 672 673 // PrepareStateMigration indicates an expected call of PrepareStateMigration. 674 func (mr *MockBlockChainMockRecorder) PrepareStateMigration() *gomock.Call { 675 mr.mock.ctrl.T.Helper() 676 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareStateMigration", reflect.TypeOf((*MockBlockChain)(nil).PrepareStateMigration)) 677 } 678 679 // Processor mocks base method. 680 func (m *MockBlockChain) Processor() blockchain.Processor { 681 m.ctrl.T.Helper() 682 ret := m.ctrl.Call(m, "Processor") 683 ret0, _ := ret[0].(blockchain.Processor) 684 return ret0 685 } 686 687 // Processor indicates an expected call of Processor. 688 func (mr *MockBlockChainMockRecorder) Processor() *gomock.Call { 689 mr.mock.ctrl.T.Helper() 690 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Processor", reflect.TypeOf((*MockBlockChain)(nil).Processor)) 691 } 692 693 // PrunableStateAt mocks base method. 694 func (m *MockBlockChain) PrunableStateAt(arg0 common.Hash, arg1 uint64) (*state.StateDB, error) { 695 m.ctrl.T.Helper() 696 ret := m.ctrl.Call(m, "PrunableStateAt", arg0, arg1) 697 ret0, _ := ret[0].(*state.StateDB) 698 ret1, _ := ret[1].(error) 699 return ret0, ret1 700 } 701 702 // PrunableStateAt indicates an expected call of PrunableStateAt. 703 func (mr *MockBlockChainMockRecorder) PrunableStateAt(arg0, arg1 interface{}) *gomock.Call { 704 mr.mock.ctrl.T.Helper() 705 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrunableStateAt", reflect.TypeOf((*MockBlockChain)(nil).PrunableStateAt), arg0, arg1) 706 } 707 708 // ResetWithGenesisBlock mocks base method. 709 func (m *MockBlockChain) ResetWithGenesisBlock(arg0 *types.Block) error { 710 m.ctrl.T.Helper() 711 ret := m.ctrl.Call(m, "ResetWithGenesisBlock", arg0) 712 ret0, _ := ret[0].(error) 713 return ret0 714 } 715 716 // ResetWithGenesisBlock indicates an expected call of ResetWithGenesisBlock. 717 func (mr *MockBlockChainMockRecorder) ResetWithGenesisBlock(arg0 interface{}) *gomock.Call { 718 mr.mock.ctrl.T.Helper() 719 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetWithGenesisBlock", reflect.TypeOf((*MockBlockChain)(nil).ResetWithGenesisBlock), arg0) 720 } 721 722 // Rollback mocks base method. 723 func (m *MockBlockChain) Rollback(arg0 []common.Hash) { 724 m.ctrl.T.Helper() 725 m.ctrl.Call(m, "Rollback", arg0) 726 } 727 728 // Rollback indicates an expected call of Rollback. 729 func (mr *MockBlockChainMockRecorder) Rollback(arg0 interface{}) *gomock.Call { 730 mr.mock.ctrl.T.Helper() 731 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockBlockChain)(nil).Rollback), arg0) 732 } 733 734 // SaveTrieNodeCacheToDisk mocks base method. 735 func (m *MockBlockChain) SaveTrieNodeCacheToDisk() error { 736 m.ctrl.T.Helper() 737 ret := m.ctrl.Call(m, "SaveTrieNodeCacheToDisk") 738 ret0, _ := ret[0].(error) 739 return ret0 740 } 741 742 // SaveTrieNodeCacheToDisk indicates an expected call of SaveTrieNodeCacheToDisk. 743 func (mr *MockBlockChainMockRecorder) SaveTrieNodeCacheToDisk() *gomock.Call { 744 mr.mock.ctrl.T.Helper() 745 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTrieNodeCacheToDisk", reflect.TypeOf((*MockBlockChain)(nil).SaveTrieNodeCacheToDisk)) 746 } 747 748 // SetHead mocks base method. 749 func (m *MockBlockChain) SetHead(arg0 uint64) error { 750 m.ctrl.T.Helper() 751 ret := m.ctrl.Call(m, "SetHead", arg0) 752 ret0, _ := ret[0].(error) 753 return ret0 754 } 755 756 // SetHead indicates an expected call of SetHead. 757 func (mr *MockBlockChainMockRecorder) SetHead(arg0 interface{}) *gomock.Call { 758 mr.mock.ctrl.T.Helper() 759 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHead", reflect.TypeOf((*MockBlockChain)(nil).SetHead), arg0) 760 } 761 762 // Snapshots mocks base method. 763 func (m *MockBlockChain) Snapshots() *snapshot.Tree { 764 m.ctrl.T.Helper() 765 ret := m.ctrl.Call(m, "Snapshots") 766 ret0, _ := ret[0].(*snapshot.Tree) 767 return ret0 768 } 769 770 // Snapshots indicates an expected call of Snapshots. 771 func (mr *MockBlockChainMockRecorder) Snapshots() *gomock.Call { 772 mr.mock.ctrl.T.Helper() 773 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshots", reflect.TypeOf((*MockBlockChain)(nil).Snapshots)) 774 } 775 776 // StartCollectingTrieStats mocks base method. 777 func (m *MockBlockChain) StartCollectingTrieStats(arg0 common.Address) error { 778 m.ctrl.T.Helper() 779 ret := m.ctrl.Call(m, "StartCollectingTrieStats", arg0) 780 ret0, _ := ret[0].(error) 781 return ret0 782 } 783 784 // StartCollectingTrieStats indicates an expected call of StartCollectingTrieStats. 785 func (mr *MockBlockChainMockRecorder) StartCollectingTrieStats(arg0 interface{}) *gomock.Call { 786 mr.mock.ctrl.T.Helper() 787 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCollectingTrieStats", reflect.TypeOf((*MockBlockChain)(nil).StartCollectingTrieStats), arg0) 788 } 789 790 // StartContractWarmUp mocks base method. 791 func (m *MockBlockChain) StartContractWarmUp(arg0 common.Address, arg1 uint) error { 792 m.ctrl.T.Helper() 793 ret := m.ctrl.Call(m, "StartContractWarmUp", arg0, arg1) 794 ret0, _ := ret[0].(error) 795 return ret0 796 } 797 798 // StartContractWarmUp indicates an expected call of StartContractWarmUp. 799 func (mr *MockBlockChainMockRecorder) StartContractWarmUp(arg0, arg1 interface{}) *gomock.Call { 800 mr.mock.ctrl.T.Helper() 801 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartContractWarmUp", reflect.TypeOf((*MockBlockChain)(nil).StartContractWarmUp), arg0, arg1) 802 } 803 804 // StartStateMigration mocks base method. 805 func (m *MockBlockChain) StartStateMigration(arg0 uint64, arg1 common.Hash) error { 806 m.ctrl.T.Helper() 807 ret := m.ctrl.Call(m, "StartStateMigration", arg0, arg1) 808 ret0, _ := ret[0].(error) 809 return ret0 810 } 811 812 // StartStateMigration indicates an expected call of StartStateMigration. 813 func (mr *MockBlockChainMockRecorder) StartStateMigration(arg0, arg1 interface{}) *gomock.Call { 814 mr.mock.ctrl.T.Helper() 815 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartStateMigration", reflect.TypeOf((*MockBlockChain)(nil).StartStateMigration), arg0, arg1) 816 } 817 818 // StartWarmUp mocks base method. 819 func (m *MockBlockChain) StartWarmUp(arg0 uint) error { 820 m.ctrl.T.Helper() 821 ret := m.ctrl.Call(m, "StartWarmUp", arg0) 822 ret0, _ := ret[0].(error) 823 return ret0 824 } 825 826 // StartWarmUp indicates an expected call of StartWarmUp. 827 func (mr *MockBlockChainMockRecorder) StartWarmUp(arg0 interface{}) *gomock.Call { 828 mr.mock.ctrl.T.Helper() 829 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWarmUp", reflect.TypeOf((*MockBlockChain)(nil).StartWarmUp), arg0) 830 } 831 832 // State mocks base method. 833 func (m *MockBlockChain) State() (*state.StateDB, error) { 834 m.ctrl.T.Helper() 835 ret := m.ctrl.Call(m, "State") 836 ret0, _ := ret[0].(*state.StateDB) 837 ret1, _ := ret[1].(error) 838 return ret0, ret1 839 } 840 841 // State indicates an expected call of State. 842 func (mr *MockBlockChainMockRecorder) State() *gomock.Call { 843 mr.mock.ctrl.T.Helper() 844 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "State", reflect.TypeOf((*MockBlockChain)(nil).State)) 845 } 846 847 // StateAt mocks base method. 848 func (m *MockBlockChain) StateAt(arg0 common.Hash) (*state.StateDB, error) { 849 m.ctrl.T.Helper() 850 ret := m.ctrl.Call(m, "StateAt", arg0) 851 ret0, _ := ret[0].(*state.StateDB) 852 ret1, _ := ret[1].(error) 853 return ret0, ret1 854 } 855 856 // StateAt indicates an expected call of StateAt. 857 func (mr *MockBlockChainMockRecorder) StateAt(arg0 interface{}) *gomock.Call { 858 mr.mock.ctrl.T.Helper() 859 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateAt", reflect.TypeOf((*MockBlockChain)(nil).StateAt), arg0) 860 } 861 862 // StateAtWithGCLock mocks base method. 863 func (m *MockBlockChain) StateAtWithGCLock(arg0 common.Hash) (*state.StateDB, error) { 864 m.ctrl.T.Helper() 865 ret := m.ctrl.Call(m, "StateAtWithGCLock", arg0) 866 ret0, _ := ret[0].(*state.StateDB) 867 ret1, _ := ret[1].(error) 868 return ret0, ret1 869 } 870 871 // StateAtWithGCLock indicates an expected call of StateAtWithGCLock. 872 func (mr *MockBlockChainMockRecorder) StateAtWithGCLock(arg0 interface{}) *gomock.Call { 873 mr.mock.ctrl.T.Helper() 874 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateAtWithGCLock", reflect.TypeOf((*MockBlockChain)(nil).StateAtWithGCLock), arg0) 875 } 876 877 // StateAtWithPersistent mocks base method. 878 func (m *MockBlockChain) StateAtWithPersistent(arg0 common.Hash) (*state.StateDB, error) { 879 m.ctrl.T.Helper() 880 ret := m.ctrl.Call(m, "StateAtWithPersistent", arg0) 881 ret0, _ := ret[0].(*state.StateDB) 882 ret1, _ := ret[1].(error) 883 return ret0, ret1 884 } 885 886 // StateAtWithPersistent indicates an expected call of StateAtWithPersistent. 887 func (mr *MockBlockChainMockRecorder) StateAtWithPersistent(arg0 interface{}) *gomock.Call { 888 mr.mock.ctrl.T.Helper() 889 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateAtWithPersistent", reflect.TypeOf((*MockBlockChain)(nil).StateAtWithPersistent), arg0) 890 } 891 892 // StateCache mocks base method. 893 func (m *MockBlockChain) StateCache() state.Database { 894 m.ctrl.T.Helper() 895 ret := m.ctrl.Call(m, "StateCache") 896 ret0, _ := ret[0].(state.Database) 897 return ret0 898 } 899 900 // StateCache indicates an expected call of StateCache. 901 func (mr *MockBlockChainMockRecorder) StateCache() *gomock.Call { 902 mr.mock.ctrl.T.Helper() 903 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateCache", reflect.TypeOf((*MockBlockChain)(nil).StateCache)) 904 } 905 906 // StateMigrationStatus mocks base method. 907 func (m *MockBlockChain) StateMigrationStatus() (bool, uint64, int, int, int, float64, error) { 908 m.ctrl.T.Helper() 909 ret := m.ctrl.Call(m, "StateMigrationStatus") 910 ret0, _ := ret[0].(bool) 911 ret1, _ := ret[1].(uint64) 912 ret2, _ := ret[2].(int) 913 ret3, _ := ret[3].(int) 914 ret4, _ := ret[4].(int) 915 ret5, _ := ret[5].(float64) 916 ret6, _ := ret[6].(error) 917 return ret0, ret1, ret2, ret3, ret4, ret5, ret6 918 } 919 920 // StateMigrationStatus indicates an expected call of StateMigrationStatus. 921 func (mr *MockBlockChainMockRecorder) StateMigrationStatus() *gomock.Call { 922 mr.mock.ctrl.T.Helper() 923 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMigrationStatus", reflect.TypeOf((*MockBlockChain)(nil).StateMigrationStatus)) 924 } 925 926 // Stop mocks base method. 927 func (m *MockBlockChain) Stop() { 928 m.ctrl.T.Helper() 929 m.ctrl.Call(m, "Stop") 930 } 931 932 // Stop indicates an expected call of Stop. 933 func (mr *MockBlockChainMockRecorder) Stop() *gomock.Call { 934 mr.mock.ctrl.T.Helper() 935 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBlockChain)(nil).Stop)) 936 } 937 938 // StopStateMigration mocks base method. 939 func (m *MockBlockChain) StopStateMigration() error { 940 m.ctrl.T.Helper() 941 ret := m.ctrl.Call(m, "StopStateMigration") 942 ret0, _ := ret[0].(error) 943 return ret0 944 } 945 946 // StopStateMigration indicates an expected call of StopStateMigration. 947 func (mr *MockBlockChainMockRecorder) StopStateMigration() *gomock.Call { 948 mr.mock.ctrl.T.Helper() 949 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopStateMigration", reflect.TypeOf((*MockBlockChain)(nil).StopStateMigration)) 950 } 951 952 // StopWarmUp mocks base method. 953 func (m *MockBlockChain) StopWarmUp() error { 954 m.ctrl.T.Helper() 955 ret := m.ctrl.Call(m, "StopWarmUp") 956 ret0, _ := ret[0].(error) 957 return ret0 958 } 959 960 // StopWarmUp indicates an expected call of StopWarmUp. 961 func (mr *MockBlockChainMockRecorder) StopWarmUp() *gomock.Call { 962 mr.mock.ctrl.T.Helper() 963 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopWarmUp", reflect.TypeOf((*MockBlockChain)(nil).StopWarmUp)) 964 } 965 966 // SubscribeChainEvent mocks base method. 967 func (m *MockBlockChain) SubscribeChainEvent(arg0 chan<- blockchain.ChainEvent) event.Subscription { 968 m.ctrl.T.Helper() 969 ret := m.ctrl.Call(m, "SubscribeChainEvent", arg0) 970 ret0, _ := ret[0].(event.Subscription) 971 return ret0 972 } 973 974 // SubscribeChainEvent indicates an expected call of SubscribeChainEvent. 975 func (mr *MockBlockChainMockRecorder) SubscribeChainEvent(arg0 interface{}) *gomock.Call { 976 mr.mock.ctrl.T.Helper() 977 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeChainEvent", reflect.TypeOf((*MockBlockChain)(nil).SubscribeChainEvent), arg0) 978 } 979 980 // SubscribeChainHeadEvent mocks base method. 981 func (m *MockBlockChain) SubscribeChainHeadEvent(arg0 chan<- blockchain.ChainHeadEvent) event.Subscription { 982 m.ctrl.T.Helper() 983 ret := m.ctrl.Call(m, "SubscribeChainHeadEvent", arg0) 984 ret0, _ := ret[0].(event.Subscription) 985 return ret0 986 } 987 988 // SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent. 989 func (mr *MockBlockChainMockRecorder) SubscribeChainHeadEvent(arg0 interface{}) *gomock.Call { 990 mr.mock.ctrl.T.Helper() 991 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeChainHeadEvent", reflect.TypeOf((*MockBlockChain)(nil).SubscribeChainHeadEvent), arg0) 992 } 993 994 // SubscribeChainSideEvent mocks base method. 995 func (m *MockBlockChain) SubscribeChainSideEvent(arg0 chan<- blockchain.ChainSideEvent) event.Subscription { 996 m.ctrl.T.Helper() 997 ret := m.ctrl.Call(m, "SubscribeChainSideEvent", arg0) 998 ret0, _ := ret[0].(event.Subscription) 999 return ret0 1000 } 1001 1002 // SubscribeChainSideEvent indicates an expected call of SubscribeChainSideEvent. 1003 func (mr *MockBlockChainMockRecorder) SubscribeChainSideEvent(arg0 interface{}) *gomock.Call { 1004 mr.mock.ctrl.T.Helper() 1005 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeChainSideEvent", reflect.TypeOf((*MockBlockChain)(nil).SubscribeChainSideEvent), arg0) 1006 } 1007 1008 // SubscribeLogsEvent mocks base method. 1009 func (m *MockBlockChain) SubscribeLogsEvent(arg0 chan<- []*types.Log) event.Subscription { 1010 m.ctrl.T.Helper() 1011 ret := m.ctrl.Call(m, "SubscribeLogsEvent", arg0) 1012 ret0, _ := ret[0].(event.Subscription) 1013 return ret0 1014 } 1015 1016 // SubscribeLogsEvent indicates an expected call of SubscribeLogsEvent. 1017 func (mr *MockBlockChainMockRecorder) SubscribeLogsEvent(arg0 interface{}) *gomock.Call { 1018 mr.mock.ctrl.T.Helper() 1019 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeLogsEvent", reflect.TypeOf((*MockBlockChain)(nil).SubscribeLogsEvent), arg0) 1020 } 1021 1022 // SubscribeRemovedLogsEvent mocks base method. 1023 func (m *MockBlockChain) SubscribeRemovedLogsEvent(arg0 chan<- blockchain.RemovedLogsEvent) event.Subscription { 1024 m.ctrl.T.Helper() 1025 ret := m.ctrl.Call(m, "SubscribeRemovedLogsEvent", arg0) 1026 ret0, _ := ret[0].(event.Subscription) 1027 return ret0 1028 } 1029 1030 // SubscribeRemovedLogsEvent indicates an expected call of SubscribeRemovedLogsEvent. 1031 func (mr *MockBlockChainMockRecorder) SubscribeRemovedLogsEvent(arg0 interface{}) *gomock.Call { 1032 mr.mock.ctrl.T.Helper() 1033 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeRemovedLogsEvent", reflect.TypeOf((*MockBlockChain)(nil).SubscribeRemovedLogsEvent), arg0) 1034 } 1035 1036 // TrieNode mocks base method. 1037 func (m *MockBlockChain) TrieNode(arg0 common.Hash) ([]byte, error) { 1038 m.ctrl.T.Helper() 1039 ret := m.ctrl.Call(m, "TrieNode", arg0) 1040 ret0, _ := ret[0].([]byte) 1041 ret1, _ := ret[1].(error) 1042 return ret0, ret1 1043 } 1044 1045 // TrieNode indicates an expected call of TrieNode. 1046 func (mr *MockBlockChainMockRecorder) TrieNode(arg0 interface{}) *gomock.Call { 1047 mr.mock.ctrl.T.Helper() 1048 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TrieNode", reflect.TypeOf((*MockBlockChain)(nil).TrieNode), arg0) 1049 } 1050 1051 // Validator mocks base method. 1052 func (m *MockBlockChain) Validator() blockchain.Validator { 1053 m.ctrl.T.Helper() 1054 ret := m.ctrl.Call(m, "Validator") 1055 ret0, _ := ret[0].(blockchain.Validator) 1056 return ret0 1057 } 1058 1059 // Validator indicates an expected call of Validator. 1060 func (mr *MockBlockChainMockRecorder) Validator() *gomock.Call { 1061 mr.mock.ctrl.T.Helper() 1062 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validator", reflect.TypeOf((*MockBlockChain)(nil).Validator)) 1063 } 1064 1065 // WriteBlockWithState mocks base method. 1066 func (m *MockBlockChain) WriteBlockWithState(arg0 *types.Block, arg1 []*types.Receipt, arg2 *state.StateDB) (blockchain.WriteResult, error) { 1067 m.ctrl.T.Helper() 1068 ret := m.ctrl.Call(m, "WriteBlockWithState", arg0, arg1, arg2) 1069 ret0, _ := ret[0].(blockchain.WriteResult) 1070 ret1, _ := ret[1].(error) 1071 return ret0, ret1 1072 } 1073 1074 // WriteBlockWithState indicates an expected call of WriteBlockWithState. 1075 func (mr *MockBlockChainMockRecorder) WriteBlockWithState(arg0, arg1, arg2 interface{}) *gomock.Call { 1076 mr.mock.ctrl.T.Helper() 1077 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBlockWithState", reflect.TypeOf((*MockBlockChain)(nil).WriteBlockWithState), arg0, arg1, arg2) 1078 }