Coverage Summary for Class: MinerServer (co.rsk.mine)

Class
MinerServer$MockitoMock$1642695417
MinerServer$MockitoMock$1642695417$auxiliary$rF2cG5co
MinerServer$MockitoMock$1642695417$auxiliary$sa5sFtad
Total


1 /* 2  * This file is part of RskJ 3  * Copyright (C) 2017 RSK Labs Ltd. 4  * 5  * This program is free software: you can redistribute it and/or modify 6  * it under the terms of the GNU Lesser General Public License as published by 7  * the Free Software Foundation, either version 3 of the License, or 8  * (at your option) any later version. 9  * 10  * This program is distributed in the hope that it will be useful, 11  * but WITHOUT ANY WARRANTY; without even the implied warranty of 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13  * GNU Lesser General Public License for more details. 14  * 15  * You should have received a copy of the GNU Lesser General Public License 16  * along with this program. If not, see <http://www.gnu.org/licenses/>. 17  */ 18  19 package co.rsk.mine; 20  21 import co.rsk.bitcoinj.core.BtcBlock; 22 import co.rsk.bitcoinj.core.BtcTransaction; 23 import co.rsk.config.InternalService; 24 import co.rsk.core.RskAddress; 25 import org.ethereum.core.Block; 26  27 import javax.annotation.Nonnull; 28 import java.util.List; 29 import java.util.Optional; 30  31  32 public interface MinerServer extends InternalService { 33  boolean isRunning(); 34  35  SubmitBlockResult submitBitcoinBlockPartialMerkle( 36  String blockHashForMergedMining, 37  BtcBlock blockWithOnlyHeader, 38  BtcTransaction coinbase, 39  List<String> merkleHashes, 40  int blockTxnCount 41  ); 42  43  SubmitBlockResult submitBitcoinBlockTransactions( 44  String blockHashForMergedMining, 45  BtcBlock blockWithOnlyHeader, 46  BtcTransaction coinbase, 47  List<String> txHashes 48  ); 49  50  SubmitBlockResult submitBitcoinBlock(String blockHashForMergedMining, BtcBlock bitcoinMergedMiningBlock); 51  52  RskAddress getCoinbaseAddress(); 53  54  MinerWork getWork(); 55  56  void buildBlockToMine(@Nonnull Block blockToMineOnTopOf, boolean createCompetitiveBlock); 57  58  void buildBlockToMine(boolean createCompetitiveBlock); 59  60  void setExtraData(byte[] extraData); 61  62  byte[] getExtraData(); 63  64  Optional<Block> getLatestBlock(); 65 }