public class SpvImp extends Object
| 构造器和说明 |
|---|
SpvImp(ILogger logger,
MychainClient client) |
public SpvImp(ILogger logger, MychainClient client)
public boolean init(VerifiedBlock trustedBlock, AbstractSpvProxy proxy, int maxBlockAmount, int intervalMs)
public boolean init(VerifiedBlock trustedBlock, AbstractSpvProxy proxy, int maxBlockAmount, int intervalMs, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean stop()
public long verifyBlocks(long startNum,
List<BlockHeaderInfo> headerInfos)
public long verifyBlocks(long startNum,
List<BlockHeaderInfo> headerInfos,
BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public void watchTopic(String topic)
public void watchIdentity(Hash id)
public boolean verifyAccount(Account account, BigInteger blockNum)
public boolean verifyAccount(Account account, BigInteger blockNum, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean verifyContract(Contract contract, BigInteger blockNum)
public boolean verifyContract(Contract contract, BigInteger blockNum, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean verifyTransaction(Hash txHash)
public boolean verifyTransaction(Hash txHash, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean verifyReceipt(Hash txHash, TransactionReceipt receipt)
public boolean verifyReceipt(Hash txHash, TransactionReceipt receipt, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean verifyAccount(WorldStateProof proof, Account account, BigInteger blockNum)
public boolean verifyContract(WorldStateProof proof, Contract contract, BigInteger blockNum)
public boolean verifyTransaction(TransactionProof proof, Hash txHash)
public boolean verifyReceipt(ReceiptProof proof, TransactionReceipt receipt)
public boolean verifyBlockHeader(VerifiedBlock block, BlockHeaderInfo info)
Copyright © 2022. All rights reserved.