Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GENESIS_UNIT string VERSION string ALT string COUNT_WITNESSES int // anti-spam limits MAX_AUTHORS_PER_UNIT int = 16 MAX_PARENTS_PER_UNIT int = 16 MAX_MESSAGES_PER_UNIT int = 128 MAX_SPEND_PROOFS_PER_MESSAGE int = 128 MAX_INPUTS_PER_PAYMENT_MESSAGE int = 128 MAX_OUTPUTS_PER_PAYMENT_MESSAGE int = 128 MAX_CHOICES_PER_POLL int = 128 MAX_DENOMINATIONS_PER_ASSET_DEFINITION int = 64 MAX_ATTESTORS_PER_ASSET int = 64 MAX_DATA_FEED_NAME_LENGTH int = 64 MAX_DATA_FEED_VALUE_LENGTH int = 64 MAX_AUTHENTIFIER_LENGTH int = 4096 MAX_CAP int = 9e15 MAX_COMPLEXITY int = 100 MAX_PROFILE_FIELD_LENGTH int = 50 MAX_PROFILE_VALUE_LENGTH int = 100 TEXTCOIN_CLAIM_FEE int = 548 TEXTCOIN_ASSET_CLAIM_FEE int = 750 TEXTCOIN_ASSET_CLAIM_HEADER_FEE int = 391 TEXTCOIN_ASSET_CLAIM_MESSAGE_FEE int = 209 TEXTCOIN_ASSET_CLAIM_BASE_MSG_FEE int = 158 VOTED_MEDIATORS = "VotedMediators" PledgeListLastDate = "PledgeListLastDate" PledgeList = "PledgeList-" BlacklistAddress = "BlacklistAddress" ExchangelistAddress = "ExchangelistAddress" AddNewAddress = "AddNewAddress" OldTestNetGenesisMediatorAndPubKey = make(map[string]string) // 测试网上genesis中定义的mediator OldMainNetGenesisMediatorAndPubKey = make(map[string]string) // 主网上genesis中定义的mediator OldMainNetMediatorAndPubKey = make(map[string]string) // 1.0.3 版本之前主网上新申请的mediator TestNetGenesisHash = "0x6365f3bc9c197b8679821b998da5ee8f88b3db67fdb023250db3d1c2ae0ab1c6" MainNetGenesisHash = "0xfda8aea1b4b2920b1f4038fb10edb8fe510669ec1f574f5a13b20cad0f2294df" )
View Source
var ( HEADER_PREFIX = []byte("uh") // prefix + hash HEADER_HEIGTH_PREFIX = []byte("hh") // prefix + height:hash UNIT_HASH_NUMBER_PREFIX = []byte("hn") BODY_PREFIX = []byte("ub") TRANSACTION_PREFIX = []byte("tx") ADDR_TXID_PREFIX = []byte("at") // to addr transactions hash prefix ADDRESS_PREFIX = []byte("ad") // to addr ADDR_OUTPOINT_PREFIX = []byte("ap") // addr outpoint REQUEST_ADDR_OUTPOINT_PREFIX = []byte("ra") // addr outpoint OUTPOINT_ADDR_PREFIX = []byte("pa") // outpoint addr REQUEST_OUTPOINT_ADDR_PREFIX = []byte("ro") // outpoint addr CONTRACT_STATE_PREFIX = []byte("cs") CONTRACT_TPL = []byte("ct") CONTRACT_TPL_CODE = []byte("cc") CONTRACT_DEPLOY = []byte("cd") CONTRACT_DEPLOY_REQ = []byte("ce") CONTRACT_STOP = []byte("cp") CONTRACT_STOP_REQ = []byte("cq") CONTRACT_INVOKE = []byte("ci") CONTRACT_INVOKE_REQ = []byte("ck") CONTRACT_SIGNATURE = []byte("cn") CONTRACT_PREFIX = []byte("co") CONTRACT_TPL_INSTANCE_MAP = []byte("cm") CONTRACT_JURY_PREFIX = []byte("cj") REQID_TXID_PREFIX = []byte("rq") MEDIATOR_INFO_PREFIX = []byte("mi") DEPOSIT_BALANCE_PREFIX = []byte("db") DEPOSIT_JURY_BALANCE_PREFIX = []byte("djbp") //DEPOSIT_MEDIATOR_VOTE_PREFIX = []byte("dn") PLEDGE_DEPOSIT_PREFIX = []byte("pd") PLEDGE_WITHDRAW_PREFIX = []byte("pw") GLOBAL_PROPERTY_HISTORY_PREFIX = []byte("gh") ACCOUNT_INFO_PREFIX = []byte("ai") ACCOUNT_PTN_BALANCE_PREFIX = []byte("ab") TOKEN_TXID_PREFIX = []byte("tt") //IndexDB中存储一个Token关联的TxId TOKEN_EX_PREFIX = []byte("te") //IndexDB中存储一个Token关联的ProofOfExistence // lookup LOOKUP_PREFIX = []byte("lu") UTXO_PREFIX = []byte("uo") REQUEST_UTXO_PREFIX = []byte("ru") REQUEST_AND_TX_PREFIX = []byte("rt") SPENT_UTXO_PREFIX = []byte("us") REQUEST_STXO_PREFIX = []byte("rs") UTXO_INDEX_PREFIX = []byte("ui") REQUEST_UTXO_INDEX_PREFIX = []byte("ri") TrieSyncKey = []byte("TrieSync") LastUnitInfo = []byte("stbu") GenesisUnitHash = []byte("GenesisUnitHash") GLOBALPROPERTY_KEY = []byte("gpGlobalProperty") DYNAMIC_GLOBALPROPERTY_KEY = []byte("dpDynamicGlobalProperty") MEDIATOR_SCHEDULE_KEY = []byte("msMediatorSchedule") DATA_VERSION_KEY = []byte("gptnversion") //filehash IDX_MAIN_DATA_TXID = []byte("md") //Old value: mda IDX_REF_DATA_PREFIX = []byte("re") RewardAddressPrefix = "Addr:" JURY_PROPERTY_USER_CONTRACT_KEY = []byte("jpuck") )
prefix info 各个Entity的Prefix应该都是2小写字母,不可重复
View Source
var ( CERT_SPLIT_CH = string("||") // certificate CERT_ISSUER_SYMBOL = "certissuer_" CERT_SERVER_SYMBOL = "certserver_" CERT_MEMBER_SYMBOL = "certmember_" CERT_BYTES_SYMBOL = "certbytes_" CERT_SUBJECT_SYMBOL = "certsubject_" CRL_BYTES_SYMBOL = "crlbytes_" )
symbols
View Source
var ( LOCAL_TX_PREFIX = []byte("Ltx") LOCAL_TX_STATUS_PREFIX = []byte("Lts") )
local db Start with "L"
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.