Documentation ¶
Index ¶
- Constants
- Variables
- func GetBalanceForPublicKeyAtBlockHeightWithTxn(txn *badger.Txn, isLockedBalance bool, publicKey *lib.PublicKey, ...) uint64
- type Config
- type Index
- func (index *Index) GetBalanceSnapshot(isLockedBalance bool, publicKey *lib.PublicKey, blockHeight uint64) uint64
- func (index *Index) GetUtxoOps(block *lib.MsgDeSoBlock) ([][]*lib.UtxoOperation, error)
- func (index *Index) PutBalanceSnapshot(block *lib.MsgDeSoBlock, isLockedBalance bool, ...) error
- func (index *Index) PutUtxoOps(block *lib.MsgDeSoBlock, utxoOps [][]*lib.UtxoOperation) error
- type Mode
- type Network
- type Node
Constants ¶
View Source
const ( PrefixUtxoOps = byte(0) // Public key balances PrefixBalanceSnapshots = byte(1) // Creator coins PrefixLockedBalanceSnapshots = byte(2) )
View Source
const ( InputOpType = "INPUT" OutputOpType = "OUTPUT" Online Mode = "ONLINE" Offline Mode = "OFFLINE" Mainnet Network = "MAINNET" Testnet Network = "TESTNET" // CreatorCoin is the SubAccount address for a public key's // total DESO locked in their creator coin. CreatorCoin = "CREATOR_COIN" )
Variables ¶
View Source
var ( Currency = types.Currency{ Symbol: "DESO", Decimals: 9, } OperationTypes = []string{ InputOpType, OutputOpType, } SuccessStatus = "SUCCESS" RevertedStatus = "REVERTED" MinFeeRateNanosPerKB = uint64(1000) )
Functions ¶
Types ¶
type Config ¶
type Config struct { Mode Mode Network *types.NetworkIdentifier Params *lib.DeSoParams Currency *types.Currency GenesisBlockIdentifier *types.BlockIdentifier Port int NodePort int DataDirectory string MinerPublicKeys []string Regtest bool ConnectIPs []string }
func LoadConfig ¶
type Index ¶ added in v1.2.6
type Index struct {
// contains filtered or unexported fields
}
func (*Index) GetBalanceSnapshot ¶ added in v1.2.6
func (*Index) GetUtxoOps ¶ added in v1.2.6
func (index *Index) GetUtxoOps(block *lib.MsgDeSoBlock) ([][]*lib.UtxoOperation, error)
func (*Index) PutBalanceSnapshot ¶ added in v1.2.6
func (*Index) PutUtxoOps ¶ added in v1.2.6
func (index *Index) PutUtxoOps(block *lib.MsgDeSoBlock, utxoOps [][]*lib.UtxoOperation) error
type Node ¶
type Node struct { *lib.Server Params *lib.DeSoParams EventManager *lib.EventManager Index *Index Online bool Config *Config }
func (*Node) CurrentBlock ¶
Click to show internal directories.
Click to hide internal directories.