Class CommittedActionContext
Inheritance
CommittedActionContext
Inherited Members
System.Object.GetType()
System.Object.ToString()
Assembly: Libplanet.Action.dll
Syntax
public class CommittedActionContext : ICommittedActionContext
Constructors
|
Improve this Doc
View Source
CommittedActionContext(IActionContext)
Declaration
public CommittedActionContext(IActionContext context)
Parameters
|
Improve this Doc
View Source
CommittedActionContext(Address, Nullable<TxId>, Address, Int64, Int32, HashDigest<SHA256>, Int32, Boolean)
Declaration
public CommittedActionContext(Address signer, TxId? txId, Address miner, long blockIndex, int blockProtocolVersion, HashDigest<SHA256> previousState, int randomSeed, bool blockAction)
Parameters
Properties
|
Improve this Doc
View Source
BlockAction
Whether this action is executed as a block action.
false if it belongs to a transaction.
Declaration
[Pure]
public bool BlockAction { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
BlockIndex
Declaration
[Pure]
public long BlockIndex { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
BlockProtocolVersion
Declaration
[Pure]
public int BlockProtocolVersion { get; }
Property Value
|
Improve this Doc
View Source
Miner
Declaration
[Pure]
public Address Miner { get; }
Property Value
|
Improve this Doc
View Source
PreviousState
The state root hash of the previous state.
Declaration
[Pure]
public HashDigest<SHA256> PreviousState { get; }
Property Value
|
Improve this Doc
View Source
RandomSeed
The random seed to use for pseudorandom number generator. This value
is determined by various block properties, the signature of the transaction
containing the action to execute, and index of the action to execute, which is
deterministic so that every node can replay the same action and
then reproduce the same result, while neither a single block miner
nor a single transaction signer can predict the result and cheat.
Declaration
public int RandomSeed { get; }
Property Value
See Also
|
Improve this Doc
View Source
Signer
Declaration
[Pure]
public Address Signer { get; }
Property Value
|
Improve this Doc
View Source
TxId
Declaration
[Pure]
public TxId? TxId { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetRandom()
Declaration
[Pure]
public IRandom GetRandom()
Returns
Implements