# Functions
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
Exp returns a big.Float representation of exp(z).
No description provided by the author
Log returns the natural logarithm of x.
Log2 returns the binary logarithm of x.
Pow returns a big.Float representation of z**w.
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
CalcBlockRewardNanos computes the block reward for a given block height.
No description provided by the author
CalcNextDifficultyTarget computes the difficulty target expected of the next block.
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
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
Note this deletes the follow for the follower *and* followed since a mapping should exist for each.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Note this deletes the like for the user *and* the liked post since a mapping should exist for each.
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
Note this deletes the message for the sender *and* receiver since a mapping should exist for each.
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
Note this deletes the repost for the user *and* the reposted post since a mapping should exist for each.
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
Specifying minTimestampNanos gives you all posts after minTimestampNanos Pass minTimestampNanos = 0 && maxTimestampNanos = 0 if you want all posts Setting maxTimestampNanos = 0, will default maxTimestampNanos to the current time.
DBGetAllPostsByTstamp returns all the posts in the db with the newest posts first.
DBGetAllProfilesByCoinValue returns all the profiles in the db with the highest coin values first.
DbGetBalanceEntriesHodlingYou fetches the BalanceEntries that hold the pkid passed in.
DbGetBalanceEntriesHodlingYou fetchs the BalanceEntries that the passed in pkid holds.
DbGetBalanceEntry returns a balance entry from the database.
No description provided by the author
No description provided by the author
No description provided by the author
DBGetCommentPostHashesForParentStakeID returns all the comments, which are indexed by their stake ID rather than by their timestamp.
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
This function returns a list of DiamondEntrys given by giverPKID to receiverPKID that contain post hashes.
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
No description provided by the author
No description provided by the author
No description provided by the author
Get NFT bid Entries *from the DB*.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DBGetNFTEntriesForPKID gets NFT Entries *from the DB*.
DBGetNFTEntriesForPostHash gets NFT Entries *from the DB*.
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
startPrefix specifies a point in the DB at which the iteration should start.
No description provided by the author
DBGetPaginatedProfilesByDeSoLocked returns up to 'numToFetch' profiles from the db.
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
This function returns a map of PKIDs that gave diamonds to a list of DiamondEntrys that contain post hashes.
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
DbGetTxindexFullTransactionByTxID TODO: This makes lookups inefficient when blocks are large.
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
DbGetUtxosForPubKey finds the UtxoEntry's corresponding to the public key passed in.
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
Note that this adds a mapping for the follower *and* the pub key being followed.
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
Note that this adds a mapping for the user *and* the liked post.
No description provided by the author
No description provided by the author
No description provided by the author
Note that this adds a mapping for the sender *and* the recipient.
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
Note that this adds a mapping for the user *and* the reposted post.
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
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
Diff returns a diff of both values as long as both are of the same type and are a struct, map, slice, array or string.
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
The number of hashing attempts in expectation it would take to produce the hash passed in.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindLowestHash Mine for a given number of iterations and return the lowest hash value found and its associated nonce.
No description provided by the author
No description provided by the author
The frontend passes in the apiData.
GetBadgerDbPath returns the path where we store the badgerdb data.
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
At a particular diamond level, a fixed amount of DeSo is converted into creator coins and then sent to a user.
GetDataDir gets the user data directory where we store files in a cross-platform way.
Each diamond level is worth a fixed amount of DeSo.
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
GetSingleBalanceEntryFromPublicKeys fetchs a single balance entry of a holder's creator coin.
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
InitDbWithGenesisBlock initializes the database to contain only the genesis block.
allowedHost is expected to be of the form "bitclout.com" See comments in this function for a description of these params
Note: FeaturePolicy is apparently renamed to PermissionsPolicy.
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
IsControlMessage is used by functions to determine whether a particular message is a control message.
No description provided by the author
IsRuleError returns true if the error is any of the errors specified above.
Return true if postEntry is a vanilla repost.
No description provided by the author
No description provided by the author
LogSelect is a helpful utility when developing or debugging queries.
No description provided by the author
No description provided by the author
No description provided by the author
This function attempts to make the file path provided.
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
NewBlockchain returns a new blockchain object.
No description provided by the author
TODO: Height not needed in this since it's in the header.
No description provided by the author
No description provided by the author
No description provided by the author
Create a new pool with no transactions in it.
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
NewPeer creates a new Peer object.
No description provided by the author
No description provided by the author
No description provided by the author
NewServer initializes all of the internal data structures.
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
PPrintJSON prints a JSON object but pretty.
No description provided by the author
ProofOfWorkHash is a hash function designed for computing DeSo block hashes.
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
PutUvarint encodes a uint64 into buf and returns the number of bytes written.
PutVarint encodes an int64 into buf and returns the number of bytes written.
RandInt32 returns a random 32-bit int.
RandInt64 returns a random 64-bit int.
RandomBytes returns a []byte with random values.
RandomBytesHex returns a hex string representing numBytes of entropy.
No description provided by the author
ReadMessage takes an io.Reader and de-serializes a single message from it.
ReadUvarint reads an encoded unsigned integer from r and returns it as a uint64.
ReadVarint reads an encoded signed integer from r and returns it as an int64.
No description provided by the author
No description provided by the author
No description provided by the author
SignTransactionWithDerivedKey the signature contains solution iteration, which allows us to recover signer public key from the signature.
No description provided by the author
No description provided by the author
No description provided by the author
Uvarint decodes a uint64 from buf and returns that value and the number of bytes read (> 0).
Varint decodes an int64 from buf and returns that value and the number of bytes read (> 0).
WriteMessage takes an io.Writer and serializes and writes the specified message to it.
# Constants
AddrRelayIntervalSeconds is the amount of time we wait before relaying each batch of addresses we've received recently.
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
ConfigDirAppName is the folder where we keep user data.
ConfigDirVendorName is the enclosing folder for user data.
ControlMessagesStart is used to indicate the ID value at which control messages start.
Defines keys that may exist in a transaction's ExtraData map.
Defines keys that may exist in a transaction's ExtraData map.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Key in transaction's extra data map containing the derived key used in signing the txn.
Defines keys that may exist in a transaction's ExtraData map.
Defines keys that may exist in a transaction's ExtraData map.
No description provided by the author
Defines keys that may exist in a transaction's ExtraData map.
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
This is the header version that the blockchain started with.
This version made several changes to the previous header encoding format: - The Nonce field was expanded to 64 bits - Another ExtraNonce field was added to provide *another* 64 bits of entropy, for a total of 128 bits of entropy in the header that miners can twiddle.
These constants define the various supported inventory vector types.
These constants define the various supported inventory vector types.
Key in transaction's extra map -- The presence of this key indicates that this post is a repost with a quote.
No description provided by the author
MaxAddrsPerAddrMsg is the maximum number of addresses we allow in a single addr message from a peer.
MaxBlockIndexNodes needs to allow the block index to grow large enough to accommodate multiple forks of material length while allowing us to avoid an out-of-memory issue due to a "disk-fill" attack.
MaxBlocksInFlight is the maximum number of blocks that can be requested from a peer.
Defines keys that may exist in a transaction's ExtraData map.
Define min / max possible values for GlobalParams.
MaxCreateProfileFeeNanos - Maximum value to which the create profile fee can be set.
MaxDeSoInputSizeBytes is the size required to encode an DeSoInput.
MaxDeSoOutputSizeBytes is the size required to encode an DeSoOutput.
Define min / max possible values for GlobalParams.
100MB.
Used for sanity checks for now.
MaxNetworkFeeNanosPerKBValue - Maximum value to which the maximum network fee per KB can be set.
MaxOrphansInMemory is the maximum number of orphan blocks that we're willing to keep in memory.
250MB.
The maximum number of unconnected transactions the pool will store.
The maximum number of bytes a single unconnected transaction can take up.
No description provided by the author
No description provided by the author
MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
MessagesToFetchPerCall is used to limit the number of messages to fetch when getting a user's inbox.
Min/MaxCreateNFTFeeNanos - Min/max value to which the create NFT fee can be set.
MinCreateProfileFeeNanos - Minimum value to which the create profile fee can be set.
Min/MaxMaxCopiesPerNFTNanos - Min/max value to which the create NFT fee can be set.
When exchanging Bitcoin for DeSo, we don't allow transactions to create less than this amount.
Defines keys that may exist in a transaction's ExtraData map.
MinNetworkFeeNanosPerKBValue - Minimum value to which the minimum network fee per KB can be set.
The minimum and maximum Bitcoin prices, used as a sanity-check.
MsgTypeAddr is used by peers to share addresses of nodes they're aware about with other peers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MsgTypeGetAddr is used to solicit Addr messages from peers.
No description provided by the author
MsgTypeGetHeaders is used to fetch headers from a peer.
No description provided by the author
No description provided by the author
MsgTypeHeaderBundle contains headers from 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
MsgTypeTransactionBundle contains transactions from a peer.
No description provided by the author
No description provided by the author
Sent after a peer has both sent its version message and received its peer's version message and completed the version negotiation.
The first message a peer sends.
No description provided by the author
No description provided by the author
No description provided by the author
The different network types.
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
Every operation has a type that we document here.
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
No description provided by the author
No description provided by the author
No description provided by the author
RebroadcastNodeAddrIntervalMinutes is how often we broadcast our own address to our peers.
Key in transaction's extra data map that points to a post that the current transaction is reposting.
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
Derived Keys.
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
DeSo Diamonds.
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
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
NFT Burns.
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
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
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
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
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
Global Params.
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
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
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
NFT Bids.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NFT Transfers.
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
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
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
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
NFTs.
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
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
These constants are used by the DNS seed code to pick a random last seen time.
No description provided by the author
No description provided by the author
SFFullNode is a flag used to indicate a peer is a full node.
The price of DeSo at the beginning.
These statuses are only used for Bitcoin header blocks in the BitcoinManager, not DeSo blocks.
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
Headers must always be Validated or ValidateFailed.
No description provided by the author
No description provided by the author
SyncStateFullyCurrent indicates that our header chain is current and that we've fetched all the blocks corresponding to this chain.
SyncStateNeedBlocksss indicates that our header chain is current and our block chain is current but that there are headers in our main chain for which we have not yet processed blocks.
SyncStateSyncingBlocks indicates that our header chain is current but that the block chain we have is not current yet.
SyncStateSyncingHeaders indicates that our header chain is not current.
Every 1M DeSo we sell causes the price to increase by a factor of 2.
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
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
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
No description provided by the author
No description provided by the author
Uint32Dec decrements a uint32 by one.
Uint64Dec decrements a uint64 by one.
UnconnectedTxnExpirationInterval is how long we wait before automatically removing an unconnected transaction.
Keys for a GlobalParamUpdate transaction's extra data map.
UseridLengthBytes is the number of bytes of entropy to use for a userid.
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
UTXOs can come from different sources.
TODO(DELETEME): Remove the StakeReward txn type.
# Variables
No description provided by the author
No description provided by the author
GenesisBlock defines the genesis block used for the DeSo maainnet and testnet.
BrokenNFTBidsFixBlockHeight defines the height at which the deso balance index takes effect for accepting NFT bids.
This is the public key corresponding to the BitcoinBurnAddress on mainnet.
BuyCreatorCoinAfterDeletedBalanceEntryFixBlockHeight defines a block height after which the protocol will create a new BalanceEntry when a user purchases a Creator Coin and their current BalanceEntry is deleted.
No description provided by the author
DeSoDiamondsBlockHeight defines the height at which diamonds will be given in DESO rather than in creator coin.
DeSoFounderRewardBlockHeight defines a block height where the protocol switches from paying the founder reward in the founder's own creator coin to paying in DeSo instead.
DeSoMainnetParams defines the DeSo parameters for the mainnet.
DeSoTestnetParams defines the DeSo parameters for the testnet.
In early blocks there was a bug that allowed users to claim usernames that weren't actually available.
GenesisBlock defines the genesis block used for the DeSo maainnet and testnet.
GenesisBlock defines the genesis block used for the DeSo maainnet and testnet.
GenesisBlock defines the genesis block used for the DeSo maainnet and testnet.
InitialGlobalParamsEntry to be used before ParamUpdater creates the first update.
This is used for various calculations but can be updated on the fly with a special transaction type in the event that the Bitcoin price fluctuates significantly.
"false" is used as a hack to indicate that an account should have a blue check mark.
Allow 150KB per minute in low-fee txns.
MaxBitcoinHeadersPerMsg is the maximum number of headers Bitcoin allows in a getheaders response.
MaxBlockRewardDataSizeBytes is the maximum size allowed for a BLOCK_REWARD's ExtraData field.
MaxHeadersPerMsg is the maximum numbers allowed in a GetHeaders response.
No description provided by the author
No description provided by the author
NFTTransfersBlockHeight defines the height at which NFT transfer txns, accept NFT transfer txns, NFT burn txns, and AuthorizeDerivedKey txns will be accepted.
No description provided by the author
No description provided by the author
ParamUpdaterProfileUpdateFixBlockHeight defines a block height after which the protocol uses the update profile txMeta's ProfilePublicKey when the Param Updater is creating a profile for ProfilePublicKey.
GenesisBlock defines the genesis block used for the DeSo maainnet and testnet.
Defines values that may exist in a transaction's ExtraData map.
Profile pics are Base64 encoded plus ": ; ," used in the mime type spec.
No description provided by the author
The readOnlyUtxoView will update after the number of seconds specified here OR the number of transactions specified here, whichever comes first.
No description provided by the author
SalomonFixBlockHeight defines a block height where the protocol implements two changes: (1) The protocol now prints founder reward for all buy transactions instead of just when creators reach a new all time high.
No description provided by the author
These transactions are simply here to bootstrap the profiles on the network.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateProfileFixBlockHeight defines the height at which a patch was added to prevent user from updating the profile entry for arbitrary public keys that do not have existing profile entries.
No description provided by the author
# 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
This struct is mainly used to track a user's balance of a particular creator coin.
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
Add some fields in addition to the header to aid in the selection of the best chain.
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
This struct contains all the information required to support coin buy/sell transactions on profiles.
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
DeSoBodySchema Within a post, the body typically has a particular schema defined below.
DeSoMempool is the core mempool object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeSoParams defines the full list of possible parameters for the DeSo network.
DiamondEntry stores the number of diamonds given by a sender to a post.
No description provided by the author
No description provided by the author
ExpectedResponse is a struct used to enforce timeouts on peers.
FollowEntry stores the content of a follow transaction.
No description provided by the author
No description provided by the author
No description provided by the author
Entry for a public key forbidden from signing blocks.
GetDataRequestInfo is a data structure used to keep track of which transactions we've requested from a Peer.
No description provided by the author
InvVect defines an inventory vector which is used to describe data, as specified by the Type field, that a peer wants, has, or does not have to another peer.
LikeEntry stores the content of a like transaction.
No description provided by the author
No description provided by the author
No description provided by the author
MempoolTx contains a transaction along with additional metadata like the fee and time added.
MessageEntry stores the essential content of a message transaction.
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
MsgDeSoHeader definition.
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
VERACK messages have no payload.
No description provided by the author
This struct defines a single bid on an NFT.
No description provided by the author
No description provided by the author
No description provided by the author
This struct defines an individual NFT owned by a PKID.
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
Peer is an object that holds all of the state for a connection to another node.
PGBalance represents PublicKeyToDeSoBalanceNanos.
PGBlock represents BlockNode and MsgDeSoHeader.
No description provided by the author
No description provided by the author
PGDerivedKey represents DerivedKeyEntry.
No description provided by the author
No description provided by the author
PGForbiddenKey represents ForbiddenPubKeyEntry.
PGGlobalParams represents GlobalParamsEntry.
No description provided by the author
TODO: This doesn't need to be a table.
PGMetadataAcceptNFTBid represents AcceptNFTBidMetadata.
PGMetadataAcceptNFTTransfer represents AcceptNFTTransferMetadata.
No description provided by the author
PGMetadataBitcoinExchange represents BitcoinExchangeMetadata.
PGMetadataBlockReward represents BlockRewardMetadataa.
PGMetadataBurnNFT represents BurnNFTMetadata.
PGMetadataCreateNFT represents CreateNFTMetadata.
PGMetadataCreatorCoin represents CreatorCoinMetadataa.
PGMetadataCreatorCoinTransfer represents CreatorCoinTransferMetadataa.
PGMetadataDerivedKey represents AuthorizeDerivedKeyMetadata.
PGMetadataFollow represents FollowMetadata.
PGMetadataLike represents LikeMetadata.
PGMetadataNFTBid represents NFTBidMetadata.
PGMetadataNFTTransfer represents NFTTransferMetadata.
PGMetadataPrivateMessage represents PrivateMessageMetadata.
PGMetadataSubmitPost represents SubmitPostMetadata.
PGMetadataSwapIdentity represents SwapIdentityMetadataa.
PGMetadataUpdateExchangeRate represents UpdateBitcoinUSDExchangeRateMetadataa.
PGMetadataUpdateNFT represents UpdateNFTMetadata.
PGMetadataUpdateProfile represents UpdateProfileMetadata.
PGNFT represents NFTEntry.
PGNFTBid represents NFTBidEntry.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PGTransaction represents MsgDeSoTxn.
PGTransactionOutput represents DeSoOutput, DeSoInput, and UtxoEntry.
No description provided by the author
No description provided by the author
This struct holds info on a readers interactions (e.g.
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
RepostEntry stores the content of a Repost transaction.
No description provided by the author
Server is the core of the DeSo node.
ServerMessage is the core data structure processed by the Server in its main loop.
ServerReply is used to signal to outside programs that a particuler ServerMessage they may have been waiting on has been processed.
SingleAddr is similar to the wire.NetAddress definition from the btcd guys.
No description provided by the author
No description provided by the author
Summary stats for a set of transactions of a specific type in the mempool.
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
UnconnectedTx is a transaction that has dependencies that we haven't added yet.
No description provided by the author
================================================================== UpdateGlobalParamsMetadata ==================================================================.
No description provided by the author
No description provided by the author
No description provided by the author
UtxoEntry identifies the data associated with a UTXO.
UtxoKey is a 32-byte txid with a 4-byte uint32 index identifying the particular output in the transaction where this utxo occurs.
No description provided by the author
No description provided by the author
# Interfaces
DeSoMessage is the interface that a message we send on the wire must implement.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
BlockHash is a convenient alias for a block hash.
No description provided by the author
No description provided by the author
No description provided by the author
DeSoInput represents a single unspent output from a previous txn.
InvType represents the allowed types of inventory vectors.
MempoolTxFeeMinHeap is a priority queue based on transaction fee rate.
The MsgType is usually sent on the wire to indicate what type of struct is being sent in the payload part of the message.
No description provided by the author
No description provided by the author
No description provided by the author
A PKID is an ID associated with a public key.
DEPRECATED: Replace all instances with lib.PublicKey.
No description provided by the author
RuleError is an error type that specifies an error occurred during block processing that is related to a consensus rule.
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
TxnType specifies the type for a transaction message.
Have to define these because Go doesn't let you use raw byte slices as map keys.
No description provided by the author