package
1.3.1
Repository: https://github.com/threefoldtech/rivine.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package explorer provides a glimpse into what the network currently looks like.
Package gateway connects a Sia node to the Sia flood network.
No description provided by the author
No description provided by the author

# Functions

CalculateWalletTransactionID is a helper function for determining the id of a wallet transaction.
InitialSeedFromMnemonic converts the mnemonic into the initial seed, also called entropy, that was used to create the given mnemonic initially.
NewChainStats initializes a new `ChainStats` object.
NewDaemonConstants returns the Deamon's public constants, using the blockchain (network) info and constants used internally as input.
NewMnemonic converts a wallet seed to a mnemonic, a human friendly string.
ReadNegotiationAcceptance reads an accept/reject response from r (usually a net.Conn).
WriteNegotiationAcceptance writes the 'accept' response to w (usually a net.Conn).
WriteNegotiationRejection will write a rejection response to w (usually a net.Conn) and return the input error.
WriteNegotiationStop writes the 'stop' response to w (usually a net.Conn).

# Constants

AcceptResponse is the response given to an RPC call to indicate acceptance, i.e.
BlockCreatorDir is the name of the directory that is used to store the BlockCreator's persistent data.
ConsensusDir is the name of the directory used for all of the consensus persistence files.
DiffApply indicates that a diff is being applied to the consensus set.
DiffRevert indicates that a diff is being reverted from the consensus set.
ExplorerDir is the name of the directory that is typically used for the explorer.
GatewayDir is the name of the directory used to store the gateway's persistent data.
MaxEncodedNetAddressLength is the maximum length of a NetAddress encoded with the encode package.
NegotiateDownloadTime defines the amount of time that the renter and host have to negotiate a download request batch.
NegotiateMaxErrorSize indicates the maximum number of bytes that can be used to encode an error being sent during negotiation.
NegotiateMaxSiaPubkeySize defines the maximum size that a SiaPubkey is allowed to be when being sent over the wire during negotiation.
NegotiateMaxTransactionSignatureSize defines the maximum size that a transaction signature is allowed to be when being sent over the wire during negotiation.
NegotiateMaxTransactionSignaturesSize defines the maximum size that a transaction signature slice is allowed to be when being sent over the wire during negotiation.
PublicKeysPerSeed define the number of public keys that get pregenerated for a seed at startup when searching for balances in the blockchain.
SeedChecksumSize is the number of bytes that are used to checksum addresses to prevent accidental spending.
StopResponse is the response given to an RPC call to indicate graceful termination, i.e.
StorageManagerDir is standard name used for the directory that contains all of the storage manager files.
TransactionPoolDir is the name of the directory that is used to store the transaction pool's persistent data.
TransactionPoolMaxRebroadcasts is the maximum amount of times a transaction will get broadcast again.
TransactionPoolRebroadcastDelay is the amount of blocks we wait for a transaction in the transaction pool to be broadcasted again, if it is not included in a block by then.
WalletDir is the directory that contains the wallet persistence.
WalletSeedPreloadDepth is the number of addresses that get automatically loaded by the wallet at startup.

# Variables

ConsensusChangeBeginning is a special consensus change id that tells the consensus set to provide all consensus changes starting from the very first diff, which includes the genesis block diff.
ConsensusChangeRecent is a special consensus change id that tells the consensus set to provide the most recent consensus change, instead of starting from a specific value (which may not be known to the caller).
ErrBadEncryptionKey is returned if the incorrect encryption key to a file is provided.
ErrBlockKnown is an error indicating that a block is already in the database.
ErrBlockUnsolved indicates that a block did not meet the required POS target.
ErrDuplicateTransactionSet is the error that gets returned if a duplicate transaction set is given to the transaction pool.
ErrEncryptedWallet is returned in case the wallet is encrypted, preventing it from being used for plain purposes.
ErrIncompleteTransactions is returned if the wallet has incomplete transactions being built that are using all of the current outputs, and therefore the wallet is unable to spend money despite it not technically being 'unconfirmed' yet.
ErrInvalidArbPrefix is the error that gets returned if a transaction is submitted to the transaction pool which contains a prefix that is not recognized.
ErrInvalidConsensusChangeID indicates that ConsensusSetPersistSubscribe was called with a consensus change id that is not recognized.
ErrLargeTransaction is the error that gets returned if a transaction provided to the transaction pool is larger than what is allowed by the IsStandard rules.
ErrLargeTransactionSet is the error that gets returned if a transaction set given to the transaction pool is larger than the limit placed by the IsStandard rules of the transaction pool.
ErrLockedWallet is returned when an action cannot be performed due to the wallet being locked.
ErrLowBalance is returned if the wallet does not have enough funds to complete the desired action.
ErrNonExtendingBlock indicates that a block is valid but does not result in a fork that is the heaviest known fork - the consensus set has not changed as a result of seeing the block.
ErrStopResponse is the error returned by ReadNegotiationAcceptance when it reads the StopResponse string.
ErrTransactionNotFound is returned in case no transaction could be found in the transaction pool for a specific ID.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

The BlockCreator interface provides access to BlockCreator features.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A TransactionPool manages unconfirmed transactions.
A TransactionPoolSubscriber receives updates about the confirmed and unconfirmed set from the transaction pool.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
A NetAddress contains the information needed to contact a peer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author