class MempoolMap extends SparkzLogging
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MempoolMap
- SparkzLogging
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MempoolMap(accountStateReaderProvider: AccountStateReaderProvider, baseStateReaderProvider: BaseStateReaderProvider, mempoolSettings: AccountMempoolSettings)
Type Members
- class TransactionsByPriceAndNonce extends Iterable[AccountTransaction[Proposition, Proof[Proposition]]]
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
- def add(ethTransaction: AccountTransaction[Proposition, Proof[Proposition]]): Try[(MempoolMap, Iterable[AccountTransaction[Proposition, Proof[Proposition]]])]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canPayHigherFee(newTx: AccountTransaction[Proposition, Proof[Proposition]], oldTx: AccountTransaction[Proposition, Proof[Proposition]]): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def contains(txId: ModifierId): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def getAccountNonce(account: Proposition): Option[BigInteger]
- def getAccountSlots(account: Proposition): Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getMempoolSizeInSlots: Int
- def getNonExecSubpoolSizeInSlots: Int
- def getTransaction(txId: ModifierId): Option[AccountTransaction[Proposition, Proof[Proposition]]]
-
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
- def mempoolTransactions(executable: Boolean): Iterable[ModifierId]
- def mempoolTransactionsMap(executable: Boolean): TrieMap[Address, SortedMap[BigInteger, EthereumTransactionView]]
- def mempoolTransactionsMapFrom(executable: Boolean, fromAddress: Address): SortedMap[BigInteger, EthereumTransactionView]
- def mempoolTransactionsMapInspect(executable: Boolean): TrieMap[Address, SortedMap[BigInteger, String]]
-
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()
- def removeFromMempool(ethTransaction: AccountTransaction[Proposition, Proof[Proposition]]): Try[MempoolMap]
- def size: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
takeExecutableTxs(forcedTx: Iterable[AccountTransaction[Proposition, Proof[Proposition]]] = Seq()): TransactionsByPriceAndNonce
Returns executable transactions sorted by gas tip (descending) and nonce.
Returns executable transactions sorted by gas tip (descending) and nonce. The ordering is performed in a semi-lazy way.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateMemPool(rejectedBlocks: Seq[AccountBlock], appliedBlocks: Seq[AccountBlock]): Iterable[AccountTransaction[Proposition, Proof[Proposition]]]
- rejectedBlocks
list of blocks to be removed
- appliedBlocks
list of blocks to be applied
- returns
list of new executable transactions. They can be transactions that were previous part of the active chain and now were removed from the blocks and readded to the mempool or they can be not executable transactions already in the mempool that were promoted to executable
- def values: Iterable[AccountTransaction[Proposition, Proof[Proposition]]]
-
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