abstract class AbstractForgeMessageBuilder[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H]] extends SparkzLogging
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- AbstractForgeMessageBuilder
- SparkzLogging
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new AbstractForgeMessageBuilder(mainchainSynchronizer: MainchainSynchronizer, companion: DynamicTypedSerializer[TX, TransactionSerializer[TX]], params: NetworkParams, allowNoWebsocketConnectionInRegtest: Boolean)
Type Members
- case class BranchPointInfo(branchPointId: ModifierId, referenceDataToInclude: Seq[MainchainHeaderHash], headersToInclude: Seq[MainchainHeaderHash]) extends Product with Serializable
- abstract type FPI <: AbstractFeePaymentsInfo
- type ForgeMessageType = GetDataFromCurrentView[HIS, MS, VL, MP, ForgeResult]
- abstract type HIS <: AbstractHistory[TX, H, PM, FPI, HSTOR, HIS]
- abstract type HSTOR <: AbstractHistoryStorage[PM, FPI, HSTOR]
- abstract type MP <: MemoryPool[TX, MP]
- abstract type MS <: MinimalState[PM, MS]
- abstract type VL <: AbstractWallet[TX, PM, VL]
- type View = CurrentView[HIS, MS, VL, MP]
Abstract Value Members
- abstract def collectTransactionsFromMemPool(nodeView: View, blockSizeIn: Int, mainchainBlockReferenceData: Seq[MainchainBlockReferenceData], withdrawalEpochInfo: WithdrawalEpochInfo, timestamp: Long, forcedTx: Iterable[TX]): Iterable[TX]
- abstract def createNewBlock(nodeView: View, branchPointInfo: BranchPointInfo, isWithdrawalEpochLastBlock: Boolean, parentBlockId: BlockId, timestamp: Timestamp, mainchainReferenceData: Seq[MainchainBlockReferenceData], sidechainTransactions: Iterable[TX], mainchainHeaders: Seq[MainchainHeader], ommers: Seq[Ommer[H]], blockSignPrivateKey: PrivateKey25519, forgingStakeInfo: ForgingStakeInfo, vrfProof: VrfProof, vrfOutput: VrfOutput, forgingStakeInfoMerklePath: MerklePath, companion: DynamicTypedSerializer[TX, TransactionSerializer[TX]], inputBlockSize: Int, signatureOption: Option[Signature25519] = None, isPending: Boolean = false): Try[SidechainBlockBase[TX, _ <: SidechainBlockHeaderBase]]
- abstract def getForgingStakeMerklePathInfo(nextConsensusEpochNumber: ConsensusEpochNumber, wallet: VL, history: HIS, state: MS, branchPointInfo: BranchPointInfo, nextBlockTimestamp: Long): Seq[ForgingStakeMerklePathInfo]
- abstract def getMaxBlockOverheadSize(): Int
- abstract def getMaxBlockSize(): Int
- abstract def getOmmersSize(ommers: Seq[Ommer[H]]): Int
- abstract def precalculateBlockHeaderSize(parentId: ModifierId, timestamp: Long, forgingStakeMerklePathInfo: ForgingStakeMerklePathInfo, vrfProof: VrfProof): Int
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildForgeMessageForEpochAndSlot(consensusEpochNumber: ConsensusEpochNumber, consensusSlotNumber: ConsensusSlotNumber, mcRefDataRetrievalTimeout: Timeout, forcedTx: Iterable[TX]): ForgeMessageType
-
def
checkNextEpochAndSlot(parentBlockTimestamp: Long, currentTipBlockTimestamp: Long, nextEpochNumber: ConsensusEpochNumber, nextSlotNumber: ConsensusSlotNumber): Option[ForgeFailure]
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
forgeBlock(nodeView: View, timestamp: Long, branchPointInfo: BranchPointInfo, forgingStakeMerklePathInfo: ForgingStakeMerklePathInfo, blockSignPrivateKey: PrivateKey25519, vrfProof: VrfProof, vrfOutput: VrfOutput, mcRefDataRetrievalTimeout: Timeout, forcedTx: Iterable[TX], isPending: Boolean = false): ForgeResult
- Attributes
- protected
-
def
getBranchPointInfo(history: HIS): Try[BranchPointInfo]
- Attributes
- protected
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getSecretsAndProof(wallet: VL, vrfMessage: VrfMessage, forgingStakeMerklePathInfo: ForgingStakeMerklePathInfo): Option[(ForgingStakeMerklePathInfo, PrivateKey25519, VrfProof, VrfOutput)]
- Attributes
- protected
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- SparkzLogging
- Annotations
- @inline()
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val params: NetworkParams
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryToForgeNextBlock(nextConsensusEpochNumber: ConsensusEpochNumber, nextConsensusSlotNumber: ConsensusSlotNumber, mcRefDataRetrievalTimeout: Timeout, forcedTx: Iterable[TX])(nodeView: View): ForgeResult
- Attributes
- protected
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated