• Overview
  • Design
  • API Reference
  • Changelog
  • Contribute
Show / Hide Table of Contents
  • Libplanet
    • Address
    • AddressExtension
    • ByteUtil
    • Hashcash
    • Hashcash.Stamp
    • HashDigest<T>
    • HashDigestExtension
    • Nonce
  • Libplanet.Action
    • AccountStateGetter
    • ActionEvaluation
    • ActionTypeAttribute
    • IAccountStateDelta
    • IAction
    • IActionContext
    • IRandom
    • MissingActionTypeException
    • PolymorphicAction<T>
    • RandomExtension
    • UnexpectedlyTerminatedActionException
  • Libplanet.Blockchain
    • BlockChain<T>
    • BlockChain<T>.TipChangedEventArgs
    • IncompleteBlockStatesException
    • MineBlockEventArgs<T>
  • Libplanet.Blockchain.Policies
    • BlockPolicy<T>
    • IBlockPolicy<T>
  • Libplanet.Blocks
    • Block<T>
    • InvalidBlockDifficultyException
    • InvalidBlockException
    • InvalidBlockHashException
    • InvalidBlockIndexException
    • InvalidBlockNonceException
    • InvalidBlockPreviousHashException
    • InvalidBlockTimestampException
    • InvalidGenesisBlockException
  • Libplanet.Crypto
    • CryptoConfig
    • DefaultCryptoBackend
    • ICryptoBackend
    • InvalidCiphertextException
    • PrivateKey
    • PublicKey
    • SymmetricKey
  • Libplanet.KeyStore
    • IncorrectPassphraseException
    • InvalidKeyJsonException
    • KeyJsonException
    • MismatchedAddressException
    • ProtectedPrivateKey
    • UnsupportedKeyJsonException
  • Libplanet.KeyStore.Ciphers
    • Aes128Ctr
    • ICipher
  • Libplanet.KeyStore.Kdfs
    • IKdf
    • Pbkdf2<T>
    • Scrypt
  • Libplanet.Net
    • ActionExecutionState
    • BlockDownloadState
    • BoundPeer
    • DifferentAppProtocolVersionException
    • DifferentProtocolVersionEventArgs
    • IceServer
    • IceServerException
    • InvalidMessageException
    • NoSwarmContextException
    • Peer
    • PeerNotFoundException
    • PeerState
    • PreloadBlockDownloadFailEventArgs
    • PreloadState
    • StateDownloadState
    • Swarm<T>
    • SwarmException
  • Libplanet.Net.Protocols
    • PeerDiscoveryException
  • Libplanet.Serialization
    • SerializationInfoExtension
  • Libplanet.Store
    • BaseIndex<TKey, TVal>
    • BaseStore
    • BlockSet<T>
    • ChainIdNotFoundException
    • DefaultStore
    • IStore
    • StoreExtension
    • TransactionSet<T>
  • Libplanet.Tx
    • InvalidTxException
    • InvalidTxIdException
    • InvalidTxNonceException
    • InvalidTxPublicKeyException
    • InvalidTxSignatureException
    • InvalidTxUpdatedAddressesException
    • Transaction<T>
    • TxId

Class BlockSet<T>

Inheritance
Object
BaseIndex<HashDigest<SHA256>, Block<T>>
BlockSet<T>
Inherited Members
BaseIndex<HashDigest<SHA256>, Block<T>>.Keys
BaseIndex<HashDigest<SHA256>, Block<T>>.Values
BaseIndex<HashDigest<SHA256>, Block<T>>.Count
BaseIndex<HashDigest<SHA256>, Block<T>>.IsReadOnly
BaseIndex<HashDigest<SHA256>, Block<T>>.Store
BaseIndex<HashDigest<SHA256>, Block<T>>.Item[HashDigest<SHA256>]
BaseIndex<HashDigest<SHA256>, Block<T>>.Add(HashDigest<SHA256>, Block<T>)
BaseIndex<HashDigest<SHA256>, Block<T>>.Add(KeyValuePair<HashDigest<SHA256>, Block<T>>)
BaseIndex<HashDigest<SHA256>, Block<T>>.Clear()
BaseIndex<HashDigest<SHA256>, Block<T>>.Contains(KeyValuePair<HashDigest<SHA256>, Block<T>>)
BaseIndex<HashDigest<SHA256>, Block<T>>.ContainsKey(HashDigest<SHA256>)
BaseIndex<HashDigest<SHA256>, Block<T>>.CopyTo(KeyValuePair<HashDigest<SHA256>, Block<T>>[], Int32)
BaseIndex<HashDigest<SHA256>, Block<T>>.GetEnumerator()
BaseIndex<HashDigest<SHA256>, Block<T>>.Remove(HashDigest<SHA256>)
BaseIndex<HashDigest<SHA256>, Block<T>>.Remove(KeyValuePair<HashDigest<SHA256>, Block<T>>)
BaseIndex<HashDigest<SHA256>, Block<T>>.TryGetValue(HashDigest<SHA256>, Block<T>)
Namespace: Libplanet.Store
Assembly: Libplanet.dll
Syntax
public class BlockSet<T> : BaseIndex<HashDigest<SHA256>, Block<T>> where T : IAction, new()
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

BlockSet(IStore)

Declaration
public BlockSet(IStore store)
Parameters
Type Name Description
IStore store

Properties

| Improve this Doc View Source

Count

Declaration
public override int Count { get; }
Property Value
Type Description
Int32
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Count
| Improve this Doc View Source

IsReadOnly

Declaration
public override bool IsReadOnly { get; }
Property Value
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.IsReadOnly
| Improve this Doc View Source

Item[HashDigest<SHA256>]

Declaration
public override Block<T> this[HashDigest<SHA256> key] { get; set; }
Parameters
Type Name Description
HashDigest<SHA256> key
Property Value
Type Description
Block<T>
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Item[Libplanet.HashDigest<SHA256>]
| Improve this Doc View Source

Keys

Declaration
public override ICollection<HashDigest<SHA256>> Keys { get; }
Property Value
Type Description
ICollection<HashDigest<SHA256>>
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Keys
| Improve this Doc View Source

Values

Declaration
public override ICollection<Block<T>> Values { get; }
Property Value
Type Description
ICollection<Block<T>>
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Values

Methods

| Improve this Doc View Source

Contains(KeyValuePair<HashDigest<SHA256>, Block<T>>)

Declaration
public override bool Contains(KeyValuePair<HashDigest<SHA256>, Block<T>> item)
Parameters
Type Name Description
KeyValuePair<HashDigest<SHA256>, Block<T>> item
Returns
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Contains(KeyValuePair<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>)
| Improve this Doc View Source

ContainsKey(HashDigest<SHA256>)

Declaration
public override bool ContainsKey(HashDigest<SHA256> key)
Parameters
Type Name Description
HashDigest<SHA256> key
Returns
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.ContainsKey(Libplanet.HashDigest<SHA256>)
| Improve this Doc View Source

Remove(HashDigest<SHA256>)

Declaration
public override bool Remove(HashDigest<SHA256> key)
Parameters
Type Name Description
HashDigest<SHA256> key
Returns
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Remove(Libplanet.HashDigest<SHA256>)
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium