types

package
v1.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: BSD-3-Clause Imports: 32 Imported by: 1,164

Documentation

Overview

Package types 实现了chain33基础结构体、接口、常量等的定义

Index

Constants

View Source
const (
	Coin            int64 = 1e8
	MaxCoin         int64 = 1e17
	MaxTxSize             = 100000 //100K
	MaxTxGroupSize  int32 = 20
	MaxBlockSize          = 20000000 //20M
	MaxTxsPerBlock        = 100000
	TokenPrecision  int64 = 1e8
	MaxTokenBalance int64 = 900 * 1e8 * TokenPrecision //900亿
	DefaultMinFee   int64 = 1e5
)

coin conversation

View Source
const (
	UserKeyX = "user."
	ParaKeyX = "user.p."
	NoneX    = "none"
)

UserKeyX 用户自定义执行器前缀字符串

View Source
const (
	InputPrecision        float64 = 1e4
	Multiple1E4           int64   = 1e4
	BTY                           = "BTY"
	TxGroupMaxCount               = 20
	MinerAction                   = "miner"
	Int1E4                int64   = 10000
	Float1E4              float64 = 10000.0
	AirDropMinIndex       uint32  = 100000000         //通过钱包的seed生成一个空投地址,最小index索引
	AirDropMaxIndex       uint32  = 101000000         //通过钱包的seed生成一个空投地址,最大index索引
	MaxBlockCountPerTime  int64   = 1000              //从数据库中一次性获取block的最大数 1000个
	MaxBlockSizePerTime           = 100 * 1024 * 1024 //从数据库中一次性获取block的最大size100M
	AddBlock              int64   = 1
	DelBlock              int64   = 2
	MainChainName                 = "main"
	MaxHeaderCountPerTime int64   = 10000 //从数据库中一次性获取header的最大数 10000个

)

基本全局常量定义

View Source
const (
	Invalid   = 0
	SECP256K1 = 1
	ED25519   = 2
	SM2       = 3
)

ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> onetimeed25519 ty = 5 -> RingBaseonED25519 ty = 1+offset(1<<8) ->auth_ecdsa ty = 2+offset(1<<8) -> auth_sm2

View Source
const (
	TyLogReserved = 0
	TyLogErr      = 1
	TyLogFee      = 2
	//TyLogTransfer coins
	TyLogTransfer        = 3
	TyLogGenesis         = 4
	TyLogDeposit         = 5
	TyLogExecTransfer    = 6
	TyLogExecWithdraw    = 7
	TyLogExecDeposit     = 8
	TyLogExecFrozen      = 9
	TyLogExecActive      = 10
	TyLogGenesisTransfer = 11
	TyLogGenesisDeposit  = 12
	TyLogRollback        = 13
	TyLogMint            = 14
	TyLogBurn            = 15
)

log type

View Source
const (
	ExecErr  = 0
	ExecPack = 1
	ExecOk   = 2
)

exec type

View Source
const (
	EventTx                   = 1
	EventGetBlocks            = 2
	EventBlocks               = 3
	EventGetBlockHeight       = 4
	EventReplyBlockHeight     = 5
	EventQueryTx              = 6
	EventTransactionDetail    = 7
	EventReply                = 8
	EventTxBroadcast          = 9
	EventPeerInfo             = 10
	EventTxList               = 11
	EventReplyTxList          = 12
	EventAddBlock             = 13
	EventBlockBroadcast       = 14
	EventFetchBlocks          = 15
	EventAddBlocks            = 16
	EventTxHashList           = 17
	EventTxHashListReply      = 18
	EventGetHeaders           = 19
	EventHeaders              = 20
	EventGetMempoolSize       = 21
	EventMempoolSize          = 22
	EventStoreGet             = 23
	EventStoreSet             = 24
	EventStoreGetReply        = 25
	EventStoreSetReply        = 26
	EventReceipts             = 27
	EventExecTxList           = 28
	EventPeerList             = 29
	EventGetLastHeader        = 30
	EventHeader               = 31
	EventAddBlockDetail       = 32
	EventGetMempool           = 33
	EventGetTransactionByAddr = 34
	EventGetTransactionByHash = 35
	EventReplyTxInfo          = 36
	EventWalletAccountList    = 38
	EventWalletAccount        = 40
	EventWalletExecutor       = 42
	EventStoreDel             = 47
	EventReplyHashes          = 49
	EventTransactionDetails   = 53
	EventBroadcastAddBlock    = 54
	EventGetBlockOverview     = 55
	EventGetAddrOverview      = 56
	EventReplyBlockOverview   = 57
	EventReplyAddrOverview    = 58
	EventGetBlockHash         = 59
	EventBlockHash            = 60
	EventGetLastMempool       = 61
	EventMinerStart           = 63
	EventMinerStop            = 64
	EventWalletTickets        = 65
	EventStoreMemSet          = 66
	EventStoreRollback        = 67
	EventStoreCommit          = 68
	EventCheckBlock           = 69
	//seed
	EventReplyGenSeed = 71
	EventReplyGetSeed = 74
	EventDelBlock     = 75
	//local store
	EventLocalGet                = 76
	EventLocalReplyValue         = 77
	EventLocalList               = 78
	EventLocalSet                = 79
	EventCheckTx                 = 81
	EventReceiptCheckTx          = 82
	EventReplyQuery              = 84
	EventAddBlockSeqCB           = 85
	EventFetchBlockHeaders       = 86
	EventAddBlockHeaders         = 87
	EventReplyWalletStatus       = 89
	EventGetLastBlock            = 90
	EventBlock                   = 91
	EventGetTicketCount          = 92
	EventReplyGetTicketCount     = 93
	EventReplyPrivkey            = 95
	EventIsSync                  = 96
	EventReplyIsSync             = 97
	EventCloseTickets            = 98
	EventGetAddrTxs              = 99
	EventReplyAddrTxs            = 100
	EventIsNtpClockSync          = 101
	EventReplyIsNtpClockSync     = 102
	EventDelTxList               = 103
	EventStoreGetTotalCoins      = 104
	EventGetTotalCoinsReply      = 105
	EventQueryTotalFee           = 106
	EventReplySignRawTx          = 108
	EventSyncBlock               = 109
	EventGetNetInfo              = 110
	EventReplyNetInfo            = 111
	EventReplyFatalFailure       = 114
	EventBindMiner               = 115
	EventReplyBindMiner          = 116
	EventDecodeRawTx             = 117
	EventReplyDecodeRawTx        = 118
	EventGetLastBlockSequence    = 119
	EventReplyLastBlockSequence  = 120
	EventGetBlockSequences       = 121
	EventReplyBlockSequences     = 122
	EventGetBlockByHashes        = 123
	EventReplyBlockDetailsBySeqs = 124
	EventDelParaChainBlockDetail = 125
	EventAddParaChainBlockDetail = 126
	EventGetSeqByHash            = 127
	EventLocalPrefixCount        = 128
	EventStoreList               = 130
	EventStoreListReply          = 131
	EventListBlockSeqCB          = 132
	EventGetSeqCBLastNum         = 133
	EventGetBlockBySeq           = 134

	EventLocalBegin    = 135
	EventLocalCommit   = 136
	EventLocalRollback = 137
	EventLocalNew      = 138
	EventLocalClose    = 139

	//mempool
	EventGetProperFee   = 140
	EventReplyProperFee = 141

	EventReExecBlock  = 142
	EventTxListByHash = 143
	//exec
	EventBlockChainQuery = 212
	EventConsensusQuery  = 213
	EventUpgrade         = 214

	// BlockChain 接收的事件
	EventGetLastBlockMainSequence   = 300
	EventReplyLastBlockMainSequence = 301
	EventGetMainSeqByHash           = 302
	EventReplyMainSeqByHash         = 303
	//其他模块读写blockchain db事件
	EventSetValueByKey = 304
	EventGetValueByKey = 305
	//通过平行链title获取平行链的交易
	EventGetParaTxByTitle   = 306
	EventReplyParaTxByTitle = 307

	//获取拥有此title交易的区块高度
	EventGetHeightByTitle   = 308
	EventReplyHeightByTitle = 309

	//通过区块高度列表+title获取平行链交易
	EventGetParaTxByTitleAndHeight = 310
	//比较当前区块和新广播的区块最优区块
	EventCmpBestBlock = 311
)

event

View Source
const (
	DefaultCoinsSymbol = "bty"
)

DefaultCoinsSymbol 默认的主币名称

View Source
const MaxHeight = 10000000000000000

MaxHeight 出于forks 过程安全的考虑,比如代码更新,出现了新的fork,旧的链只要不明确指定 fork的高度,那么默认fork高度为 MaxHeight 也就是新的代码默认不会被启用,知道使用的人明确指定了fork的高度

View Source
const Size1Kshiftlen uint = 10

Size1Kshiftlen tx消息大小1k

Variables

View Source
var (
	AllowUserExec = [][]byte{ExecerNone}
	EmptyValue    = []byte("FFFFFFFFemptyBVBiCj5jvE15pEiwro8TQRGnJSNsJF") //这字符串表示数据库中的空值

)

区块链共识相关的参数,重要参数不要随便修改

View Source
var (
	UserKey    = []byte(UserKeyX)
	ParaKey    = []byte(ParaKeyX)
	ExecerNone = []byte(NoneX)
)

UserKeyX 用户自定义执行器前缀byte类型

View Source
var (
	ErrSequenceNotMatch        = errors.New("ErrSequenceNotMatch")
	ErrSequenceTooBig          = errors.New("ErrSequenceTooBig")
	ErrTooManySeqCB            = errors.New("ErrTooManySeqCB")
	ErrPushSeqPostData         = errors.New("ErrPushSeqPostData")
	ErrMethodReturnType        = errors.New("ErrMethodReturnType")
	ErrMethodNotFound          = errors.New("ErrMethodNotFound")
	ErrExecBlockNil            = errors.New("ErrExecBlockNil")
	ErrNotAllow                = errors.New("ErrNotAllow")
	ErrCanOnlyDelTopVersion    = errors.New("ErrCanOnlyDelTopVersion")
	ErrPrevVersion             = errors.New("ErrPrevVersion")
	ErrNoExecerInMavlKey       = errors.New("ErrNoExecerInMavlKey")
	ErrMavlKeyNotStartWithMavl = errors.New("ErrMavlKeyNotStartWithMavl")
	ErrNotFound                = errors.New("ErrNotFound")
	ErrBlockExec               = errors.New("ErrBlockExec")
	ErrCheckStateHash          = errors.New("ErrCheckStateHash")
	ErrCheckTxHash             = errors.New("ErrCheckTxHash")
	ErrReRunGenesis            = errors.New("ErrReRunGenesis")
	ErrActionNotSupport        = errors.New("ErrActionNotSupport")
	ErrQueryNotSupport         = errors.New("ErrQueryNotSupport")
	ErrAmount                  = errors.New("ErrAmount")
	ErrMinerIsStared           = errors.New("ErrMinerIsStared")
	ErrMinerNotStared          = errors.New("ErrMinerNotStared")
	ErrMinerNotClosed          = errors.New("ErrMinerNotClosed")
	ErrNoPeer                  = errors.New("ErrNoPeer")
	ErrExecNameNotMatch        = errors.New("ErrExecNameNotMatch")
	ErrChannelClosed           = errors.New("ErrChannelClosed")
	ErrNotMinered              = errors.New("ErrNotMinered")
	ErrFromAddr                = errors.New("ErrFromAddr")
	ErrBlockHeight             = errors.New("ErrBlockHeight")
	ErrBlockTime               = errors.New("ErrBlockTime")
	ErrCoinBaseExecer          = errors.New("ErrCoinBaseExecer")
	ErrCoinBaseTxType          = errors.New("ErrCoinBaseTxType")
	ErrCoinBaseExecErr         = errors.New("ErrCoinBaseExecErr")
	ErrCoinBaseTarget          = errors.New("ErrCoinBaseTarget")
	ErrCoinbaseReward          = errors.New("ErrCoinbaseReward")
	ErrNotAllowDeposit         = errors.New("ErrNotAllowDeposit")
	ErrCoinBaseIndex           = errors.New("ErrCoinBaseIndex")
	ErrCoinBaseTicketStatus    = errors.New("ErrCoinBaseTicketStatus")
	ErrBlockNotFound           = errors.New("ErrBlockNotFound")
	ErrLogType                 = errors.New("ErrLogType")
	ErrInvalidParam            = errors.New("ErrInvalidParam")
	ErrInvalidExpire           = errors.New("ErrInvalidExpire")
	ErrInvalidAddress          = errors.New("ErrInvalidAddress")
	ErrNotInited               = errors.New("ErrNotInited")

	ErrStartBigThanEnd            = errors.New("ErrStartBigThanEnd")
	ErrToAddrNotSameToExecAddr    = errors.New("ErrToAddrNotSameToExecAddr")
	ErrTypeAsset                  = errors.New("ErrTypeAsset")
	ErrEmpty                      = errors.New("ErrEmpty")
	ErrIsClosed                   = errors.New("ErrIsClosed")
	ErrSendSameToRecv             = errors.New("ErrSendSameToRecv")
	ErrExecNameNotAllow           = errors.New("ErrExecNameNotAllow")
	ErrExecNotFound               = errors.New("ErrExecNotFound")
	ErrLocalDBPerfix              = errors.New("ErrLocalDBPerfix")
	ErrBlockHeaderDifficulty      = errors.New("ErrBlockHeaderDifficulty")
	ErrNoTx                       = errors.New("ErrNoTx")
	ErrTxExist                    = errors.New("ErrTxExist")
	ErrManyTx                     = errors.New("ErrManyTx")
	ErrDupTx                      = errors.New("ErrDupTx")
	ErrMemFull                    = errors.New("ErrMemFull")
	ErrNoBalance                  = errors.New("ErrNoBalance")
	ErrBalanceLessThanTenTimesFee = errors.New("ErrBalanceLessThanTenTimesFee")
	ErrTxExpire                   = errors.New("ErrTxExpire")
	ErrHeaderNotSet               = errors.New("ErrHeaderNotSet")
	ErrSign                       = errors.New("ErrSign")
	ErrFeeTooLow                  = errors.New("ErrFeeTooLow")
	ErrEmptyTx                    = errors.New("ErrEmptyTx")
	ErrTxFeeTooLow                = errors.New("ErrTxFeeTooLow")
	ErrTxFeeTooHigh               = errors.New("ErrTxFeeTooHigh")
	ErrTxMsgSizeTooBig            = errors.New("ErrTxMsgSizeTooBig")
	ErrFutureBlock                = errors.New("ErrFutureBlock")
	ErrHashNotFound               = errors.New("ErrHashNotFound")
	ErrTxDup                      = errors.New("ErrTxDup")
	ErrNotSync                    = errors.New("ErrNotSync")
	ErrSize                       = errors.New("ErrSize")

	// ErrHashNotExist BlockChain Error Types
	ErrHashNotExist           = errors.New("ErrHashNotExist")
	ErrHeightNotExist         = errors.New("ErrHeightNotExist")
	ErrTxNotExist             = errors.New("ErrTxNotExist")
	ErrAddrNotExist           = errors.New("ErrAddrNotExist")
	ErrStartHeight            = errors.New("ErrStartHeight")
	ErrEndLessThanStartHeight = errors.New("ErrEndLessThanStartHeight")
	ErrClientNotBindQueue     = errors.New("ErrClientNotBindQueue")
	ErrContinueBack           = errors.New("ErrContinueBack")
	ErrUnmarshal              = errors.New("ErrUnmarshal")
	ErrMarshal                = errors.New("ErrMarshal")
	ErrBlockExist             = errors.New("ErrBlockExist")
	ErrParentBlockNoExist     = errors.New("ErrParentBlockNoExist")
	ErrBlockHeightNoMatch     = errors.New("ErrBlockHeightNoEqual")
	ErrParentTdNoExist        = errors.New("ErrParentTdNoExist")
	ErrBlockHashNoMatch       = errors.New("ErrBlockHashNoMatch")
	ErrDecode                 = errors.New("ErrDecode")
	ErrNotRollBack            = errors.New("ErrNotRollBack")
	ErrPeerInfoIsNil          = errors.New("ErrPeerInfoIsNil")
	//ErrWalletIsLocked wallet
	ErrWalletIsLocked       = errors.New("ErrWalletIsLocked")
	ErrSaveSeedFirst        = errors.New("ErrSaveSeedFirst")
	ErrUnLockFirst          = errors.New("ErrUnLockFirst")
	ErrLabelHasUsed         = errors.New("ErrLabelHasUsed")
	ErrPrivkeyExist         = errors.New("ErrPrivkeyExist")
	ErrPrivkey              = errors.New("ErrPrivkey")
	ErrInsufficientBalance  = errors.New("ErrInsufficientBalance")
	ErrInsufficientTokenBal = errors.New("ErrInsufficientTokenBalance")
	ErrInsuffSellOrder      = errors.New("ErrInsufficientSellOrder2buy")
	ErrVerifyOldpasswdFail  = errors.New("ErrVerifyOldpasswdFail")
	ErrInputPassword        = errors.New("ErrInputPassword")
	ErrSeedlang             = errors.New("ErrSeedlang")
	ErrSeedNotExist         = errors.New("ErrSeedNotExist")
	ErrSubPubKeyVerifyFail  = errors.New("ErrSubPubKeyVerifyFail")
	ErrLabelNotExist        = errors.New("ErrLabelNotExist")
	ErrAccountNotExist      = errors.New("ErrAccountNotExist")
	ErrSeedExist            = errors.New("ErrSeedExist")
	ErrNotSupport           = errors.New("ErrNotSupport")
	ErrSeedWordNum          = errors.New("ErrSeedWordNum")
	ErrPubKeyLen            = errors.New("ErrPublicKeyLen")
	ErrPrivateKeyLen        = errors.New("ErrPrivateKeyLen")
	ErrSeedWord             = errors.New("ErrSeedWord")
	ErrNoPrivKeyOrAddr      = errors.New("ErrNoPrivKeyOrAddr")
	ErrNewWalletFromSeed    = errors.New("ErrNewWalletFromSeed")
	ErrNewKeyPair           = errors.New("ErrNewKeyPair")
	ErrPrivkeyToPub         = errors.New("ErrPrivkeyToPub")

	ErrOnlyTicketUnLocked = errors.New("ErrOnlyTicketUnLocked")
	ErrNewCrypto          = errors.New("ErrNewCrypto")
	ErrFromHex            = errors.New("ErrFromHex")
	ErrPrivKeyFromBytes   = errors.New("ErrFromHex")
	ErrParentHash         = errors.New("ErrParentHash")
	ErrInvalidPassWord    = errors.New("ErrInvalidPassWord")
	//ErrPing p2p模块错误类型
	ErrPing       = errors.New("ErrPingSignature")
	ErrVersion    = errors.New("ErrVersionNoSupport")
	ErrStreamPing = errors.New("ErrStreamPing")
	ErrPeerStop   = errors.New("ErrPeerStop")
	ErrP2PChannel = errors.New("ErrIllegalP2PChannel")

	ErrBlockSize                  = errors.New("ErrBlockSize")
	ErrTxGroupIndex               = errors.New("ErrTxGroupIndex")
	ErrTxGroupFormat              = errors.New("ErrTxGroupFormat")
	ErrTxGroupCountLessThanTwo    = errors.New("ErrTxGroupCountLessThanTwo")
	ErrTxGroupHeader              = errors.New("ErrTxGroupHeader")
	ErrTxGroupNext                = errors.New("ErrTxGroupNext")
	ErrTxGroupCountBigThanMaxSize = errors.New("ErrTxGroupCountBigThanMaxSize")
	ErrTxGroupEmpty               = errors.New("ErrTxGroupEmpty")
	ErrTxGroupCount               = errors.New("ErrTxGroupCount")
	ErrTxGroupFeeNotZero          = errors.New("ErrTxGroupFeeNotZero")
	ErrNomalTx                    = errors.New("ErrNomalTx")
	ErrUnknowDriver               = errors.New("ErrUnknowDriver")
	ErrUnRegistedDriver           = errors.New("ErrUnRegistedDriver")
	ErrSymbolNameNotAllow         = errors.New("ErrSymbolNameNotAllow")
	ErrTxGroupNotSupport          = errors.New("ErrTxGroupNotSupport")
	ErrNotAllowKey                = errors.New("ErrNotAllowKey")
	ErrNotAllowMemSetKey          = errors.New("ErrNotAllowMemSetKey")
	ErrNotAllowMemSetLocalKey     = errors.New("ErrNotAllowMemSetLocalKey")
	ErrDataBaseDamage             = errors.New("ErrDataBaseDamage")
	ErrIndex                      = errors.New("ErrIndex")
	ErrTxGroupParaCount           = errors.New("ErrTxGroupParaCount")
	ErrTxGroupParaMainMixed       = errors.New("ErrTxGroupParaMainMixed")

	//ErrInvalidMainnetRPCAddr rpc模块的错误类型
	ErrInvalidMainnetRPCAddr = errors.New("ErrInvalidMainnetRPCAddr")

	ErrDBFlag      = errors.New("ErrDBFlag")
	ErrLocalPrefix = errors.New("ErrLocalPrefix")
	ErrLocalKeyLen = errors.New("ErrLocalKeyLen")
	//ErrNotSetInTransaction 必须set 在 事务 中
	ErrNotSetInTransaction = errors.New("can not set kvs not in transaction")
	ErrLocalDBTxDupOpen    = errors.New("ErrLocalDBTxDupOpen")

	ErrCloneForkFrom      = errors.New("ErrCloneForkFrom")
	ErrCloneForkToExist   = errors.New("ErrCloneForkToExist")
	ErrQueryThistIsNotSet = errors.New("ErrQueryThistIsNotSet")

	ErrHeightLessZero      = errors.New("ErrHeightLessZero")
	ErrHeightOverflow      = errors.New("ErrHeightOverflow")
	ErrRecordBlockSequence = errors.New("ErrRecordBlockSequence")
	ErrExecPanic           = errors.New("ErrExecPanic")

	ErrDisableWrite = errors.New("ErrDisableWrite")
	ErrDisableRead  = errors.New("ErrDisableRead")

	ErrConsensusHashErr  = errors.New("ErrConsensusHashErr")
	ErrMaxCountPerTime   = errors.New("ErrMaxCountPerTime")
	ErrInValidFileHeader = errors.New("ErrInValidFileHeader")
	ErrFileExists        = errors.New("ErrFileExists")
)

chain33定义的错误类型

View Source
var (
	LocalPrefix            = []byte("LODB")
	FlagTxQuickIndex       = []byte("FLAG:FlagTxQuickIndex")
	FlagKeyMVCC            = []byte("FLAG:keyMVCCFlag")
	TxHashPerfix           = []byte("TX:")
	TxShortHashPerfix      = []byte("STX:")
	TxAddrHash             = []byte("TxAddrHash:")
	TxAddrDirHash          = []byte("TxAddrDirHash:")
	AddrTxsCount           = []byte("AddrTxsCount:")
	ConsensusParaTxsPrefix = []byte("LODBP:Consensus:Para:")            //存贮para共识模块从主链拉取的平行链交易
	FlagReduceLocaldb      = []byte("FLAG:ReduceLocaldb")               // 精简版localdb标记
	ReduceLocaldbHeight    = append(FlagReduceLocaldb, []byte(":H")...) // 精简版localdb高度
)

定义key值

View Source
var ConfigPrefix = "mavl-config-"

ConfigPrefix 配置前缀key

View Source
var Debug = false

Debug 调试开关

View Source
var EnableTxGroupParaFork = false

EnableTxGroupParaFork 默认情况下不开启fork

View Source
var ExpireBound int64 = 1000000000 // 交易过期分界线,小于expireBound比较height,大于expireBound比较blockTime

ExpireBound 交易过期边界值

View Source
var HighAllowPackHeight int64 = 90

HighAllowPackHeight eg: current Height is 10000 TxHeight is 10010 => Height <= TxHeight + HighAllowPackHeight => Height >= TxHeight - LowAllowPackHeight 那么交易可以打包的范围是: 10010 - 100 = 9910 , 10010 + 200 = 10210 (9910,10210) 可以合法的打包交易 注意,这两个条件必须同时满足. 关于交易去重复: 也就是说,另外一笔相同的交易,只能被打包在这个区间(9910,10210)。 那么检查交易重复的时候,我只要检查 9910 - currentHeight 这个区间的交易不要重复就好了

View Source
var LowAllowPackHeight int64 = 30

LowAllowPackHeight 允许打包的low区块高度

View Source
var ManagePrefix = "mavl-"

ManagePrefix 超级管理员账户配置前缀key

View Source
var NtpHosts = []string{
	"ntp.aliyun.com:123",
	"time1.cloud.tencent.com:123",
	"time.ustc.edu.cn:123",
	"cn.ntp.org.cn:123",
	"time.apple.com:123",
}

NtpHosts ntp hosts

SystemLog 系统log日志

View Source
var TxHeightFlag int64 = 1 << 62

TxHeightFlag 标记是一个时间还是一个 TxHeight

Functions

func AssertConfig

func AssertConfig(check interface{})

func BuildQueryType

func BuildQueryType(prefix string, methods map[string]reflect.Method) (map[string]reflect.Method, map[string]reflect.Type)

BuildQueryType 构建查询方法

func CalcAddrTxsCountKey

func CalcAddrTxsCountKey(addr string) []byte

CalcAddrTxsCountKey 存储地址参与的交易数量。add时加一,del时减一

func CalcConsensusParaTxsKey

func CalcConsensusParaTxsKey(key []byte) []byte

CalcConsensusParaTxsKey 平行链localdb中保存的平行链title对应的交易

func CalcLocalPrefix

func CalcLocalPrefix(execer []byte) []byte

CalcLocalPrefix 计算localdb key

func CalcRollbackKey

func CalcRollbackKey(execer []byte, hash []byte) []byte

CalcRollbackKey 计算回滚的key

func CalcStatePrefix

func CalcStatePrefix(execer []byte) []byte

CalcStatePrefix 计算localdb key

func CalcTxAddrDirHashKey

func CalcTxAddrDirHashKey(addr string, flag int32, heightindex string) []byte

CalcTxAddrDirHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:flag:height*100000 + index 地址下面某个分类的交易

func CalcTxAddrHashKey

func CalcTxAddrHashKey(addr string, heightindex string) []byte

CalcTxAddrHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:height*100000 + index 地址下面所有的交易

func CalcTxShortHash

func CalcTxShortHash(hash []byte) string

CalcTxShortHash 取txhash的前指定字节,目前默认5

func CalcTxShortKey

func CalcTxShortKey(hash []byte) []byte

CalcTxShortKey local db中保存交易的方法

func CallCreateTx

func CallCreateTx(c *Chain33Config, execName, action string, param Message) ([]byte, error)

CallCreateTx 构造交易信息

func CallCreateTxJSON

func CallCreateTxJSON(c *Chain33Config, execName, action string, param json.RawMessage) ([]byte, error)

CallCreateTxJSON create tx by json

func CallExecNewTx

func CallExecNewTx(c *Chain33Config, execName, action string, param interface{}) ([]byte, error)

CallExecNewTx 重构完成后删除

func CheckAmount

func CheckAmount(amount int64) bool

CheckAmount 检测转账金额

func CheckConsensusParaTxsKey

func CheckConsensusParaTxsKey(key []byte) bool

CheckConsensusParaTxsKey 检测para共识模块需要操作的平行链交易的key值

func CheckSign

func CheckSign(data []byte, execer string, sign *Signature) bool

CheckSign 检测签名

func Clone

func Clone(data proto.Message) proto.Message

Clone 克隆

func ConfigKey

func ConfigKey(key string) string

ConfigKey 原来实现有bug, 但生成的key在状态树里, 不可修改 mavl-config–{key} key 前面两个-

func Decode

func Decode(data []byte, msg proto.Message) error

Decode 解码

func DecodeLog

func DecodeLog(execer []byte, ty int64, data []byte) (interface{}, error)

DecodeLog 解析log信息

func Encode

func Encode(data proto.Message) []byte

Encode 编码

func FindExecer

func FindExecer(key []byte) (execer []byte, err error)

FindExecer 查找执行器

func FlatConfig

func FlatConfig(conf map[string]interface{}) map[string]interface{}

FlatConfig Flat配置

func FormatTxEncode

func FormatTxEncode(c *Chain33Config, execName string, tx *Transaction) ([]byte, error)

FormatTxEncode 对交易信息编码成byte类型

func GetActionValue

func GetActionValue(action interface{}, funclist map[string]reflect.Method) (vname string, vty int32, v reflect.Value, err error)

GetActionValue 获取执行器的action value

func GetDefaultCfgstring

func GetDefaultCfgstring() string

func GetEventName

func GetEventName(event int) string

GetEventName 获取时间name通过事件id

func GetExecKey

func GetExecKey(key []byte) (string, bool)

GetExecKey 获取执行器key

func GetLocalDBKeyList

func GetLocalDBKeyList() [][]byte

GetLocalDBKeyList 获取localdb的key列表

func GetLogName

func GetLogName(execer []byte, ty int64) string

GetLogName 通过反射,解析日志

func GetParaExecName

func GetParaExecName(execer []byte) []byte

GetParaExecName 获取平行链上的执行器

func GetParaExecTitleName

func GetParaExecTitleName(exec string) (string, bool)

GetParaExecTitleName 如果是平行链执行器,获取对应title

func GetRealExecName

func GetRealExecName(execer []byte) []byte

GetRealExecName 获取真实的执行器name

func GetSignName

func GetSignName(execer string, signType int) string

GetSignName 获取签名类型

func GetSignType

func GetSignType(execer string, name string) int

GetSignType 获取签名类型

func GetTxHeight

func GetTxHeight(cfg *Chain33Config, valid int64, height int64) int64

GetTxHeight 获取交易高度

func GetTxTimeInterval

func GetTxTimeInterval() time.Duration

GetTxTimeInterval 获取交易有效期

func InitCfg

func InitCfg(path string) (*Config, *ConfigSubModule)

InitCfg 初始化配置

func InitCfgString

func InitCfgString(cfgstring string) (*Config, *ConfigSubModule)

InitCfgString 初始化配置

func IsAllowExecName

func IsAllowExecName(name []byte, execer []byte) bool

IsAllowExecName 默认的allow 规则->根据 GetRealExecName 来判断 name 必须大于3 小于 100

func IsAssetsTransfer

func IsAssetsTransfer(payload interface{}) bool

IsAssetsTransfer 是否是资产转移相关的交易

func IsNil

func IsNil(a interface{}) (ok bool)

IsNil 判断所有的空值

func IsNilP

func IsNilP(a interface{}) bool

IsNilP 空指针或者接口

func IsOK

func IsOK(list []reflect.Value, n int) bool

IsOK 是否存在

func IsParaExecName

func IsParaExecName(exec string) bool

IsParaExecName 是否平行链执行器

func IsSpecificParaExecName

func IsSpecificParaExecName(title, exec string) bool

IsSpecificParaExecName 是否是某一个平行链的执行器

func JSONToPB

func JSONToPB(data []byte, msg proto.Message) error

JSONToPB JSON格式转换成protobuffer格式

func JSONToPBUTF8

func JSONToPBUTF8(data []byte, msg proto.Message) error

JSONToPBUTF8 默认解码utf8的字符串成bytes

func ListActionMethod

func ListActionMethod(action interface{}, funclist []interface{}) map[string]reflect.Method

ListActionMethod list action的所有的方法

func ListMethod

func ListMethod(action interface{}) map[string]reflect.Method

ListMethod list Method

func ListMethodByType

func ListMethodByType(typ reflect.Type) map[string]reflect.Method

ListMethodByType list Method 通过type类型

func ListType

func ListType(tys []interface{}) map[string]reflect.Type

ListType list type

func ManageKey

func ManageKey(key string) string

ManageKey 超级管理员账户key

func MergeCfg

func MergeCfg(cfgstring, cfgdefault string) string

func MergeConfig

func MergeConfig(conf map[string]interface{}, def map[string]interface{}) string

MergeConfig Merge配置

func ModifySubConfig

func ModifySubConfig(sub []byte, key string, value interface{}) ([]byte, error)

ModifySubConfig json data modify

func MustDecode

func MustDecode(data []byte, v interface{})

MustDecode 数据是否已经编码

func MustPBToJSON

func MustPBToJSON(req Message) []byte

MustPBToJSON panic when error

func Now

func Now() time.Time

Now 获取当前时间戳

func PBToJSON

func PBToJSON(r Message) ([]byte, error)

PBToJSON 消息类型转换

func PBToJSONUTF8

func PBToJSONUTF8(r Message) ([]byte, error)

PBToJSONUTF8 消息类型转换

func ParseExpire

func ParseExpire(expire string) (int64, error)

ParseExpire parse expire to int from during or height

func ReadFile

func ReadFile(path string) string

func RegExec

func RegExec(name string, create Create)

func RegExecInit

func RegExecInit(cfg *Chain33Config)

func RegFork

func RegFork(name string, create Create)

Reg 注册每个模块的自动初始化函数

func RegForkInit

func RegForkInit(cfg *Chain33Config)

func RegisterChain33Server

func RegisterChain33Server(s *grpc.Server, srv Chain33Server)

func RegisterP2PgserviceServer

func RegisterP2PgserviceServer(s *grpc.Server, srv P2PgserviceServer)

func RegistorExecutor

func RegistorExecutor(exec string, util ExecutorType)

RegistorExecutor 注册执行器

func SetCliSysParam

func SetCliSysParam(title string, cfg *Chain33Config)

func SetTimeDelta

func SetTimeDelta(dt int64)

SetTimeDelta realtime - localtime 超过60s 不做修正 为了系统的安全,我们只做小范围时间错误的修复

func Since

func Since(t time.Time) time.Duration

Since Since时间

func Size

func Size(data proto.Message) int

Size 消息大小

func StatisticFlag

func StatisticFlag() []byte

StatisticFlag 用于记录统计的key

func TotalFeeKey

func TotalFeeKey(hash []byte) []byte

TotalFeeKey 统计所有费用的key

func TxCacheSet

func TxCacheSet(tx *Transaction, txc *TransactionCache)

TxCacheSet 设置 cache

Types

type Account

type Account struct {
	// coins标识,目前只有0 一个值
	Currency int32 `protobuf:"varint,1,opt,name=currency,proto3" json:"currency,omitempty"`
	//账户可用余额
	Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	//账户冻结余额
	Frozen int64 `protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
	//账户的地址
	Addr                 string   `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Account 的信息

func (*Account) Descriptor

func (*Account) Descriptor() ([]byte, []int)

func (*Account) GetAddr

func (m *Account) GetAddr() string

func (*Account) GetBalance

func (m *Account) GetBalance() int64

func (*Account) GetCurrency

func (m *Account) GetCurrency() int32

func (*Account) GetFrozen

func (m *Account) GetFrozen() int64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Account) XXX_Merge

func (m *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

func (m *Account) XXX_Unmarshal(b []byte) error

type Accounts

type Accounts struct {
	Acc                  []*Account `protobuf:"bytes,1,rep,name=acc,proto3" json:"acc,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Account 的列表

func (*Accounts) Descriptor

func (*Accounts) Descriptor() ([]byte, []int)

func (*Accounts) GetAcc

func (m *Accounts) GetAcc() []*Account

func (*Accounts) ProtoMessage

func (*Accounts) ProtoMessage()

func (*Accounts) Reset

func (m *Accounts) Reset()

func (*Accounts) String

func (m *Accounts) String() string

func (*Accounts) XXX_DiscardUnknown

func (m *Accounts) XXX_DiscardUnknown()

func (*Accounts) XXX_Marshal

func (m *Accounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Accounts) XXX_Merge

func (m *Accounts) XXX_Merge(src proto.Message)

func (*Accounts) XXX_Size

func (m *Accounts) XXX_Size() int

func (*Accounts) XXX_Unmarshal

func (m *Accounts) XXX_Unmarshal(b []byte) error

type AddrOverview

type AddrOverview struct {
	Reciver              int64    `protobuf:"varint,1,opt,name=reciver,proto3" json:"reciver,omitempty"`
	Balance              int64    `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	TxCount              int64    `protobuf:"varint,3,opt,name=txCount,proto3" json:"txCount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddrOverview) Descriptor

func (*AddrOverview) Descriptor() ([]byte, []int)

func (*AddrOverview) GetBalance

func (m *AddrOverview) GetBalance() int64

func (*AddrOverview) GetReciver

func (m *AddrOverview) GetReciver() int64

func (*AddrOverview) GetTxCount

func (m *AddrOverview) GetTxCount() int64

func (*AddrOverview) ProtoMessage

func (*AddrOverview) ProtoMessage()

func (*AddrOverview) Reset

func (m *AddrOverview) Reset()

func (*AddrOverview) String

func (m *AddrOverview) String() string

func (*AddrOverview) XXX_DiscardUnknown

func (m *AddrOverview) XXX_DiscardUnknown()

func (*AddrOverview) XXX_Marshal

func (m *AddrOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddrOverview) XXX_Merge

func (m *AddrOverview) XXX_Merge(src proto.Message)

func (*AddrOverview) XXX_Size

func (m *AddrOverview) XXX_Size() int

func (*AddrOverview) XXX_Unmarshal

func (m *AddrOverview) XXX_Unmarshal(b []byte) error

type AllExecBalance

type AllExecBalance struct {
	Addr                 string         `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	ExecAccount          []*ExecAccount `protobuf:"bytes,2,rep,name=ExecAccount,proto3" json:"ExecAccount,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*AllExecBalance) Descriptor

func (*AllExecBalance) Descriptor() ([]byte, []int)

func (*AllExecBalance) GetAddr

func (m *AllExecBalance) GetAddr() string

func (*AllExecBalance) GetExecAccount

func (m *AllExecBalance) GetExecAccount() []*ExecAccount

func (*AllExecBalance) ProtoMessage

func (*AllExecBalance) ProtoMessage()

func (*AllExecBalance) Reset

func (m *AllExecBalance) Reset()

func (*AllExecBalance) String

func (m *AllExecBalance) String() string

func (*AllExecBalance) XXX_DiscardUnknown

func (m *AllExecBalance) XXX_DiscardUnknown()

func (*AllExecBalance) XXX_Marshal

func (m *AllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllExecBalance) XXX_Merge

func (m *AllExecBalance) XXX_Merge(src proto.Message)

func (*AllExecBalance) XXX_Size

func (m *AllExecBalance) XXX_Size() int

func (*AllExecBalance) XXX_Unmarshal

func (m *AllExecBalance) XXX_Unmarshal(b []byte) error

type Amounter

type Amounter interface {
	GetAmount() int64
}

Amounter 转账金额

type ArrayConfig

type ArrayConfig struct {
	Value                []string `protobuf:"bytes,3,rep,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

配置修改部分

func (*ArrayConfig) Descriptor

func (*ArrayConfig) Descriptor() ([]byte, []int)

func (*ArrayConfig) GetValue

func (m *ArrayConfig) GetValue() []string

func (*ArrayConfig) ProtoMessage

func (*ArrayConfig) ProtoMessage()

func (*ArrayConfig) Reset

func (m *ArrayConfig) Reset()

func (*ArrayConfig) String

func (m *ArrayConfig) String() string

func (*ArrayConfig) XXX_DiscardUnknown

func (m *ArrayConfig) XXX_DiscardUnknown()

func (*ArrayConfig) XXX_Marshal

func (m *ArrayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArrayConfig) XXX_Merge

func (m *ArrayConfig) XXX_Merge(src proto.Message)

func (*ArrayConfig) XXX_Size

func (m *ArrayConfig) XXX_Size() int

func (*ArrayConfig) XXX_Unmarshal

func (m *ArrayConfig) XXX_Unmarshal(b []byte) error

type Asset

type Asset struct {
	Exec                 string   `protobuf:"bytes,1,opt,name=exec,proto3" json:"exec,omitempty"`
	Symbol               string   `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Asset) Descriptor

func (*Asset) Descriptor() ([]byte, []int)

func (*Asset) GetAmount

func (m *Asset) GetAmount() int64

func (*Asset) GetExec

func (m *Asset) GetExec() string

func (*Asset) GetSymbol

func (m *Asset) GetSymbol() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

func (*Asset) XXX_DiscardUnknown

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal

func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Asset) XXX_Merge

func (m *Asset) XXX_Merge(src proto.Message)

func (*Asset) XXX_Size

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal

func (m *Asset) XXX_Unmarshal(b []byte) error

type AssetsGenesis

type AssetsGenesis struct {
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	ReturnAddress        string   `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

assert transfer struct

func (*AssetsGenesis) Descriptor

func (*AssetsGenesis) Descriptor() ([]byte, []int)

func (*AssetsGenesis) GetAmount

func (m *AssetsGenesis) GetAmount() int64

func (*AssetsGenesis) GetReturnAddress

func (m *AssetsGenesis) GetReturnAddress() string

func (*AssetsGenesis) ProtoMessage

func (*AssetsGenesis) ProtoMessage()

func (*AssetsGenesis) Reset

func (m *AssetsGenesis) Reset()

func (*AssetsGenesis) String

func (m *AssetsGenesis) String() string

func (*AssetsGenesis) XXX_DiscardUnknown

func (m *AssetsGenesis) XXX_DiscardUnknown()

func (*AssetsGenesis) XXX_Marshal

func (m *AssetsGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetsGenesis) XXX_Merge

func (m *AssetsGenesis) XXX_Merge(src proto.Message)

func (*AssetsGenesis) XXX_Size

func (m *AssetsGenesis) XXX_Size() int

func (*AssetsGenesis) XXX_Unmarshal

func (m *AssetsGenesis) XXX_Unmarshal(b []byte) error

type AssetsTransfer

type AssetsTransfer struct {
	Cointoken            string   `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Note                 []byte   `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	To                   string   `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AssetsTransfer) Descriptor

func (*AssetsTransfer) Descriptor() ([]byte, []int)

func (*AssetsTransfer) GetAmount

func (m *AssetsTransfer) GetAmount() int64

func (*AssetsTransfer) GetCointoken

func (m *AssetsTransfer) GetCointoken() string

func (*AssetsTransfer) GetNote

func (m *AssetsTransfer) GetNote() []byte

func (*AssetsTransfer) GetTo

func (m *AssetsTransfer) GetTo() string

func (*AssetsTransfer) ProtoMessage

func (*AssetsTransfer) ProtoMessage()

func (*AssetsTransfer) Reset

func (m *AssetsTransfer) Reset()

func (*AssetsTransfer) String

func (m *AssetsTransfer) String() string

func (*AssetsTransfer) XXX_DiscardUnknown

func (m *AssetsTransfer) XXX_DiscardUnknown()

func (*AssetsTransfer) XXX_Marshal

func (m *AssetsTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetsTransfer) XXX_Merge

func (m *AssetsTransfer) XXX_Merge(src proto.Message)

func (*AssetsTransfer) XXX_Size

func (m *AssetsTransfer) XXX_Size() int

func (*AssetsTransfer) XXX_Unmarshal

func (m *AssetsTransfer) XXX_Unmarshal(b []byte) error

type AssetsTransferToExec

type AssetsTransferToExec struct {
	Cointoken            string   `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Note                 []byte   `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	ExecName             string   `protobuf:"bytes,4,opt,name=execName,proto3" json:"execName,omitempty"`
	To                   string   `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AssetsTransferToExec) Descriptor

func (*AssetsTransferToExec) Descriptor() ([]byte, []int)

func (*AssetsTransferToExec) GetAmount

func (m *AssetsTransferToExec) GetAmount() int64

func (*AssetsTransferToExec) GetCointoken

func (m *AssetsTransferToExec) GetCointoken() string

func (*AssetsTransferToExec) GetExecName

func (m *AssetsTransferToExec) GetExecName() string

func (*AssetsTransferToExec) GetNote

func (m *AssetsTransferToExec) GetNote() []byte

func (*AssetsTransferToExec) GetTo

func (m *AssetsTransferToExec) GetTo() string

func (*AssetsTransferToExec) ProtoMessage

func (*AssetsTransferToExec) ProtoMessage()

func (*AssetsTransferToExec) Reset

func (m *AssetsTransferToExec) Reset()

func (*AssetsTransferToExec) String

func (m *AssetsTransferToExec) String() string

func (*AssetsTransferToExec) XXX_DiscardUnknown

func (m *AssetsTransferToExec) XXX_DiscardUnknown()

func (*AssetsTransferToExec) XXX_Marshal

func (m *AssetsTransferToExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetsTransferToExec) XXX_Merge

func (m *AssetsTransferToExec) XXX_Merge(src proto.Message)

func (*AssetsTransferToExec) XXX_Size

func (m *AssetsTransferToExec) XXX_Size() int

func (*AssetsTransferToExec) XXX_Unmarshal

func (m *AssetsTransferToExec) XXX_Unmarshal(b []byte) error

type AssetsWithdraw

type AssetsWithdraw struct {
	Cointoken            string   `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Note                 []byte   `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	ExecName             string   `protobuf:"bytes,4,opt,name=execName,proto3" json:"execName,omitempty"`
	To                   string   `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AssetsWithdraw) Descriptor

func (*AssetsWithdraw) Descriptor() ([]byte, []int)

func (*AssetsWithdraw) GetAmount

func (m *AssetsWithdraw) GetAmount() int64

func (*AssetsWithdraw) GetCointoken

func (m *AssetsWithdraw) GetCointoken() string

func (*AssetsWithdraw) GetExecName

func (m *AssetsWithdraw) GetExecName() string

func (*AssetsWithdraw) GetNote

func (m *AssetsWithdraw) GetNote() []byte

func (*AssetsWithdraw) GetTo

func (m *AssetsWithdraw) GetTo() string

func (*AssetsWithdraw) ProtoMessage

func (*AssetsWithdraw) ProtoMessage()

func (*AssetsWithdraw) Reset

func (m *AssetsWithdraw) Reset()

func (*AssetsWithdraw) String

func (m *AssetsWithdraw) String() string

func (*AssetsWithdraw) XXX_DiscardUnknown

func (m *AssetsWithdraw) XXX_DiscardUnknown()

func (*AssetsWithdraw) XXX_Marshal

func (m *AssetsWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetsWithdraw) XXX_Merge

func (m *AssetsWithdraw) XXX_Merge(src proto.Message)

func (*AssetsWithdraw) XXX_Size

func (m *AssetsWithdraw) XXX_Size() int

func (*AssetsWithdraw) XXX_Unmarshal

func (m *AssetsWithdraw) XXX_Unmarshal(b []byte) error

type Block

type Block struct {
	Version              int64          `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	ParentHash           []byte         `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	TxHash               []byte         `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
	StateHash            []byte         `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Height               int64          `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	BlockTime            int64          `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	Difficulty           uint32         `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	MainHash             []byte         `protobuf:"bytes,12,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
	MainHeight           int64          `protobuf:"varint,13,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
	Signature            *Signature     `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	Txs                  []*Transaction `protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}
参考Header解释

mainHash 平行链上使用的字段,代表这个区块的主链hash

func (*Block) CheckSign

func (block *Block) CheckSign(cfg *Chain33Config) bool

CheckSign 检测block的签名

func (*Block) Clone

func (b *Block) Clone() *Block

Clone Block 浅拷贝(所有的types.Message 进行了拷贝)

func (*Block) Descriptor

func (*Block) Descriptor() ([]byte, []int)

func (*Block) GetBlockTime

func (m *Block) GetBlockTime() int64

func (*Block) GetDifficulty

func (m *Block) GetDifficulty() uint32

func (*Block) GetHeader

func (block *Block) GetHeader(cfg *Chain33Config) *Header

GetHeader 获取block的Header信息

func (*Block) GetHeight

func (m *Block) GetHeight() int64

func (*Block) GetMainHash

func (m *Block) GetMainHash() []byte

func (*Block) GetMainHeight

func (m *Block) GetMainHeight() int64

func (*Block) GetParentHash

func (m *Block) GetParentHash() []byte

func (*Block) GetSignature

func (m *Block) GetSignature() *Signature

func (*Block) GetStateHash

func (m *Block) GetStateHash() []byte

func (*Block) GetTxHash

func (m *Block) GetTxHash() []byte

func (*Block) GetTxs

func (m *Block) GetTxs() []*Transaction

func (*Block) GetVersion

func (m *Block) GetVersion() int64

func (*Block) Hash

func (block *Block) Hash(cfg *Chain33Config) []byte

Hash 获取block的hash值

func (*Block) HashByForkHeight

func (block *Block) HashByForkHeight(forkheight int64) []byte

HashByForkHeight hash 通过自己设置的fork 高度计算 hash

func (*Block) HashNew

func (block *Block) HashNew() []byte

HashNew 新版本的Hash

func (*Block) HashOld

func (block *Block) HashOld() []byte

HashOld 老版本的hash

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

func (block *Block) Size() int

Size 获取block的Size

func (*Block) String

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

type BlockBody

type BlockBody struct {
	Txs                  []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	Receipts             []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
	MainHash             []byte         `protobuf:"bytes,3,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
	MainHeight           int64          `protobuf:"varint,4,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
	Hash                 []byte         `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
	Height               int64          `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

区块体信息

txs : 区块上所有交易列表
receipts :区块上所有交易的收据信息列表
mainHash : 主链区块hash,平行链使用
mainHeight :主链区块高度,平行链使用
hash : 本链区块hash
height :本链区块高度

func (*BlockBody) Clone

func (b *BlockBody) Clone() *BlockBody

Clone BlockBody 浅拷贝(所有的types.Message 进行了拷贝)

func (*BlockBody) Descriptor

func (*BlockBody) Descriptor() ([]byte, []int)

func (*BlockBody) GetHash

func (m *BlockBody) GetHash() []byte

func (*BlockBody) GetHeight

func (m *BlockBody) GetHeight() int64

func (*BlockBody) GetMainHash

func (m *BlockBody) GetMainHash() []byte

func (*BlockBody) GetMainHeight

func (m *BlockBody) GetMainHeight() int64

func (*BlockBody) GetReceipts

func (m *BlockBody) GetReceipts() []*ReceiptData

func (*BlockBody) GetTxs

func (m *BlockBody) GetTxs() []*Transaction

func (*BlockBody) ProtoMessage

func (*BlockBody) ProtoMessage()

func (*BlockBody) Reset

func (m *BlockBody) Reset()

func (*BlockBody) String

func (m *BlockBody) String() string

func (*BlockBody) XXX_DiscardUnknown

func (m *BlockBody) XXX_DiscardUnknown()

func (*BlockBody) XXX_Marshal

func (m *BlockBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockBody) XXX_Merge

func (m *BlockBody) XXX_Merge(src proto.Message)

func (*BlockBody) XXX_Size

func (m *BlockBody) XXX_Size() int

func (*BlockBody) XXX_Unmarshal

func (m *BlockBody) XXX_Unmarshal(b []byte) error

type BlockChain

type BlockChain struct {
	// 缓存区块的个数
	DefCacheSize int64 `protobuf:"varint,1,opt,name=defCacheSize" json:"defCacheSize,omitempty"`
	// 同步区块时一次最多申请获取的区块个数
	MaxFetchBlockNum int64 `protobuf:"varint,2,opt,name=maxFetchBlockNum" json:"maxFetchBlockNum,omitempty"`
	// 向对端节点请求同步区块的时间间隔
	TimeoutSeconds int64 `protobuf:"varint,3,opt,name=timeoutSeconds" json:"timeoutSeconds,omitempty"`
	BatchBlockNum  int64 `protobuf:"varint,4,opt,name=batchBlockNum" json:"batchBlockNum,omitempty"`
	// 使用的数据库类型
	Driver string `protobuf:"bytes,5,opt,name=driver" json:"driver,omitempty"`
	// 数据库文件目录
	DbPath string `protobuf:"bytes,6,opt,name=dbPath" json:"dbPath,omitempty"`
	// 数据库缓存大小
	DbCache             int32 `protobuf:"varint,7,opt,name=dbCache" json:"dbCache,omitempty"`
	IsStrongConsistency bool  `protobuf:"varint,8,opt,name=isStrongConsistency" json:"isStrongConsistency,omitempty"`
	// 是否为单节点
	SingleMode bool `protobuf:"varint,9,opt,name=singleMode" json:"singleMode,omitempty"`
	// 同步区块批量写数据库时,是否需要立即写磁盘,非固态硬盘的电脑可以设置为false,以提高性能
	Batchsync bool `protobuf:"varint,10,opt,name=batchsync" json:"batchsync,omitempty"`
	// 是否记录添加或者删除区块的序列,若节点作为主链节点,为平行链节点提供服务,需要设置为true
	IsRecordBlockSequence bool `protobuf:"varint,11,opt,name=isRecordBlockSequence" json:"isRecordBlockSequence,omitempty"`
	// 是否为平行链节点
	IsParaChain        bool `protobuf:"varint,12,opt,name=isParaChain" json:"isParaChain,omitempty"`
	EnableTxQuickIndex bool `protobuf:"varint,13,opt,name=enableTxQuickIndex" json:"enableTxQuickIndex,omitempty"`
	// 升级storedb是否重新执行localdb
	EnableReExecLocal bool `protobuf:"varint,14,opt,name=enableReExecLocal" json:"enableReExecLocal,omitempty"`
	// 区块回退
	RollbackBlock int64 `protobuf:"varint,15,opt,name=rollbackBlock" json:"rollbackBlock,omitempty"`
	// 回退是否保存区块
	RollbackSave bool `protobuf:"varint,16,opt,name=rollbackSave" json:"rollbackSave,omitempty"`
	// 最新区块上链超时时间,单位秒。
	OnChainTimeout int64 `protobuf:"varint,17,opt,name=onChainTimeout" json:"onChainTimeout,omitempty"`
	// 使能精简localdb
	EnableReduceLocaldb bool `protobuf:"varint,18,opt,name=enableReduceLocaldb" json:"enableReduceLocaldb,omitempty"`
}

BlockChain 配置

type BlockDetail

type BlockDetail struct {
	Block                *Block         `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Receipts             []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
	KV                   []*KeyValue    `protobuf:"bytes,3,rep,name=KV,proto3" json:"KV,omitempty"`
	PrevStatusHash       []byte         `protobuf:"bytes,4,opt,name=prevStatusHash,proto3" json:"prevStatusHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

区块详细信息

block : 区块信息
receipts :区块上所有交易的收据信息列表

func (*BlockDetail) Clone

func (b *BlockDetail) Clone() *BlockDetail

Clone 浅拷贝: BlockDetail

func (*BlockDetail) Descriptor

func (*BlockDetail) Descriptor() ([]byte, []int)

func (*BlockDetail) FilterParaTxsByTitle

func (blockDetail *BlockDetail) FilterParaTxsByTitle(cfg *Chain33Config, title string) *ParaTxDetail

FilterParaTxsByTitle 过滤指定title的平行链交易 1,单笔平行连交易 2,交易组中的平行连交易,需要将整个交易组都过滤出来 目前暂时不返回单个交易的proof证明路径, 后面会将平行链的交易组装到一起,构成一个子roothash。会返回子roothash的proof证明路径

func (*BlockDetail) GetBlock

func (m *BlockDetail) GetBlock() *Block

func (*BlockDetail) GetKV

func (m *BlockDetail) GetKV() []*KeyValue

func (*BlockDetail) GetPrevStatusHash

func (m *BlockDetail) GetPrevStatusHash() []byte

func (*BlockDetail) GetReceipts

func (m *BlockDetail) GetReceipts() []*ReceiptData

func (*BlockDetail) ProtoMessage

func (*BlockDetail) ProtoMessage()

func (*BlockDetail) Reset

func (m *BlockDetail) Reset()

func (*BlockDetail) Size

func (blockDetail *BlockDetail) Size() int

Size 获取blockDetail的Size

func (*BlockDetail) String

func (m *BlockDetail) String() string

func (*BlockDetail) XXX_DiscardUnknown

func (m *BlockDetail) XXX_DiscardUnknown()

func (*BlockDetail) XXX_Marshal

func (m *BlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockDetail) XXX_Merge

func (m *BlockDetail) XXX_Merge(src proto.Message)

func (*BlockDetail) XXX_Size

func (m *BlockDetail) XXX_Size() int

func (*BlockDetail) XXX_Unmarshal

func (m *BlockDetail) XXX_Unmarshal(b []byte) error

type BlockDetails

type BlockDetails struct {
	Items                []*BlockDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

resp

func (*BlockDetails) Descriptor

func (*BlockDetails) Descriptor() ([]byte, []int)

func (*BlockDetails) GetItems

func (m *BlockDetails) GetItems() []*BlockDetail

func (*BlockDetails) ProtoMessage

func (*BlockDetails) ProtoMessage()

func (*BlockDetails) Reset

func (m *BlockDetails) Reset()

func (*BlockDetails) String

func (m *BlockDetails) String() string

func (*BlockDetails) XXX_DiscardUnknown

func (m *BlockDetails) XXX_DiscardUnknown()

func (*BlockDetails) XXX_Marshal

func (m *BlockDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockDetails) XXX_Merge

func (m *BlockDetails) XXX_Merge(src proto.Message)

func (*BlockDetails) XXX_Size

func (m *BlockDetails) XXX_Size() int

func (*BlockDetails) XXX_Unmarshal

func (m *BlockDetails) XXX_Unmarshal(b []byte) error

type BlockInfo

type BlockInfo struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash                 []byte   `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

title平行链交易所在主链区块的信息

func (*BlockInfo) Descriptor

func (*BlockInfo) Descriptor() ([]byte, []int)

func (*BlockInfo) GetHash

func (m *BlockInfo) GetHash() []byte

func (*BlockInfo) GetHeight

func (m *BlockInfo) GetHeight() int64

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) Reset

func (m *BlockInfo) Reset()

func (*BlockInfo) String

func (m *BlockInfo) String() string

func (*BlockInfo) XXX_DiscardUnknown

func (m *BlockInfo) XXX_DiscardUnknown()

func (*BlockInfo) XXX_Marshal

func (m *BlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockInfo) XXX_Merge

func (m *BlockInfo) XXX_Merge(src proto.Message)

func (*BlockInfo) XXX_Size

func (m *BlockInfo) XXX_Size() int

func (*BlockInfo) XXX_Unmarshal

func (m *BlockInfo) XXX_Unmarshal(b []byte) error

type BlockOverview

type BlockOverview struct {
	Head                 *Header  `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
	TxCount              int64    `protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
	TxHashes             [][]byte `protobuf:"bytes,3,rep,name=txHashes,proto3" json:"txHashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

区块视图

head : 区块头信息
txCount :区块上交易个数
txHashes : 区块上交易的哈希列表

func (*BlockOverview) Descriptor

func (*BlockOverview) Descriptor() ([]byte, []int)

func (*BlockOverview) GetHead

func (m *BlockOverview) GetHead() *Header

func (*BlockOverview) GetTxCount

func (m *BlockOverview) GetTxCount() int64

func (*BlockOverview) GetTxHashes

func (m *BlockOverview) GetTxHashes() [][]byte

func (*BlockOverview) ProtoMessage

func (*BlockOverview) ProtoMessage()

func (*BlockOverview) Reset

func (m *BlockOverview) Reset()

func (*BlockOverview) String

func (m *BlockOverview) String() string

func (*BlockOverview) XXX_DiscardUnknown

func (m *BlockOverview) XXX_DiscardUnknown()

func (*BlockOverview) XXX_Marshal

func (m *BlockOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockOverview) XXX_Merge

func (m *BlockOverview) XXX_Merge(src proto.Message)

func (*BlockOverview) XXX_Size

func (m *BlockOverview) XXX_Size() int

func (*BlockOverview) XXX_Unmarshal

func (m *BlockOverview) XXX_Unmarshal(b []byte) error

type BlockPid

type BlockPid struct {
	Pid                  string   `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
	Block                *Block   `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

节点ID以及对应的Block

func (*BlockPid) Descriptor

func (*BlockPid) Descriptor() ([]byte, []int)

func (*BlockPid) GetBlock

func (m *BlockPid) GetBlock() *Block

func (*BlockPid) GetPid

func (m *BlockPid) GetPid() string

func (*BlockPid) ProtoMessage

func (*BlockPid) ProtoMessage()

func (*BlockPid) Reset

func (m *BlockPid) Reset()

func (*BlockPid) String

func (m *BlockPid) String() string

func (*BlockPid) XXX_DiscardUnknown

func (m *BlockPid) XXX_DiscardUnknown()

func (*BlockPid) XXX_Marshal

func (m *BlockPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockPid) XXX_Merge

func (m *BlockPid) XXX_Merge(src proto.Message)

func (*BlockPid) XXX_Size

func (m *BlockPid) XXX_Size() int

func (*BlockPid) XXX_Unmarshal

func (m *BlockPid) XXX_Unmarshal(b []byte) error

type BlockReceipt

type BlockReceipt struct {
	Receipts             []*ReceiptData `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
	Hash                 []byte         `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Height               int64          `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

区块回执

receipts :区块上所有交易的收据信息列表
hash : 本链区块hash
height :本链区块高度

func (*BlockReceipt) Descriptor

func (*BlockReceipt) Descriptor() ([]byte, []int)

func (*BlockReceipt) GetHash

func (m *BlockReceipt) GetHash() []byte

func (*BlockReceipt) GetHeight

func (m *BlockReceipt) GetHeight() int64

func (*BlockReceipt) GetReceipts

func (m *BlockReceipt) GetReceipts() []*ReceiptData

func (*BlockReceipt) ProtoMessage

func (*BlockReceipt) ProtoMessage()

func (*BlockReceipt) Reset

func (m *BlockReceipt) Reset()

func (*BlockReceipt) String

func (m *BlockReceipt) String() string

func (*BlockReceipt) XXX_DiscardUnknown

func (m *BlockReceipt) XXX_DiscardUnknown()

func (*BlockReceipt) XXX_Marshal

func (m *BlockReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockReceipt) XXX_Merge

func (m *BlockReceipt) XXX_Merge(src proto.Message)

func (*BlockReceipt) XXX_Size

func (m *BlockReceipt) XXX_Size() int

func (*BlockReceipt) XXX_Unmarshal

func (m *BlockReceipt) XXX_Unmarshal(b []byte) error

type BlockSeq

type BlockSeq struct {
	Num                  int64          `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Seq                  *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Detail               *BlockDetail   `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*BlockSeq) Descriptor

func (*BlockSeq) Descriptor() ([]byte, []int)

func (*BlockSeq) GetDetail

func (m *BlockSeq) GetDetail() *BlockDetail

func (*BlockSeq) GetNum

func (m *BlockSeq) GetNum() int64

func (*BlockSeq) GetSeq

func (m *BlockSeq) GetSeq() *BlockSequence

func (*BlockSeq) ProtoMessage

func (*BlockSeq) ProtoMessage()

func (*BlockSeq) Reset

func (m *BlockSeq) Reset()

func (*BlockSeq) String

func (m *BlockSeq) String() string

func (*BlockSeq) XXX_DiscardUnknown

func (m *BlockSeq) XXX_DiscardUnknown()

func (*BlockSeq) XXX_Marshal

func (m *BlockSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSeq) XXX_Merge

func (m *BlockSeq) XXX_Merge(src proto.Message)

func (*BlockSeq) XXX_Size

func (m *BlockSeq) XXX_Size() int

func (*BlockSeq) XXX_Unmarshal

func (m *BlockSeq) XXX_Unmarshal(b []byte) error

type BlockSeqCB

type BlockSeqCB struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	URL                  string   `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"`
	Encode               string   `protobuf:"bytes,3,opt,name=encode,proto3" json:"encode,omitempty"`
	IsHeader             bool     `protobuf:"varint,4,opt,name=isHeader,proto3" json:"isHeader,omitempty"`
	LastSequence         int64    `protobuf:"varint,5,opt,name=lastSequence,proto3" json:"lastSequence,omitempty"`
	LastHeight           int64    `protobuf:"varint,6,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"`
	LastBlockHash        string   `protobuf:"bytes,7,opt,name=lastBlockHash,proto3" json:"lastBlockHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockSeqCB) Descriptor

func (*BlockSeqCB) Descriptor() ([]byte, []int)

func (*BlockSeqCB) GetEncode

func (m *BlockSeqCB) GetEncode() string

func (*BlockSeqCB) GetIsHeader

func (m *BlockSeqCB) GetIsHeader() bool

func (*BlockSeqCB) GetLastBlockHash

func (m *BlockSeqCB) GetLastBlockHash() string

func (*BlockSeqCB) GetLastHeight

func (m *BlockSeqCB) GetLastHeight() int64

func (*BlockSeqCB) GetLastSequence

func (m *BlockSeqCB) GetLastSequence() int64

func (*BlockSeqCB) GetName

func (m *BlockSeqCB) GetName() string

func (*BlockSeqCB) GetURL

func (m *BlockSeqCB) GetURL() string

func (*BlockSeqCB) ProtoMessage

func (*BlockSeqCB) ProtoMessage()

func (*BlockSeqCB) Reset

func (m *BlockSeqCB) Reset()

func (*BlockSeqCB) String

func (m *BlockSeqCB) String() string

func (*BlockSeqCB) XXX_DiscardUnknown

func (m *BlockSeqCB) XXX_DiscardUnknown()

func (*BlockSeqCB) XXX_Marshal

func (m *BlockSeqCB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSeqCB) XXX_Merge

func (m *BlockSeqCB) XXX_Merge(src proto.Message)

func (*BlockSeqCB) XXX_Size

func (m *BlockSeqCB) XXX_Size() int

func (*BlockSeqCB) XXX_Unmarshal

func (m *BlockSeqCB) XXX_Unmarshal(b []byte) error

type BlockSeqCBs

type BlockSeqCBs struct {
	Items                []*BlockSeqCB `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*BlockSeqCBs) Descriptor

func (*BlockSeqCBs) Descriptor() ([]byte, []int)

func (*BlockSeqCBs) GetItems

func (m *BlockSeqCBs) GetItems() []*BlockSeqCB

func (*BlockSeqCBs) ProtoMessage

func (*BlockSeqCBs) ProtoMessage()

func (*BlockSeqCBs) Reset

func (m *BlockSeqCBs) Reset()

func (*BlockSeqCBs) String

func (m *BlockSeqCBs) String() string

func (*BlockSeqCBs) XXX_DiscardUnknown

func (m *BlockSeqCBs) XXX_DiscardUnknown()

func (*BlockSeqCBs) XXX_Marshal

func (m *BlockSeqCBs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSeqCBs) XXX_Merge

func (m *BlockSeqCBs) XXX_Merge(src proto.Message)

func (*BlockSeqCBs) XXX_Size

func (m *BlockSeqCBs) XXX_Size() int

func (*BlockSeqCBs) XXX_Unmarshal

func (m *BlockSeqCBs) XXX_Unmarshal(b []byte) error

type BlockSeqs

type BlockSeqs struct {
	Seqs                 []*BlockSeq `protobuf:"bytes,1,rep,name=seqs,proto3" json:"seqs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*BlockSeqs) Descriptor

func (*BlockSeqs) Descriptor() ([]byte, []int)

func (*BlockSeqs) GetSeqs

func (m *BlockSeqs) GetSeqs() []*BlockSeq

func (*BlockSeqs) ProtoMessage

func (*BlockSeqs) ProtoMessage()

func (*BlockSeqs) Reset

func (m *BlockSeqs) Reset()

func (*BlockSeqs) String

func (m *BlockSeqs) String() string

func (*BlockSeqs) XXX_DiscardUnknown

func (m *BlockSeqs) XXX_DiscardUnknown()

func (*BlockSeqs) XXX_Marshal

func (m *BlockSeqs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSeqs) XXX_Merge

func (m *BlockSeqs) XXX_Merge(src proto.Message)

func (*BlockSeqs) XXX_Size

func (m *BlockSeqs) XXX_Size() int

func (*BlockSeqs) XXX_Unmarshal

func (m *BlockSeqs) XXX_Unmarshal(b []byte) error

type BlockSequence

type BlockSequence struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Type                 int64    `protobuf:"varint,2,opt,name=Type,proto3" json:"Type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通过block hash记录block的操作类型及add/del:1/2

func (*BlockSequence) Descriptor

func (*BlockSequence) Descriptor() ([]byte, []int)

func (*BlockSequence) GetHash

func (m *BlockSequence) GetHash() []byte

func (*BlockSequence) GetType

func (m *BlockSequence) GetType() int64

func (*BlockSequence) ProtoMessage

func (*BlockSequence) ProtoMessage()

func (*BlockSequence) Reset

func (m *BlockSequence) Reset()

func (*BlockSequence) String

func (m *BlockSequence) String() string

func (*BlockSequence) XXX_DiscardUnknown

func (m *BlockSequence) XXX_DiscardUnknown()

func (*BlockSequence) XXX_Marshal

func (m *BlockSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSequence) XXX_Merge

func (m *BlockSequence) XXX_Merge(src proto.Message)

func (*BlockSequence) XXX_Size

func (m *BlockSequence) XXX_Size() int

func (*BlockSequence) XXX_Unmarshal

func (m *BlockSequence) XXX_Unmarshal(b []byte) error

type BlockSequences

type BlockSequences struct {
	Items                []*BlockSequence `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

resp

func (*BlockSequences) Descriptor

func (*BlockSequences) Descriptor() ([]byte, []int)

func (*BlockSequences) GetItems

func (m *BlockSequences) GetItems() []*BlockSequence

func (*BlockSequences) ProtoMessage

func (*BlockSequences) ProtoMessage()

func (*BlockSequences) Reset

func (m *BlockSequences) Reset()

func (*BlockSequences) String

func (m *BlockSequences) String() string

func (*BlockSequences) XXX_DiscardUnknown

func (m *BlockSequences) XXX_DiscardUnknown()

func (*BlockSequences) XXX_Marshal

func (m *BlockSequences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSequences) XXX_Merge

func (m *BlockSequences) XXX_Merge(src proto.Message)

func (*BlockSequences) XXX_Size

func (m *BlockSequences) XXX_Size() int

func (*BlockSequences) XXX_Unmarshal

func (m *BlockSequences) XXX_Unmarshal(b []byte) error

type Blocks

type Blocks struct {
	Items                []*Block `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Blocks) Descriptor

func (*Blocks) Descriptor() ([]byte, []int)

func (*Blocks) GetItems

func (m *Blocks) GetItems() []*Block

func (*Blocks) ProtoMessage

func (*Blocks) ProtoMessage()

func (*Blocks) Reset

func (m *Blocks) Reset()

func (*Blocks) String

func (m *Blocks) String() string

func (*Blocks) XXX_DiscardUnknown

func (m *Blocks) XXX_DiscardUnknown()

func (*Blocks) XXX_Marshal

func (m *Blocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Blocks) XXX_Merge

func (m *Blocks) XXX_Merge(src proto.Message)

func (*Blocks) XXX_Size

func (m *Blocks) XXX_Size() int

func (*Blocks) XXX_Unmarshal

func (m *Blocks) XXX_Unmarshal(b []byte) error

type BroadCastData

type BroadCastData struct {
	// Types that are valid to be assigned to Value:
	//	*BroadCastData_Tx
	//	*BroadCastData_Block
	//	*BroadCastData_Ping
	//	*BroadCastData_Version
	//	*BroadCastData_LtTx
	//	*BroadCastData_LtBlock
	//	*BroadCastData_Query
	//	*BroadCastData_BlockRep
	Value                isBroadCastData_Value `protobuf_oneof:"value"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

* p2p 广播数据协议

func (*BroadCastData) Descriptor

func (*BroadCastData) Descriptor() ([]byte, []int)

func (*BroadCastData) GetBlock

func (m *BroadCastData) GetBlock() *P2PBlock

func (*BroadCastData) GetBlockRep

func (m *BroadCastData) GetBlockRep() *P2PBlockTxReply

func (*BroadCastData) GetLtBlock

func (m *BroadCastData) GetLtBlock() *LightBlock

func (*BroadCastData) GetLtTx

func (m *BroadCastData) GetLtTx() *LightTx

func (*BroadCastData) GetPing

func (m *BroadCastData) GetPing() *P2PPing

func (*BroadCastData) GetQuery

func (m *BroadCastData) GetQuery() *P2PQueryData

func (*BroadCastData) GetTx

func (m *BroadCastData) GetTx() *P2PTx

func (*BroadCastData) GetValue

func (m *BroadCastData) GetValue() isBroadCastData_Value

func (*BroadCastData) GetVersion

func (m *BroadCastData) GetVersion() *Versions

func (*BroadCastData) ProtoMessage

func (*BroadCastData) ProtoMessage()

func (*BroadCastData) Reset

func (m *BroadCastData) Reset()

func (*BroadCastData) String

func (m *BroadCastData) String() string

func (*BroadCastData) XXX_DiscardUnknown

func (m *BroadCastData) XXX_DiscardUnknown()

func (*BroadCastData) XXX_Marshal

func (m *BroadCastData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BroadCastData) XXX_Merge

func (m *BroadCastData) XXX_Merge(src proto.Message)

func (*BroadCastData) XXX_OneofWrappers

func (*BroadCastData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BroadCastData) XXX_Size

func (m *BroadCastData) XXX_Size() int

func (*BroadCastData) XXX_Unmarshal

func (m *BroadCastData) XXX_Unmarshal(b []byte) error

type BroadCastData_Block

type BroadCastData_Block struct {
	Block *P2PBlock `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}

type BroadCastData_BlockRep

type BroadCastData_BlockRep struct {
	BlockRep *P2PBlockTxReply `protobuf:"bytes,8,opt,name=blockRep,proto3,oneof"`
}

type BroadCastData_LtBlock

type BroadCastData_LtBlock struct {
	LtBlock *LightBlock `protobuf:"bytes,6,opt,name=ltBlock,proto3,oneof"`
}

type BroadCastData_LtTx

type BroadCastData_LtTx struct {
	LtTx *LightTx `protobuf:"bytes,5,opt,name=ltTx,proto3,oneof"`
}

type BroadCastData_Ping

type BroadCastData_Ping struct {
	Ping *P2PPing `protobuf:"bytes,3,opt,name=ping,proto3,oneof"`
}

type BroadCastData_Query

type BroadCastData_Query struct {
	Query *P2PQueryData `protobuf:"bytes,7,opt,name=query,proto3,oneof"`
}

type BroadCastData_Tx

type BroadCastData_Tx struct {
	Tx *P2PTx `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}

type BroadCastData_Version

type BroadCastData_Version struct {
	Version *Versions `protobuf:"bytes,4,opt,name=version,proto3,oneof"`
}

type Chain33Client

type Chain33Client interface {
	// chain33 对外提供服务的接口
	//区块链接口
	GetBlocks(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*Reply, error)
	//获取最新的区块头
	GetLastHeader(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Header, error)
	//交易接口
	CreateRawTransaction(ctx context.Context, in *CreateTx, opts ...grpc.CallOption) (*UnsignTx, error)
	CreateRawTxGroup(ctx context.Context, in *CreateTransactionGroup, opts ...grpc.CallOption) (*UnsignTx, error)
	// 根据哈希查询交易
	QueryTransaction(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*TransactionDetail, error)
	// 发送交易
	SendTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*Reply, error)
	//通过地址获取交易信息
	GetTransactionByAddr(ctx context.Context, in *ReqAddr, opts ...grpc.CallOption) (*ReplyTxInfos, error)
	//通过哈希数组获取对应的交易
	GetTransactionByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*TransactionDetails, error)
	//缓存接口
	GetMemPool(ctx context.Context, in *ReqGetMempool, opts ...grpc.CallOption) (*ReplyTxList, error)
	//钱包接口
	//获取钱包账户信息
	GetAccounts(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletAccounts, error)
	//创建钱包账户
	NewAccount(ctx context.Context, in *ReqNewAccount, opts ...grpc.CallOption) (*WalletAccount, error)
	//获取钱包的交易列表
	WalletTransactionList(ctx context.Context, in *ReqWalletTransactionList, opts ...grpc.CallOption) (*WalletTxDetails, error)
	//导入钱包私钥
	ImportPrivkey(ctx context.Context, in *ReqWalletImportPrivkey, opts ...grpc.CallOption) (*WalletAccount, error)
	// 发送交易
	SendToAddress(ctx context.Context, in *ReqWalletSendToAddress, opts ...grpc.CallOption) (*ReplyHash, error)
	//设置交易手续费
	SetTxFee(ctx context.Context, in *ReqWalletSetFee, opts ...grpc.CallOption) (*Reply, error)
	//设置标签
	SetLabl(ctx context.Context, in *ReqWalletSetLabel, opts ...grpc.CallOption) (*WalletAccount, error)
	//合并钱包余额
	MergeBalance(ctx context.Context, in *ReqWalletMergeBalance, opts ...grpc.CallOption) (*ReplyHashes, error)
	//设置钱包密码
	SetPasswd(ctx context.Context, in *ReqWalletSetPasswd, opts ...grpc.CallOption) (*Reply, error)
	//给钱包上锁
	Lock(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//给钱包解锁
	UnLock(ctx context.Context, in *WalletUnLock, opts ...grpc.CallOption) (*Reply, error)
	//获取最新的Mempool
	GetLastMemPool(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ReplyTxList, error)
	//获取最新的ProperFee
	GetProperFee(ctx context.Context, in *ReqProperFee, opts ...grpc.CallOption) (*ReplyProperFee, error)
	// 获取钱包状态
	GetWalletStatus(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletStatus, error)
	//区块浏览器接口
	///
	GetBlockOverview(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*BlockOverview, error)
	GetAddrOverview(ctx context.Context, in *ReqAddr, opts ...grpc.CallOption) (*AddrOverview, error)
	GetBlockHash(ctx context.Context, in *ReqInt, opts ...grpc.CallOption) (*ReplyHash, error)
	// seed
	// 创建seed
	GenSeed(ctx context.Context, in *GenSeedLang, opts ...grpc.CallOption) (*ReplySeed, error)
	//获取seed
	GetSeed(ctx context.Context, in *GetSeedByPw, opts ...grpc.CallOption) (*ReplySeed, error)
	//保存seed
	SaveSeed(ctx context.Context, in *SaveSeedByPw, opts ...grpc.CallOption) (*Reply, error)
	// Balance Query
	//获取余额
	GetBalance(ctx context.Context, in *ReqBalance, opts ...grpc.CallOption) (*Accounts, error)
	QueryChain(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
	ExecWallet(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
	QueryConsensus(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
	CreateTransaction(ctx context.Context, in *CreateTxIn, opts ...grpc.CallOption) (*UnsignTx, error)
	//获取交易的十六进制编码
	GetHexTxByHash(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*HexTx, error)
	// 导出私钥
	DumpPrivkey(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*ReplyString, error)
	// 导出全部私钥到文件
	DumpPrivkeysFile(ctx context.Context, in *ReqPrivkeysFile, opts ...grpc.CallOption) (*Reply, error)
	// 从文件中批量导入私钥
	ImportPrivkeysFile(ctx context.Context, in *ReqPrivkeysFile, opts ...grpc.CallOption) (*Reply, error)
	//获取程序版本
	Version(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*VersionInfo, error)
	//是否同步
	IsSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取当前节点连接的其他节点信息
	GetPeerInfo(ctx context.Context, in *P2PGetPeerReq, opts ...grpc.CallOption) (*PeerList, error)
	//获取当前节点的网络信息
	NetInfo(ctx context.Context, in *P2PGetNetInfoReq, opts ...grpc.CallOption) (*NodeNetInfo, error)
	// ntpclock是否同步
	IsNtpClockSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取系统致命故障信息
	GetFatalFailure(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Int32, error)
	GetLastBlockSequence(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Int64, error)
	// get add block's sequence by hash
	GetSequenceByHash(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*Int64, error)
	//通过block hash 获取对应的blocks信息
	GetBlockByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*BlockDetails, error)
	//通过block seq 获取对应的blocks hash 信息
	GetBlockBySeq(ctx context.Context, in *Int64, opts ...grpc.CallOption) (*BlockSeq, error)
	//关闭chain33
	CloseQueue(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取地址所以合约下的余额
	GetAllExecBalance(ctx context.Context, in *ReqAllExecBalance, opts ...grpc.CallOption) (*AllExecBalance, error)
	//签名交易
	SignRawTx(ctx context.Context, in *ReqSignRawTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	CreateNoBalanceTransaction(ctx context.Context, in *NoBalanceTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	// 获取随机HASH
	QueryRandNum(ctx context.Context, in *ReqRandHash, opts ...grpc.CallOption) (*ReplyHash, error)
	// 获取是否达到fork高度
	GetFork(ctx context.Context, in *ReqKey, opts ...grpc.CallOption) (*Int64, error)
	CreateNoBalanceTxs(ctx context.Context, in *NoBalanceTxs, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	//通过seq以及title获取对应平行连的交易
	GetParaTxByTitle(ctx context.Context, in *ReqParaTxByTitle, opts ...grpc.CallOption) (*ParaTxDetails, error)
	//获取拥有此title交易的区块高度
	LoadParaTxByTitle(ctx context.Context, in *ReqHeightByTitle, opts ...grpc.CallOption) (*ReplyHeightByTitle, error)
	//通过区块高度列表+title获取平行链交易
	GetParaTxByHeight(ctx context.Context, in *ReqParaTxByHeight, opts ...grpc.CallOption) (*ParaTxDetails, error)
	//获取区块头信息
	GetHeaders(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*Headers, error)
}

Chain33Client is the client API for Chain33 service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChain33Client

func NewChain33Client(cc grpc.ClientConnInterface) Chain33Client

type Chain33Config

type Chain33Config struct {
	// contains filtered or unexported fields
}

func GetCliSysParam

func GetCliSysParam(title string) *Chain33Config

func NewChain33Config

func NewChain33Config(cfgstring string) *Chain33Config

func NewChain33ConfigNoInit

func NewChain33ConfigNoInit(cfgstring string) *Chain33Config

func (*Chain33Config) CalcTxKey

func (c *Chain33Config) CalcTxKey(hash []byte) []byte

CalcTxKey local db中保存交易的方法

func (*Chain33Config) CalcTxKeyValue

func (c *Chain33Config) CalcTxKeyValue(txr *TxResult) []byte

CalcTxKeyValue 保存local db中保存交易的方法

func (*Chain33Config) EnableCheckFork

func (c *Chain33Config) EnableCheckFork(enable bool)

func (*Chain33Config) ExecName

func (c *Chain33Config) ExecName(name string) string

ExecName 执行器name

func (*Chain33Config) G

func (c *Chain33Config) G(key string) (value interface{}, err error)

G 获取ChainConfig中的配置

func (*Chain33Config) GInt

func (c *Chain33Config) GInt(name string) int64

GInt 解析ChainConfig配置

func (*Chain33Config) GStr

func (c *Chain33Config) GStr(name string) string

GStr 获取ChainConfig中的字符串格式

func (*Chain33Config) GetCoinSymbol

func (c *Chain33Config) GetCoinSymbol() string

GetCoinSymbol 获取 coin symbol

func (*Chain33Config) GetDappFork

func (c *Chain33Config) GetDappFork(dapp, fork string) int64

GetDappFork 获取dapp fork高度

func (*Chain33Config) GetFork

func (c *Chain33Config) GetFork(fork string) int64

GetFork 获取系统fork高度

func (*Chain33Config) GetForks

func (c *Chain33Config) GetForks() (map[string]int64, error)

func (*Chain33Config) GetFundAddr

func (c *Chain33Config) GetFundAddr() string

GetFundAddr 获取基金账户地址

func (*Chain33Config) GetMaxTxFee

func (c *Chain33Config) GetMaxTxFee() int64

GetMaxTxFee get max transaction fee

func (*Chain33Config) GetMaxTxFeeRate

func (c *Chain33Config) GetMaxTxFeeRate() int64

GetMaxTxFeeRate get max transaction fee rate

func (*Chain33Config) GetMinTxFeeRate

func (c *Chain33Config) GetMinTxFeeRate() int64

GetMinTxFeeRate get min transaction fee rate

func (*Chain33Config) GetMinerExecs

func (c *Chain33Config) GetMinerExecs() []string

GetMinerExecs 获取挖矿的合约名单

func (*Chain33Config) GetModuleConfig

func (c *Chain33Config) GetModuleConfig() *Config

func (*Chain33Config) GetP

func (c *Chain33Config) GetP(height int64) *ChainParam

GetP 获取ChainParam

func (*Chain33Config) GetParaExec

func (c *Chain33Config) GetParaExec(execer []byte) []byte

GetParaExec 获取平行链执行

func (*Chain33Config) GetParaName

func (c *Chain33Config) GetParaName() string

GetParaName 获取平行链name

func (*Chain33Config) GetSubConfig

func (c *Chain33Config) GetSubConfig() *ConfigSubModule

func (*Chain33Config) GetTitle

func (c *Chain33Config) GetTitle() string

GetTitle 获取title

func (*Chain33Config) HasConf

func (c *Chain33Config) HasConf(key string) bool

HasConf 解析chainConfig配置

func (*Chain33Config) HasFork

func (c *Chain33Config) HasFork(fork string) bool

HasFork 是否有系统fork

func (*Chain33Config) IsDappFork

func (c *Chain33Config) IsDappFork(height int64, dapp, fork string) bool

IsDappFork 是否dapp fork高度

func (*Chain33Config) IsEnable

func (c *Chain33Config) IsEnable(name string) bool

IsEnable 解析ChainConfig配置

func (*Chain33Config) IsEnableFork

func (c *Chain33Config) IsEnableFork(height int64, fork string, enable bool) bool

IsEnableFork 是否使能了fork

func (*Chain33Config) IsFork

func (c *Chain33Config) IsFork(height int64, fork string) bool

IsFork 是否系统 fork高度

func (*Chain33Config) IsLocal

func (c *Chain33Config) IsLocal() bool

IsLocal 是否locak title

func (*Chain33Config) IsMyParaExecName

func (c *Chain33Config) IsMyParaExecName(exec string) bool

IsMyParaExecName 是否是我的para链的执行器

func (*Chain33Config) IsPara

func (c *Chain33Config) IsPara() bool

IsPara 是否平行链

func (*Chain33Config) IsTestNet

func (c *Chain33Config) IsTestNet() bool

IsTestNet 是否测试链

func (*Chain33Config) MG

func (c *Chain33Config) MG(key string, height int64) (value interface{}, err error)

MG 获取mver config中的配置

func (*Chain33Config) MGInt

func (c *Chain33Config) MGInt(name string, height int64) int64

MGInt 解析mver config 配置

func (*Chain33Config) MGStr

func (c *Chain33Config) MGStr(name string, height int64) string

MGStr 获取mver config 中的字符串格式

func (*Chain33Config) MIsEnable

func (c *Chain33Config) MIsEnable(name string, height int64) bool

MIsEnable 解析mver config 配置

func (*Chain33Config) ManaeKeyWithHeigh

func (c *Chain33Config) ManaeKeyWithHeigh(key string, height int64) string

ManaeKeyWithHeigh 超级管理员账户key

func (*Chain33Config) RegisterDappFork

func (c *Chain33Config) RegisterDappFork(dapp, fork string, height int64)

RegisterDappFork 注册dapp fork高度

func (*Chain33Config) S

func (c *Chain33Config) S(key string, value interface{})

S 设置chainConfig配置

func (*Chain33Config) SetDappFork

func (c *Chain33Config) SetDappFork(dapp, fork string, height int64)

SetDappFork 设置dapp fork高度

func (*Chain33Config) SetMinFee

func (c *Chain33Config) SetMinFee(fee int64)

SetMinFee 设置最小费用

func (*Chain33Config) SetTitleOnlyForTest

func (c *Chain33Config) SetTitleOnlyForTest(ti string)

SetTitleOnlyForTest set title only for test use

func (*Chain33Config) SetTxFeeConfig

func (c *Chain33Config) SetTxFeeConfig(minTxFeeRate, maxTxFeeRate, maxTxFee int64)

SetTxFeeConfig 设置交易费相关配置

type Chain33Server

type Chain33Server interface {
	// chain33 对外提供服务的接口
	//区块链接口
	GetBlocks(context.Context, *ReqBlocks) (*Reply, error)
	//获取最新的区块头
	GetLastHeader(context.Context, *ReqNil) (*Header, error)
	//交易接口
	CreateRawTransaction(context.Context, *CreateTx) (*UnsignTx, error)
	CreateRawTxGroup(context.Context, *CreateTransactionGroup) (*UnsignTx, error)
	// 根据哈希查询交易
	QueryTransaction(context.Context, *ReqHash) (*TransactionDetail, error)
	// 发送交易
	SendTransaction(context.Context, *Transaction) (*Reply, error)
	//通过地址获取交易信息
	GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)
	//通过哈希数组获取对应的交易
	GetTransactionByHashes(context.Context, *ReqHashes) (*TransactionDetails, error)
	//缓存接口
	GetMemPool(context.Context, *ReqGetMempool) (*ReplyTxList, error)
	//钱包接口
	//获取钱包账户信息
	GetAccounts(context.Context, *ReqNil) (*WalletAccounts, error)
	//创建钱包账户
	NewAccount(context.Context, *ReqNewAccount) (*WalletAccount, error)
	//获取钱包的交易列表
	WalletTransactionList(context.Context, *ReqWalletTransactionList) (*WalletTxDetails, error)
	//导入钱包私钥
	ImportPrivkey(context.Context, *ReqWalletImportPrivkey) (*WalletAccount, error)
	// 发送交易
	SendToAddress(context.Context, *ReqWalletSendToAddress) (*ReplyHash, error)
	//设置交易手续费
	SetTxFee(context.Context, *ReqWalletSetFee) (*Reply, error)
	//设置标签
	SetLabl(context.Context, *ReqWalletSetLabel) (*WalletAccount, error)
	//合并钱包余额
	MergeBalance(context.Context, *ReqWalletMergeBalance) (*ReplyHashes, error)
	//设置钱包密码
	SetPasswd(context.Context, *ReqWalletSetPasswd) (*Reply, error)
	//给钱包上锁
	Lock(context.Context, *ReqNil) (*Reply, error)
	//给钱包解锁
	UnLock(context.Context, *WalletUnLock) (*Reply, error)
	//获取最新的Mempool
	GetLastMemPool(context.Context, *ReqNil) (*ReplyTxList, error)
	//获取最新的ProperFee
	GetProperFee(context.Context, *ReqProperFee) (*ReplyProperFee, error)
	// 获取钱包状态
	GetWalletStatus(context.Context, *ReqNil) (*WalletStatus, error)
	//区块浏览器接口
	///
	GetBlockOverview(context.Context, *ReqHash) (*BlockOverview, error)
	GetAddrOverview(context.Context, *ReqAddr) (*AddrOverview, error)
	GetBlockHash(context.Context, *ReqInt) (*ReplyHash, error)
	// seed
	// 创建seed
	GenSeed(context.Context, *GenSeedLang) (*ReplySeed, error)
	//获取seed
	GetSeed(context.Context, *GetSeedByPw) (*ReplySeed, error)
	//保存seed
	SaveSeed(context.Context, *SaveSeedByPw) (*Reply, error)
	// Balance Query
	//获取余额
	GetBalance(context.Context, *ReqBalance) (*Accounts, error)
	QueryChain(context.Context, *ChainExecutor) (*Reply, error)
	ExecWallet(context.Context, *ChainExecutor) (*Reply, error)
	QueryConsensus(context.Context, *ChainExecutor) (*Reply, error)
	CreateTransaction(context.Context, *CreateTxIn) (*UnsignTx, error)
	//获取交易的十六进制编码
	GetHexTxByHash(context.Context, *ReqHash) (*HexTx, error)
	// 导出私钥
	DumpPrivkey(context.Context, *ReqString) (*ReplyString, error)
	// 导出全部私钥到文件
	DumpPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
	// 从文件中批量导入私钥
	ImportPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
	//获取程序版本
	Version(context.Context, *ReqNil) (*VersionInfo, error)
	//是否同步
	IsSync(context.Context, *ReqNil) (*Reply, error)
	//获取当前节点连接的其他节点信息
	GetPeerInfo(context.Context, *P2PGetPeerReq) (*PeerList, error)
	//获取当前节点的网络信息
	NetInfo(context.Context, *P2PGetNetInfoReq) (*NodeNetInfo, error)
	// ntpclock是否同步
	IsNtpClockSync(context.Context, *ReqNil) (*Reply, error)
	//获取系统致命故障信息
	GetFatalFailure(context.Context, *ReqNil) (*Int32, error)
	GetLastBlockSequence(context.Context, *ReqNil) (*Int64, error)
	// get add block's sequence by hash
	GetSequenceByHash(context.Context, *ReqHash) (*Int64, error)
	//通过block hash 获取对应的blocks信息
	GetBlockByHashes(context.Context, *ReqHashes) (*BlockDetails, error)
	//通过block seq 获取对应的blocks hash 信息
	GetBlockBySeq(context.Context, *Int64) (*BlockSeq, error)
	//关闭chain33
	CloseQueue(context.Context, *ReqNil) (*Reply, error)
	//获取地址所以合约下的余额
	GetAllExecBalance(context.Context, *ReqAllExecBalance) (*AllExecBalance, error)
	//签名交易
	SignRawTx(context.Context, *ReqSignRawTx) (*ReplySignRawTx, error)
	CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, error)
	// 获取随机HASH
	QueryRandNum(context.Context, *ReqRandHash) (*ReplyHash, error)
	// 获取是否达到fork高度
	GetFork(context.Context, *ReqKey) (*Int64, error)
	CreateNoBalanceTxs(context.Context, *NoBalanceTxs) (*ReplySignRawTx, error)
	//通过seq以及title获取对应平行连的交易
	GetParaTxByTitle(context.Context, *ReqParaTxByTitle) (*ParaTxDetails, error)
	//获取拥有此title交易的区块高度
	LoadParaTxByTitle(context.Context, *ReqHeightByTitle) (*ReplyHeightByTitle, error)
	//通过区块高度列表+title获取平行链交易
	GetParaTxByHeight(context.Context, *ReqParaTxByHeight) (*ParaTxDetails, error)
	//获取区块头信息
	GetHeaders(context.Context, *ReqBlocks) (*Headers, error)
}

Chain33Server is the server API for Chain33 service.

type ChainExecutor

type ChainExecutor struct {
	Driver    string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	FuncName  string `protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
	StateHash []byte `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Param     []byte `protobuf:"bytes,4,opt,name=param,proto3" json:"param,omitempty"`
	//扩展字段,用于额外的用途
	Extra                []byte   `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChainExecutor) Descriptor

func (*ChainExecutor) Descriptor() ([]byte, []int)

func (*ChainExecutor) GetDriver

func (m *ChainExecutor) GetDriver() string

func (*ChainExecutor) GetExtra

func (m *ChainExecutor) GetExtra() []byte

func (*ChainExecutor) GetFuncName

func (m *ChainExecutor) GetFuncName() string

func (*ChainExecutor) GetParam

func (m *ChainExecutor) GetParam() []byte

func (*ChainExecutor) GetStateHash

func (m *ChainExecutor) GetStateHash() []byte

func (*ChainExecutor) ProtoMessage

func (*ChainExecutor) ProtoMessage()

func (*ChainExecutor) Reset

func (m *ChainExecutor) Reset()

func (*ChainExecutor) String

func (m *ChainExecutor) String() string

func (*ChainExecutor) XXX_DiscardUnknown

func (m *ChainExecutor) XXX_DiscardUnknown()

func (*ChainExecutor) XXX_Marshal

func (m *ChainExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainExecutor) XXX_Merge

func (m *ChainExecutor) XXX_Merge(src proto.Message)

func (*ChainExecutor) XXX_Size

func (m *ChainExecutor) XXX_Size() int

func (*ChainExecutor) XXX_Unmarshal

func (m *ChainExecutor) XXX_Unmarshal(b []byte) error

type ChainParam

type ChainParam struct {
	MaxTxNumber  int64
	PowLimitBits uint32
}

ChainParam 结构体

type ChainStatus

type ChainStatus struct {
	CurrentHeight        int64    `protobuf:"varint,1,opt,name=currentHeight,proto3" json:"currentHeight,omitempty"`
	MempoolSize          int64    `protobuf:"varint,2,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
	MsgQueueSize         int64    `protobuf:"varint,3,opt,name=msgQueueSize,proto3" json:"msgQueueSize,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

区块链状态

currentHeight : 区块最新高度
mempoolSize :内存池大小
msgQueueSize : 消息队列大小

func (*ChainStatus) Descriptor

func (*ChainStatus) Descriptor() ([]byte, []int)

func (*ChainStatus) GetCurrentHeight

func (m *ChainStatus) GetCurrentHeight() int64

func (*ChainStatus) GetMempoolSize

func (m *ChainStatus) GetMempoolSize() int64

func (*ChainStatus) GetMsgQueueSize

func (m *ChainStatus) GetMsgQueueSize() int64

func (*ChainStatus) ProtoMessage

func (*ChainStatus) ProtoMessage()

func (*ChainStatus) Reset

func (m *ChainStatus) Reset()

func (*ChainStatus) String

func (m *ChainStatus) String() string

func (*ChainStatus) XXX_DiscardUnknown

func (m *ChainStatus) XXX_DiscardUnknown()

func (*ChainStatus) XXX_Marshal

func (m *ChainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainStatus) XXX_Merge

func (m *ChainStatus) XXX_Merge(src proto.Message)

func (*ChainStatus) XXX_Size

func (m *ChainStatus) XXX_Size() int

func (*ChainStatus) XXX_Unmarshal

func (m *ChainStatus) XXX_Unmarshal(b []byte) error

type Checkpoint

type Checkpoint struct {
	Sequence             uint32   `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest               []byte   `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Checkpoint) Descriptor

func (*Checkpoint) Descriptor() ([]byte, []int)

func (*Checkpoint) GetDigest

func (m *Checkpoint) GetDigest() []byte

func (*Checkpoint) GetSequence

func (m *Checkpoint) GetSequence() uint32

func (*Checkpoint) ProtoMessage

func (*Checkpoint) ProtoMessage()

func (*Checkpoint) Reset

func (m *Checkpoint) Reset()

func (*Checkpoint) String

func (m *Checkpoint) String() string

func (*Checkpoint) XXX_DiscardUnknown

func (m *Checkpoint) XXX_DiscardUnknown()

func (*Checkpoint) XXX_Marshal

func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Checkpoint) XXX_Merge

func (m *Checkpoint) XXX_Merge(src proto.Message)

func (*Checkpoint) XXX_Size

func (m *Checkpoint) XXX_Size() int

func (*Checkpoint) XXX_Unmarshal

func (m *Checkpoint) XXX_Unmarshal(b []byte) error

type ChildChain

type ChildChain struct {
	Title                string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	StartIndex           int32    `protobuf:"varint,2,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	ChildHash            []byte   `protobuf:"bytes,3,opt,name=childHash,proto3" json:"childHash,omitempty"`
	TxCount              int32    `protobuf:"varint,4,opt,name=txCount,proto3" json:"txCount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

记录平行链第一笔交易的index,以及平行链的roothash title:子链名字,主链的默认是main startIndex:子链第一笔交易的索引 childHash:子链的根hash txCount:子链交易的数量

func (*ChildChain) Descriptor

func (*ChildChain) Descriptor() ([]byte, []int)

func (*ChildChain) GetChildHash

func (m *ChildChain) GetChildHash() []byte

func (*ChildChain) GetStartIndex

func (m *ChildChain) GetStartIndex() int32

func (*ChildChain) GetTitle

func (m *ChildChain) GetTitle() string

func (*ChildChain) GetTxCount

func (m *ChildChain) GetTxCount() int32

func (*ChildChain) ProtoMessage

func (*ChildChain) ProtoMessage()

func (*ChildChain) Reset

func (m *ChildChain) Reset()

func (*ChildChain) String

func (m *ChildChain) String() string

func (*ChildChain) XXX_DiscardUnknown

func (m *ChildChain) XXX_DiscardUnknown()

func (*ChildChain) XXX_Marshal

func (m *ChildChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChildChain) XXX_Merge

func (m *ChildChain) XXX_Merge(src proto.Message)

func (*ChildChain) XXX_Size

func (m *ChildChain) XXX_Size() int

func (*ChildChain) XXX_Unmarshal

func (m *ChildChain) XXX_Unmarshal(b []byte) error

type ClientReply

type ClientReply struct {
	View                 uint32   `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Timestamp            string   `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Client               string   `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	Replica              uint32   `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
	Result               *Result  `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientReply) Descriptor

func (*ClientReply) Descriptor() ([]byte, []int)

func (*ClientReply) GetClient

func (m *ClientReply) GetClient() string

func (*ClientReply) GetReplica

func (m *ClientReply) GetReplica() uint32

func (*ClientReply) GetResult

func (m *ClientReply) GetResult() *Result

func (*ClientReply) GetTimestamp

func (m *ClientReply) GetTimestamp() string

func (*ClientReply) GetView

func (m *ClientReply) GetView() uint32

func (*ClientReply) ProtoMessage

func (*ClientReply) ProtoMessage()

func (*ClientReply) Reset

func (m *ClientReply) Reset()

func (*ClientReply) String

func (m *ClientReply) String() string

func (*ClientReply) XXX_DiscardUnknown

func (m *ClientReply) XXX_DiscardUnknown()

func (*ClientReply) XXX_Marshal

func (m *ClientReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientReply) XXX_Merge

func (m *ClientReply) XXX_Merge(src proto.Message)

func (*ClientReply) XXX_Size

func (m *ClientReply) XXX_Size() int

func (*ClientReply) XXX_Unmarshal

func (m *ClientReply) XXX_Unmarshal(b []byte) error

type CmpBlock

type CmpBlock struct {
	Block                *Block   `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	CmpHash              []byte   `protobuf:"bytes,2,opt,name=cmpHash,proto3" json:"cmpHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

用于比较最优区块的消息结构

func (*CmpBlock) Descriptor

func (*CmpBlock) Descriptor() ([]byte, []int)

func (*CmpBlock) GetBlock

func (m *CmpBlock) GetBlock() *Block

func (*CmpBlock) GetCmpHash

func (m *CmpBlock) GetCmpHash() []byte

func (*CmpBlock) ProtoMessage

func (*CmpBlock) ProtoMessage()

func (*CmpBlock) Reset

func (m *CmpBlock) Reset()

func (*CmpBlock) String

func (m *CmpBlock) String() string

func (*CmpBlock) XXX_DiscardUnknown

func (m *CmpBlock) XXX_DiscardUnknown()

func (*CmpBlock) XXX_Marshal

func (m *CmpBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CmpBlock) XXX_Merge

func (m *CmpBlock) XXX_Merge(src proto.Message)

func (*CmpBlock) XXX_Size

func (m *CmpBlock) XXX_Size() int

func (*CmpBlock) XXX_Unmarshal

func (m *CmpBlock) XXX_Unmarshal(b []byte) error

type ConfQuery

type ConfQuery struct {
	// contains filtered or unexported fields
}

ConfQuery 结构体

func Conf

func Conf(cfg *Chain33Config, prefix string) *ConfQuery

Conf 配置

func ConfSub

func ConfSub(cfg *Chain33Config, name string) *ConfQuery

ConfSub 子模块配置

func (*ConfQuery) G

func (query *ConfQuery) G(key string) (interface{}, error)

G 获取指定key的配置信息

func (*ConfQuery) GInt

func (query *ConfQuery) GInt(key string) int64

GInt 解析int类型

func (*ConfQuery) GStr

func (query *ConfQuery) GStr(key string) string

GStr 解析string类型

func (*ConfQuery) GStrList

func (query *ConfQuery) GStrList(key string) []string

GStrList 解析字符串列表

func (*ConfQuery) IsEnable

func (query *ConfQuery) IsEnable(key string) bool

IsEnable 解析bool类型

func (*ConfQuery) MG

func (query *ConfQuery) MG(key string, height int64) (interface{}, error)

MG 解析mversion

func (*ConfQuery) MGInt

func (query *ConfQuery) MGInt(key string, height int64) int64

MGInt 解析mversion int类型配置

func (*ConfQuery) MGStr

func (query *ConfQuery) MGStr(key string, height int64) string

MGStr 解析mversion string类型配置

func (*ConfQuery) MGStrList

func (query *ConfQuery) MGStrList(key string, height int64) []string

MGStrList 解析mversion string list类型配置

func (*ConfQuery) MIsEnable

func (query *ConfQuery) MIsEnable(key string, height int64) bool

MIsEnable 解析mversion bool类型配置

type Config

type Config struct {
	Title          string       `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Version        string       `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	Log            *Log         `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
	Store          *Store       `protobuf:"bytes,4,opt,name=store" json:"store,omitempty"`
	Consensus      *Consensus   `protobuf:"bytes,5,opt,name=consensus" json:"consensus,omitempty"`
	Mempool        *Mempool     `protobuf:"bytes,6,opt,name=mempool" json:"memPool,omitempty"`
	BlockChain     *BlockChain  `protobuf:"bytes,7,opt,name=blockChain" json:"blockChain,omitempty"`
	Wallet         *Wallet      `protobuf:"bytes,8,opt,name=wallet" json:"wallet,omitempty"`
	P2P            *P2P         `protobuf:"bytes,9,opt,name=p2p" json:"p2p,omitempty"`
	RPC            *RPC         `protobuf:"bytes,10,opt,name=rpc" json:"rpc,omitempty"`
	Exec           *Exec        `protobuf:"bytes,11,opt,name=exec" json:"exec,omitempty"`
	TestNet        bool         `protobuf:"varint,12,opt,name=testNet" json:"testNet,omitempty"`
	FixTime        bool         `protobuf:"varint,13,opt,name=fixTime" json:"fixTime,omitempty"`
	Pprof          *Pprof       `protobuf:"bytes,14,opt,name=pprof" json:"pprof,omitempty"`
	Fork           *ForkList    `protobuf:"bytes,15,opt,name=fork" json:"fork,omitempty"`
	Health         *HealthCheck `protobuf:"bytes,16,opt,name=health" json:"health,omitempty"`
	CoinSymbol     string       `protobuf:"bytes,17,opt,name=coinSymbol" json:"coinSymbol,omitempty"`
	EnableParaFork bool         `protobuf:"bytes,18,opt,name=enableParaFork" json:"enableParaFork,omitempty"`
	Metrics        *Metrics     `protobuf:"bytes,19,opt,name=metrics" json:"metrics,omitempty"`
}

Config 配置信息

type ConfigItem

type ConfigItem struct {
	Key  string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*ConfigItem_Arr
	//	*ConfigItem_Str
	//	*ConfigItem_Int
	Value                isConfigItem_Value `protobuf_oneof:"value"`
	Ty                   int32              `protobuf:"varint,11,opt,name=Ty,proto3" json:"Ty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*ConfigItem) Descriptor

func (*ConfigItem) Descriptor() ([]byte, []int)

func (*ConfigItem) GetAddr

func (m *ConfigItem) GetAddr() string

func (*ConfigItem) GetArr

func (m *ConfigItem) GetArr() *ArrayConfig

func (*ConfigItem) GetInt

func (m *ConfigItem) GetInt() *Int32Config

func (*ConfigItem) GetKey

func (m *ConfigItem) GetKey() string

func (*ConfigItem) GetStr

func (m *ConfigItem) GetStr() *StringConfig

func (*ConfigItem) GetTy

func (m *ConfigItem) GetTy() int32

func (*ConfigItem) GetValue

func (m *ConfigItem) GetValue() isConfigItem_Value

func (*ConfigItem) ProtoMessage

func (*ConfigItem) ProtoMessage()

func (*ConfigItem) Reset

func (m *ConfigItem) Reset()

func (*ConfigItem) String

func (m *ConfigItem) String() string

func (*ConfigItem) XXX_DiscardUnknown

func (m *ConfigItem) XXX_DiscardUnknown()

func (*ConfigItem) XXX_Marshal

func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigItem) XXX_Merge

func (m *ConfigItem) XXX_Merge(src proto.Message)

func (*ConfigItem) XXX_OneofWrappers

func (*ConfigItem) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ConfigItem) XXX_Size

func (m *ConfigItem) XXX_Size() int

func (*ConfigItem) XXX_Unmarshal

func (m *ConfigItem) XXX_Unmarshal(b []byte) error

type ConfigItem_Arr

type ConfigItem_Arr struct {
	Arr *ArrayConfig `protobuf:"bytes,3,opt,name=arr,proto3,oneof"`
}

type ConfigItem_Int

type ConfigItem_Int struct {
	Int *Int32Config `protobuf:"bytes,5,opt,name=int,proto3,oneof"`
}

type ConfigItem_Str

type ConfigItem_Str struct {
	Str *StringConfig `protobuf:"bytes,4,opt,name=str,proto3,oneof"`
}

type ConfigSubModule

type ConfigSubModule struct {
	Store     map[string][]byte
	Exec      map[string][]byte
	Consensus map[string][]byte
	Wallet    map[string][]byte
	Mempool   map[string][]byte
	Metrics   map[string][]byte
	P2P       map[string][]byte
}

ConfigSubModule 子模块的配置

type Consensus

type Consensus struct {
	// 共识名称 :solo, ticket, raft, tendermint, para
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// 创世区块时间(UTC时间)
	GenesisBlockTime int64 `protobuf:"varint,2,opt,name=genesisBlockTime" json:"genesisBlockTime,omitempty"`
	// 是否开启挖矿,开启挖矿才能创建区块
	Minerstart bool `protobuf:"varint,3,opt,name=minerstart" json:"minerstart,omitempty"`
	// 创世交易地址
	Genesis     string `protobuf:"bytes,4,opt,name=genesis" json:"genesis,omitempty"`
	HotkeyAddr  string `protobuf:"bytes,5,opt,name=hotkeyAddr" json:"hotkeyAddr,omitempty"`
	ForceMining bool   `protobuf:"varint,6,opt,name=forceMining" json:"forceMining,omitempty"`
	// 配置挖矿的合约名单
	MinerExecs []string `protobuf:"bytes,7,rep,name=minerExecs" json:"minerExecs,omitempty"`
	// 最优区块选择
	EnableBestBlockCmp bool `protobuf:"bytes,8,rep,name=enableBestBlockCmp" json:"enableBestBlockCmp,omitempty"`
}

Consensus 配置

type Create

type Create func(cfg *Chain33Config)

type CreateTransactionGroup

type CreateTransactionGroup struct {
	Txs                  []string `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTransactionGroup) Descriptor

func (*CreateTransactionGroup) Descriptor() ([]byte, []int)

func (*CreateTransactionGroup) GetTxs

func (m *CreateTransactionGroup) GetTxs() []string

func (*CreateTransactionGroup) ProtoMessage

func (*CreateTransactionGroup) ProtoMessage()

func (*CreateTransactionGroup) Reset

func (m *CreateTransactionGroup) Reset()

func (*CreateTransactionGroup) String

func (m *CreateTransactionGroup) String() string

func (*CreateTransactionGroup) XXX_DiscardUnknown

func (m *CreateTransactionGroup) XXX_DiscardUnknown()

func (*CreateTransactionGroup) XXX_Marshal

func (m *CreateTransactionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTransactionGroup) XXX_Merge

func (m *CreateTransactionGroup) XXX_Merge(src proto.Message)

func (*CreateTransactionGroup) XXX_Size

func (m *CreateTransactionGroup) XXX_Size() int

func (*CreateTransactionGroup) XXX_Unmarshal

func (m *CreateTransactionGroup) XXX_Unmarshal(b []byte) error

type CreateTx

type CreateTx struct {
	To                   string   `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Fee                  int64    `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
	Note                 []byte   `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	IsWithdraw           bool     `protobuf:"varint,5,opt,name=isWithdraw,proto3" json:"isWithdraw,omitempty"`
	IsToken              bool     `protobuf:"varint,6,opt,name=isToken,proto3" json:"isToken,omitempty"`
	TokenSymbol          string   `protobuf:"bytes,7,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	ExecName             string   `protobuf:"bytes,8,opt,name=execName,proto3" json:"execName,omitempty"`
	Execer               string   `protobuf:"bytes,9,opt,name=execer,proto3" json:"execer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTx) Descriptor

func (*CreateTx) Descriptor() ([]byte, []int)

func (*CreateTx) GetAmount

func (m *CreateTx) GetAmount() int64

func (*CreateTx) GetExecName

func (m *CreateTx) GetExecName() string

func (*CreateTx) GetExecer

func (m *CreateTx) GetExecer() string

func (*CreateTx) GetFee

func (m *CreateTx) GetFee() int64

func (*CreateTx) GetIsToken

func (m *CreateTx) GetIsToken() bool

func (*CreateTx) GetIsWithdraw

func (m *CreateTx) GetIsWithdraw() bool

func (*CreateTx) GetNote

func (m *CreateTx) GetNote() []byte

func (*CreateTx) GetTo

func (m *CreateTx) GetTo() string

func (*CreateTx) GetTokenSymbol

func (m *CreateTx) GetTokenSymbol() string

func (*CreateTx) ProtoMessage

func (*CreateTx) ProtoMessage()

func (*CreateTx) Reset

func (m *CreateTx) Reset()

func (*CreateTx) String

func (m *CreateTx) String() string

func (*CreateTx) XXX_DiscardUnknown

func (m *CreateTx) XXX_DiscardUnknown()

func (*CreateTx) XXX_Marshal

func (m *CreateTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTx) XXX_Merge

func (m *CreateTx) XXX_Merge(src proto.Message)

func (*CreateTx) XXX_Size

func (m *CreateTx) XXX_Size() int

func (*CreateTx) XXX_Unmarshal

func (m *CreateTx) XXX_Unmarshal(b []byte) error

type CreateTxIn

type CreateTxIn struct {
	Execer               []byte   `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	ActionName           string   `protobuf:"bytes,2,opt,name=actionName,proto3" json:"actionName,omitempty"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTxIn) Descriptor

func (*CreateTxIn) Descriptor() ([]byte, []int)

func (*CreateTxIn) GetActionName

func (m *CreateTxIn) GetActionName() string

func (*CreateTxIn) GetExecer

func (m *CreateTxIn) GetExecer() []byte

func (*CreateTxIn) GetPayload

func (m *CreateTxIn) GetPayload() []byte

func (*CreateTxIn) ProtoMessage

func (*CreateTxIn) ProtoMessage()

func (*CreateTxIn) Reset

func (m *CreateTxIn) Reset()

func (*CreateTxIn) String

func (m *CreateTxIn) String() string

func (*CreateTxIn) XXX_DiscardUnknown

func (m *CreateTxIn) XXX_DiscardUnknown()

func (*CreateTxIn) XXX_Marshal

func (m *CreateTxIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTxIn) XXX_Merge

func (m *CreateTxIn) XXX_Merge(src proto.Message)

func (*CreateTxIn) XXX_Size

func (m *CreateTxIn) XXX_Size() int

func (*CreateTxIn) XXX_Unmarshal

func (m *CreateTxIn) XXX_Unmarshal(b []byte) error

type EndBlock

type EndBlock struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash                 []byte   `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

存储block高度和hash

func (*EndBlock) Descriptor

func (*EndBlock) Descriptor() ([]byte, []int)

func (*EndBlock) GetHash

func (m *EndBlock) GetHash() []byte

func (*EndBlock) GetHeight

func (m *EndBlock) GetHeight() int64

func (*EndBlock) ProtoMessage

func (*EndBlock) ProtoMessage()

func (*EndBlock) Reset

func (m *EndBlock) Reset()

func (*EndBlock) String

func (m *EndBlock) String() string

func (*EndBlock) XXX_DiscardUnknown

func (m *EndBlock) XXX_DiscardUnknown()

func (*EndBlock) XXX_Marshal

func (m *EndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndBlock) XXX_Merge

func (m *EndBlock) XXX_Merge(src proto.Message)

func (*EndBlock) XXX_Size

func (m *EndBlock) XXX_Size() int

func (*EndBlock) XXX_Unmarshal

func (m *EndBlock) XXX_Unmarshal(b []byte) error

type Entry

type Entry struct {
	Sequence             uint32   `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest               []byte   `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	View                 uint32   `protobuf:"varint,3,opt,name=view,proto3" json:"view,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Entry) Descriptor

func (*Entry) Descriptor() ([]byte, []int)

func (*Entry) GetDigest

func (m *Entry) GetDigest() []byte

func (*Entry) GetSequence

func (m *Entry) GetSequence() uint32

func (*Entry) GetView

func (m *Entry) GetView() uint32

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) String

func (m *Entry) String() string

func (*Entry) XXX_DiscardUnknown

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal

func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entry) XXX_Merge

func (m *Entry) XXX_Merge(src proto.Message)

func (*Entry) XXX_Size

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal

func (m *Entry) XXX_Unmarshal(b []byte) error

type Exec

type Exec struct {
	// 是否开启stat插件
	EnableStat bool `protobuf:"varint,3,opt,name=enableStat" json:"enableStat,omitempty"`
	// 是否开启MVCC插件
	EnableMVCC       bool     `protobuf:"varint,4,opt,name=enableMVCC" json:"enableMVCC,omitempty"`
	DisableAddrIndex bool     `protobuf:"varint,7,opt,name=disableAddrIndex" json:"disableAddrIndex,omitempty"`
	Alias            []string `protobuf:"bytes,5,rep,name=alias" json:"alias,omitempty"`
	// 是否保存token交易信息
	SaveTokenTxList bool `protobuf:"varint,6,opt,name=saveTokenTxList" json:"saveTokenTxList,omitempty"`
}

Exec 配置

type ExecAccount

type ExecAccount struct {
	Execer               string   `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	Account              *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExecAccount) Descriptor

func (*ExecAccount) Descriptor() ([]byte, []int)

func (*ExecAccount) GetAccount

func (m *ExecAccount) GetAccount() *Account

func (*ExecAccount) GetExecer

func (m *ExecAccount) GetExecer() string

func (*ExecAccount) ProtoMessage

func (*ExecAccount) ProtoMessage()

func (*ExecAccount) Reset

func (m *ExecAccount) Reset()

func (*ExecAccount) String

func (m *ExecAccount) String() string

func (*ExecAccount) XXX_DiscardUnknown

func (m *ExecAccount) XXX_DiscardUnknown()

func (*ExecAccount) XXX_Marshal

func (m *ExecAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExecAccount) XXX_Merge

func (m *ExecAccount) XXX_Merge(src proto.Message)

func (*ExecAccount) XXX_Size

func (m *ExecAccount) XXX_Size() int

func (*ExecAccount) XXX_Unmarshal

func (m *ExecAccount) XXX_Unmarshal(b []byte) error

type ExecBalanceItem

type ExecBalanceItem struct {
	ExecAddr             []byte   `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
	Frozen               int64    `protobuf:"varint,2,opt,name=frozen,proto3" json:"frozen,omitempty"`
	Active               int64    `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExecBalanceItem) Descriptor

func (*ExecBalanceItem) Descriptor() ([]byte, []int)

func (*ExecBalanceItem) GetActive

func (m *ExecBalanceItem) GetActive() int64

func (*ExecBalanceItem) GetExecAddr

func (m *ExecBalanceItem) GetExecAddr() []byte

func (*ExecBalanceItem) GetFrozen

func (m *ExecBalanceItem) GetFrozen() int64

func (*ExecBalanceItem) ProtoMessage

func (*ExecBalanceItem) ProtoMessage()

func (*ExecBalanceItem) Reset

func (m *ExecBalanceItem) Reset()

func (*ExecBalanceItem) String

func (m *ExecBalanceItem) String() string

func (*ExecBalanceItem) XXX_DiscardUnknown

func (m *ExecBalanceItem) XXX_DiscardUnknown()

func (*ExecBalanceItem) XXX_Marshal

func (m *ExecBalanceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExecBalanceItem) XXX_Merge

func (m *ExecBalanceItem) XXX_Merge(src proto.Message)

func (*ExecBalanceItem) XXX_Size

func (m *ExecBalanceItem) XXX_Size() int

func (*ExecBalanceItem) XXX_Unmarshal

func (m *ExecBalanceItem) XXX_Unmarshal(b []byte) error

type ExecTxList

type ExecTxList struct {
	StateHash            []byte         `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	ParentHash           []byte         `protobuf:"bytes,7,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	MainHash             []byte         `protobuf:"bytes,8,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
	MainHeight           int64          `protobuf:"varint,9,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
	BlockTime            int64          `protobuf:"varint,3,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	Height               int64          `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Difficulty           uint64         `protobuf:"varint,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	IsMempool            bool           `protobuf:"varint,6,opt,name=isMempool,proto3" json:"isMempool,omitempty"`
	Txs                  []*Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ExecTxList) Descriptor

func (*ExecTxList) Descriptor() ([]byte, []int)

func (*ExecTxList) GetBlockTime

func (m *ExecTxList) GetBlockTime() int64

func (*ExecTxList) GetDifficulty

func (m *ExecTxList) GetDifficulty() uint64

func (*ExecTxList) GetHeight

func (m *ExecTxList) GetHeight() int64

func (*ExecTxList) GetIsMempool

func (m *ExecTxList) GetIsMempool() bool

func (*ExecTxList) GetMainHash

func (m *ExecTxList) GetMainHash() []byte

func (*ExecTxList) GetMainHeight

func (m *ExecTxList) GetMainHeight() int64

func (*ExecTxList) GetParentHash

func (m *ExecTxList) GetParentHash() []byte

func (*ExecTxList) GetStateHash

func (m *ExecTxList) GetStateHash() []byte

func (*ExecTxList) GetTxs

func (m *ExecTxList) GetTxs() []*Transaction

func (*ExecTxList) ProtoMessage

func (*ExecTxList) ProtoMessage()

func (*ExecTxList) Reset

func (m *ExecTxList) Reset()

func (*ExecTxList) String

func (m *ExecTxList) String() string

func (*ExecTxList) XXX_DiscardUnknown

func (m *ExecTxList) XXX_DiscardUnknown()

func (*ExecTxList) XXX_Marshal

func (m *ExecTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExecTxList) XXX_Merge

func (m *ExecTxList) XXX_Merge(src proto.Message)

func (*ExecTxList) XXX_Size

func (m *ExecTxList) XXX_Size() int

func (*ExecTxList) XXX_Unmarshal

func (m *ExecTxList) XXX_Unmarshal(b []byte) error

type ExecTypeBase

type ExecTypeBase struct {
	// contains filtered or unexported fields
}

ExecTypeBase 执行类型

func (*ExecTypeBase) ActionName

func (base *ExecTypeBase) ActionName(tx *Transaction) string

ActionName 获取交易中payload的action name

func (*ExecTypeBase) Amount

func (base *ExecTypeBase) Amount(tx *Transaction) (int64, error)

Amount 获取tx交易中的转账金额

func (*ExecTypeBase) AssertCreate

func (base *ExecTypeBase) AssertCreate(c *CreateTx) (*Transaction, error)

AssertCreate 构造assets资产交易

func (*ExecTypeBase) Create

func (base *ExecTypeBase) Create(action string, msg Message) (*Transaction, error)

Create 构造tx交易

func (*ExecTypeBase) CreateQuery

func (base *ExecTypeBase) CreateQuery(funcname string, message json.RawMessage) (Message, error)

CreateQuery Query接口查询

func (*ExecTypeBase) CreateTransaction

func (base *ExecTypeBase) CreateTransaction(action string, data Message) (tx *Transaction, err error)

CreateTransaction 构造Transaction

func (*ExecTypeBase) CreateTx

func (base *ExecTypeBase) CreateTx(action string, msg json.RawMessage) (*Transaction, error)

CreateTx 通过json rpc 创建交易

func (*ExecTypeBase) DecodePayload

func (base *ExecTypeBase) DecodePayload(tx *Transaction) (Message, error)

DecodePayload 解析tx交易中的payload

func (*ExecTypeBase) DecodePayloadValue

func (base *ExecTypeBase) DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)

DecodePayloadValue 解析tx交易中的payload具体Value值

func (*ExecTypeBase) GetAction

func (base *ExecTypeBase) GetAction(action string) (Message, error)

GetAction 获取action

func (*ExecTypeBase) GetAssets

func (base *ExecTypeBase) GetAssets(tx *Transaction) ([]*Asset, error)

GetAssets 获取资产信息

func (*ExecTypeBase) GetChild

func (base *ExecTypeBase) GetChild() ExecutorType

GetChild 获取子执行器

func (*ExecTypeBase) GetConfig

func (base *ExecTypeBase) GetConfig() *Chain33Config

func (*ExecTypeBase) GetCryptoDriver

func (base *ExecTypeBase) GetCryptoDriver(ty int) (string, error)

GetCryptoDriver 获取Crypto驱动

func (*ExecTypeBase) GetCryptoType

func (base *ExecTypeBase) GetCryptoType(name string) (int, error)

GetCryptoType 获取Crypto类型

func (*ExecTypeBase) GetExecFuncMap

func (base *ExecTypeBase) GetExecFuncMap() map[string]reflect.Method

GetExecFuncMap 获取执行交易的接口列表

func (*ExecTypeBase) GetForks

func (base *ExecTypeBase) GetForks() *Forks

GetForks 获取fork信息

func (*ExecTypeBase) GetFuncMap

func (base *ExecTypeBase) GetFuncMap() map[string]reflect.Method

GetFuncMap 获取函数列表

func (*ExecTypeBase) GetName

func (base *ExecTypeBase) GetName() string

GetName 获取name

func (*ExecTypeBase) GetRPCFuncMap

func (base *ExecTypeBase) GetRPCFuncMap() map[string]reflect.Method

GetRPCFuncMap 获取rpc的接口列表

func (*ExecTypeBase) GetRealToAddr

func (base *ExecTypeBase) GetRealToAddr(tx *Transaction) string

GetRealToAddr 用户看到的ToAddr

func (*ExecTypeBase) GetValueTypeMap

func (base *ExecTypeBase) GetValueTypeMap() map[string]reflect.Type

GetValueTypeMap 获取执行函数

func (*ExecTypeBase) GetViewFromToAddr

func (base *ExecTypeBase) GetViewFromToAddr(tx *Transaction) (string, string)

GetViewFromToAddr 用户看到的FromAddr

func (*ExecTypeBase) InitFuncList

func (base *ExecTypeBase) InitFuncList(list map[string]reflect.Method)

InitFuncList 初始化函数列表

func (*ExecTypeBase) IsFork

func (base *ExecTypeBase) IsFork(height int64, key string) bool

IsFork 是否fork高度

func (*ExecTypeBase) QueryToJSON

func (base *ExecTypeBase) QueryToJSON(funcname string, message Message) ([]byte, error)

QueryToJSON 转换成json格式

func (*ExecTypeBase) SetChild

func (base *ExecTypeBase) SetChild(child ExecutorType)

SetChild 设置子执行器

func (*ExecTypeBase) SetConfig

func (base *ExecTypeBase) SetConfig(cfg *Chain33Config)

type ExecutorType

type ExecutorType interface {
	//获取交易真正的to addr
	GetRealToAddr(tx *Transaction) string
	GetCryptoDriver(ty int) (string, error)
	GetCryptoType(name string) (int, error)
	//给用户显示的from 和 to
	GetViewFromToAddr(tx *Transaction) (string, string)
	ActionName(tx *Transaction) string
	//新版本使用create接口,createTx 重构以后就废弃
	GetAction(action string) (Message, error)
	InitFuncList(list map[string]reflect.Method)
	Create(action string, message Message) (*Transaction, error)
	CreateTx(action string, message json.RawMessage) (*Transaction, error)
	CreateQuery(funcname string, message json.RawMessage) (Message, error)
	AssertCreate(createTx *CreateTx) (*Transaction, error)
	QueryToJSON(funcname string, message Message) ([]byte, error)
	Amount(tx *Transaction) (int64, error)
	DecodePayload(tx *Transaction) (Message, error)
	DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)
	//write for executor
	GetPayload() Message
	GetChild() ExecutorType
	GetName() string
	//exec result of receipt log
	GetLogMap() map[int64]*LogInfo
	GetForks() *Forks
	IsFork(height int64, key string) bool
	//actionType -> name map
	GetTypeMap() map[string]int32
	GetValueTypeMap() map[string]reflect.Type
	//action function list map
	GetFuncMap() map[string]reflect.Method
	GetRPCFuncMap() map[string]reflect.Method
	GetExecFuncMap() map[string]reflect.Method
	CreateTransaction(action string, data Message) (*Transaction, error)
	// collect assets the tx deal with
	GetAssets(tx *Transaction) ([]*Asset, error)

	// about chain33Config
	GetConfig() *Chain33Config
	SetConfig(cfg *Chain33Config)
}

ExecutorType 执行器接口

func LoadExecutorType

func LoadExecutorType(execstr string) ExecutorType

LoadExecutorType 加载执行器

type FileHeader

type FileHeader struct {
	StartHeight          int64    `protobuf:"varint,1,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	Driver               string   `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"`
	Title                string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	TestNet              bool     `protobuf:"varint,4,opt,name=testNet,proto3" json:"testNet,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

导出block文件头信息

func (*FileHeader) Descriptor

func (*FileHeader) Descriptor() ([]byte, []int)

func (*FileHeader) GetDriver

func (m *FileHeader) GetDriver() string

func (*FileHeader) GetStartHeight

func (m *FileHeader) GetStartHeight() int64

func (*FileHeader) GetTestNet

func (m *FileHeader) GetTestNet() bool

func (*FileHeader) GetTitle

func (m *FileHeader) GetTitle() string

func (*FileHeader) ProtoMessage

func (*FileHeader) ProtoMessage()

func (*FileHeader) Reset

func (m *FileHeader) Reset()

func (*FileHeader) String

func (m *FileHeader) String() string

func (*FileHeader) XXX_DiscardUnknown

func (m *FileHeader) XXX_DiscardUnknown()

func (*FileHeader) XXX_Marshal

func (m *FileHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileHeader) XXX_Merge

func (m *FileHeader) XXX_Merge(src proto.Message)

func (*FileHeader) XXX_Size

func (m *FileHeader) XXX_Size() int

func (*FileHeader) XXX_Unmarshal

func (m *FileHeader) XXX_Unmarshal(b []byte) error

type ForkList

type ForkList struct {
	System map[string]int64            `` /* 133-byte string literal not displayed */
	Sub    map[string]map[string]int64 `` /* 127-byte string literal not displayed */
}

ForkList fork列表配置

type Forks

type Forks struct {
	// contains filtered or unexported fields
}

Forks fork分叉结构体

func (*Forks) GetAll

func (f *Forks) GetAll() map[string]int64

GetAll 获取所有fork信息

func (*Forks) GetDappFork

func (f *Forks) GetDappFork(app string, key string) int64

GetDappFork 获取dapp fork信息

func (*Forks) GetFork

func (f *Forks) GetFork(key string) int64

GetFork 如果不存在,那么fork高度为0

func (*Forks) HasFork

func (f *Forks) HasFork(key string) bool

HasFork fork信息是否存在

func (*Forks) IsDappFork

func (f *Forks) IsDappFork(height int64, dapp, fork string) bool

IsDappFork 是否dapp fork高度

func (*Forks) IsFork

func (f *Forks) IsFork(height int64, fork string) bool

IsFork 是否fork高度

func (*Forks) ReplaceDappFork

func (f *Forks) ReplaceDappFork(dapp, key string, height int64)

ReplaceDappFork 替换dapp的fork信息

func (*Forks) ReplaceFork

func (f *Forks) ReplaceFork(key string, height int64)

ReplaceFork 替换fork信息

func (*Forks) SetAllFork

func (f *Forks) SetAllFork(height int64)

SetAllFork 设置所有fork的高度

func (*Forks) SetDappFork

func (f *Forks) SetDappFork(dapp, key string, height int64)

SetDappFork 设置dapp的fork信息

func (*Forks) SetFork

func (f *Forks) SetFork(key string, height int64)

SetFork 设置fork信息

func (*Forks) SetTestNetFork

func (f *Forks) SetTestNetFork()

SetTestNetFork bityuan test net fork

type GenSeedLang

type GenSeedLang struct {
	Lang                 int32    `protobuf:"varint,1,opt,name=lang,proto3" json:"lang,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GenSeedLang) Descriptor

func (*GenSeedLang) Descriptor() ([]byte, []int)

func (*GenSeedLang) GetLang

func (m *GenSeedLang) GetLang() int32

func (*GenSeedLang) ProtoMessage

func (*GenSeedLang) ProtoMessage()

func (*GenSeedLang) Reset

func (m *GenSeedLang) Reset()

func (*GenSeedLang) String

func (m *GenSeedLang) String() string

func (*GenSeedLang) XXX_DiscardUnknown

func (m *GenSeedLang) XXX_DiscardUnknown()

func (*GenSeedLang) XXX_Marshal

func (m *GenSeedLang) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenSeedLang) XXX_Merge

func (m *GenSeedLang) XXX_Merge(src proto.Message)

func (*GenSeedLang) XXX_Size

func (m *GenSeedLang) XXX_Size() int

func (*GenSeedLang) XXX_Unmarshal

func (m *GenSeedLang) XXX_Unmarshal(b []byte) error

type Genesis

type Genesis struct {
	Isrun                bool     `protobuf:"varint,1,opt,name=isrun,proto3" json:"isrun,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Genesis) Descriptor

func (*Genesis) Descriptor() ([]byte, []int)

func (*Genesis) GetIsrun

func (m *Genesis) GetIsrun() bool

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) Reset

func (m *Genesis) Reset()

func (*Genesis) String

func (m *Genesis) String() string

func (*Genesis) XXX_DiscardUnknown

func (m *Genesis) XXX_DiscardUnknown()

func (*Genesis) XXX_Marshal

func (m *Genesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Genesis) XXX_Merge

func (m *Genesis) XXX_Merge(src proto.Message)

func (*Genesis) XXX_Size

func (m *Genesis) XXX_Size() int

func (*Genesis) XXX_Unmarshal

func (m *Genesis) XXX_Unmarshal(b []byte) error

type GetSeedByPw

type GetSeedByPw struct {
	Passwd               string   `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSeedByPw) Descriptor

func (*GetSeedByPw) Descriptor() ([]byte, []int)

func (*GetSeedByPw) GetPasswd

func (m *GetSeedByPw) GetPasswd() string

func (*GetSeedByPw) ProtoMessage

func (*GetSeedByPw) ProtoMessage()

func (*GetSeedByPw) Reset

func (m *GetSeedByPw) Reset()

func (*GetSeedByPw) String

func (m *GetSeedByPw) String() string

func (*GetSeedByPw) XXX_DiscardUnknown

func (m *GetSeedByPw) XXX_DiscardUnknown()

func (*GetSeedByPw) XXX_Marshal

func (m *GetSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSeedByPw) XXX_Merge

func (m *GetSeedByPw) XXX_Merge(src proto.Message)

func (*GetSeedByPw) XXX_Size

func (m *GetSeedByPw) XXX_Size() int

func (*GetSeedByPw) XXX_Unmarshal

func (m *GetSeedByPw) XXX_Unmarshal(b []byte) error
type Header struct {
	Version              int64      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	ParentHash           []byte     `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	TxHash               []byte     `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
	StateHash            []byte     `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Height               int64      `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	BlockTime            int64      `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	TxCount              int64      `protobuf:"varint,9,opt,name=txCount,proto3" json:"txCount,omitempty"`
	Hash                 []byte     `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
	Difficulty           uint32     `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	Signature            *Signature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

区块头信息

version : 版本信息
parentHash :父哈希
txHash : 交易根哈希
stateHash :状态哈希
height : 区块高度
blockTime :区块产生时的时标
txCount : 区块上所有交易个数
difficulty :区块难度系数,
signature :交易签名

func (*Header) Descriptor

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetBlockTime

func (m *Header) GetBlockTime() int64

func (*Header) GetDifficulty

func (m *Header) GetDifficulty() uint32

func (*Header) GetHash

func (m *Header) GetHash() []byte

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetParentHash

func (m *Header) GetParentHash() []byte

func (*Header) GetSignature

func (m *Header) GetSignature() *Signature

func (*Header) GetStateHash

func (m *Header) GetStateHash() []byte

func (*Header) GetTxCount

func (m *Header) GetTxCount() int64

func (*Header) GetTxHash

func (m *Header) GetTxHash() []byte

func (*Header) GetVersion

func (m *Header) GetVersion() int64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

func (header *Header) Size() int

Size 获取header的Size

func (*Header) String

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge

func (m *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

func (m *Header) XXX_Unmarshal(b []byte) error

type HeaderSeq

type HeaderSeq struct {
	Num                  int64          `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Seq                  *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Header               *Header        `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

通过seq获取区块的header信息

func (*HeaderSeq) Descriptor

func (*HeaderSeq) Descriptor() ([]byte, []int)

func (*HeaderSeq) GetHeader

func (m *HeaderSeq) GetHeader() *Header

func (*HeaderSeq) GetNum

func (m *HeaderSeq) GetNum() int64

func (*HeaderSeq) GetSeq

func (m *HeaderSeq) GetSeq() *BlockSequence

func (*HeaderSeq) ProtoMessage

func (*HeaderSeq) ProtoMessage()

func (*HeaderSeq) Reset

func (m *HeaderSeq) Reset()

func (*HeaderSeq) String

func (m *HeaderSeq) String() string

func (*HeaderSeq) XXX_DiscardUnknown

func (m *HeaderSeq) XXX_DiscardUnknown()

func (*HeaderSeq) XXX_Marshal

func (m *HeaderSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeaderSeq) XXX_Merge

func (m *HeaderSeq) XXX_Merge(src proto.Message)

func (*HeaderSeq) XXX_Size

func (m *HeaderSeq) XXX_Size() int

func (*HeaderSeq) XXX_Unmarshal

func (m *HeaderSeq) XXX_Unmarshal(b []byte) error

type HeaderSeqs

type HeaderSeqs struct {
	Seqs                 []*HeaderSeq `protobuf:"bytes,1,rep,name=seqs,proto3" json:"seqs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

批量推送区块的header信息

func (*HeaderSeqs) Descriptor

func (*HeaderSeqs) Descriptor() ([]byte, []int)

func (*HeaderSeqs) GetSeqs

func (m *HeaderSeqs) GetSeqs() []*HeaderSeq

func (*HeaderSeqs) ProtoMessage

func (*HeaderSeqs) ProtoMessage()

func (*HeaderSeqs) Reset

func (m *HeaderSeqs) Reset()

func (*HeaderSeqs) String

func (m *HeaderSeqs) String() string

func (*HeaderSeqs) XXX_DiscardUnknown

func (m *HeaderSeqs) XXX_DiscardUnknown()

func (*HeaderSeqs) XXX_Marshal

func (m *HeaderSeqs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeaderSeqs) XXX_Merge

func (m *HeaderSeqs) XXX_Merge(src proto.Message)

func (*HeaderSeqs) XXX_Size

func (m *HeaderSeqs) XXX_Size() int

func (*HeaderSeqs) XXX_Unmarshal

func (m *HeaderSeqs) XXX_Unmarshal(b []byte) error

type Headers

type Headers struct {
	Items                []*Header `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

resp

func (*Headers) Descriptor

func (*Headers) Descriptor() ([]byte, []int)

func (*Headers) GetItems

func (m *Headers) GetItems() []*Header

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) Reset

func (m *Headers) Reset()

func (*Headers) String

func (m *Headers) String() string

func (*Headers) XXX_DiscardUnknown

func (m *Headers) XXX_DiscardUnknown()

func (*Headers) XXX_Marshal

func (m *Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Headers) XXX_Merge

func (m *Headers) XXX_Merge(src proto.Message)

func (*Headers) XXX_Size

func (m *Headers) XXX_Size() int

func (*Headers) XXX_Unmarshal

func (m *Headers) XXX_Unmarshal(b []byte) error

type HeadersPid

type HeadersPid struct {
	Pid                  string   `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
	Headers              *Headers `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HeadersPid) Descriptor

func (*HeadersPid) Descriptor() ([]byte, []int)

func (*HeadersPid) GetHeaders

func (m *HeadersPid) GetHeaders() *Headers

func (*HeadersPid) GetPid

func (m *HeadersPid) GetPid() string

func (*HeadersPid) ProtoMessage

func (*HeadersPid) ProtoMessage()

func (*HeadersPid) Reset

func (m *HeadersPid) Reset()

func (*HeadersPid) String

func (m *HeadersPid) String() string

func (*HeadersPid) XXX_DiscardUnknown

func (m *HeadersPid) XXX_DiscardUnknown()

func (*HeadersPid) XXX_Marshal

func (m *HeadersPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeadersPid) XXX_Merge

func (m *HeadersPid) XXX_Merge(src proto.Message)

func (*HeadersPid) XXX_Size

func (m *HeadersPid) XXX_Size() int

func (*HeadersPid) XXX_Unmarshal

func (m *HeadersPid) XXX_Unmarshal(b []byte) error

type HealthCheck

type HealthCheck struct {
	ListenAddr     string `protobuf:"bytes,1,opt,name=listenAddr" json:"listenAddr,omitempty"`
	CheckInterval  uint32 `protobuf:"varint,2,opt,name=checkInterval" json:"checkInterval,omitempty"`
	UnSyncMaxTimes uint32 `protobuf:"varint,3,opt,name=unSyncMaxTimes" json:"unSyncMaxTimes,omitempty"`
}

HealthCheck 配置

type HeightPara

type HeightPara struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Hash                 []byte   `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	ChildHash            []byte   `protobuf:"bytes,4,opt,name=childHash,proto3" json:"childHash,omitempty"`
	StartIndex           int32    `protobuf:"varint,5,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	ChildHashIndex       uint32   `protobuf:"varint,6,opt,name=childHashIndex,proto3" json:"childHashIndex,omitempty"`
	TxCount              int32    `protobuf:"varint,7,opt,name=txCount,proto3" json:"txCount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

记录本平行链所在区块的信息以及子根hash值 childHash:平行链子roothash值 startIndex:此平行链的第一笔交易的index索引值 childHashIndex:此平行链子roothash在本区块中的索引值 txCount:此平行链交易的个数

func (*HeightPara) Descriptor

func (*HeightPara) Descriptor() ([]byte, []int)

func (*HeightPara) GetChildHash

func (m *HeightPara) GetChildHash() []byte

func (*HeightPara) GetChildHashIndex

func (m *HeightPara) GetChildHashIndex() uint32

func (*HeightPara) GetHash

func (m *HeightPara) GetHash() []byte

func (*HeightPara) GetHeight

func (m *HeightPara) GetHeight() int64

func (*HeightPara) GetStartIndex

func (m *HeightPara) GetStartIndex() int32

func (*HeightPara) GetTitle

func (m *HeightPara) GetTitle() string

func (*HeightPara) GetTxCount

func (m *HeightPara) GetTxCount() int32

func (*HeightPara) ProtoMessage

func (*HeightPara) ProtoMessage()

func (*HeightPara) Reset

func (m *HeightPara) Reset()

func (*HeightPara) String

func (m *HeightPara) String() string

func (*HeightPara) XXX_DiscardUnknown

func (m *HeightPara) XXX_DiscardUnknown()

func (*HeightPara) XXX_Marshal

func (m *HeightPara) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeightPara) XXX_Merge

func (m *HeightPara) XXX_Merge(src proto.Message)

func (*HeightPara) XXX_Size

func (m *HeightPara) XXX_Size() int

func (*HeightPara) XXX_Unmarshal

func (m *HeightPara) XXX_Unmarshal(b []byte) error

type HeightParas

type HeightParas struct {
	Items                []*HeightPara `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*HeightParas) Descriptor

func (*HeightParas) Descriptor() ([]byte, []int)

func (*HeightParas) GetItems

func (m *HeightParas) GetItems() []*HeightPara

func (*HeightParas) ProtoMessage

func (*HeightParas) ProtoMessage()

func (*HeightParas) Reset

func (m *HeightParas) Reset()

func (*HeightParas) String

func (m *HeightParas) String() string

func (*HeightParas) XXX_DiscardUnknown

func (m *HeightParas) XXX_DiscardUnknown()

func (*HeightParas) XXX_Marshal

func (m *HeightParas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeightParas) XXX_Merge

func (m *HeightParas) XXX_Merge(src proto.Message)

func (*HeightParas) XXX_Size

func (m *HeightParas) XXX_Size() int

func (*HeightParas) XXX_Unmarshal

func (m *HeightParas) XXX_Unmarshal(b []byte) error

type HexTx

type HexTx struct {
	Tx                   string   `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HexTx) Descriptor

func (*HexTx) Descriptor() ([]byte, []int)

func (*HexTx) GetTx

func (m *HexTx) GetTx() string

func (*HexTx) ProtoMessage

func (*HexTx) ProtoMessage()

func (*HexTx) Reset

func (m *HexTx) Reset()

func (*HexTx) String

func (m *HexTx) String() string

func (*HexTx) XXX_DiscardUnknown

func (m *HexTx) XXX_DiscardUnknown()

func (*HexTx) XXX_Marshal

func (m *HexTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HexTx) XXX_Merge

func (m *HexTx) XXX_Merge(src proto.Message)

func (*HexTx) XXX_Size

func (m *HexTx) XXX_Size() int

func (*HexTx) XXX_Unmarshal

func (m *HexTx) XXX_Unmarshal(b []byte) error

type HistoryCertStore

type HistoryCertStore struct {
	Rootcerts            [][]byte `protobuf:"bytes,1,rep,name=rootcerts,proto3" json:"rootcerts,omitempty"`
	IntermediateCerts    [][]byte `protobuf:"bytes,2,rep,name=intermediateCerts,proto3" json:"intermediateCerts,omitempty"`
	RevocationList       [][]byte `protobuf:"bytes,3,rep,name=revocationList,proto3" json:"revocationList,omitempty"`
	CurHeigth            int64    `protobuf:"varint,4,opt,name=curHeigth,proto3" json:"curHeigth,omitempty"`
	NxtHeight            int64    `protobuf:"varint,5,opt,name=nxtHeight,proto3" json:"nxtHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HistoryCertStore) Descriptor

func (*HistoryCertStore) Descriptor() ([]byte, []int)

func (*HistoryCertStore) GetCurHeigth

func (m *HistoryCertStore) GetCurHeigth() int64

func (*HistoryCertStore) GetIntermediateCerts

func (m *HistoryCertStore) GetIntermediateCerts() [][]byte

func (*HistoryCertStore) GetNxtHeight

func (m *HistoryCertStore) GetNxtHeight() int64

func (*HistoryCertStore) GetRevocationList

func (m *HistoryCertStore) GetRevocationList() [][]byte

func (*HistoryCertStore) GetRootcerts

func (m *HistoryCertStore) GetRootcerts() [][]byte

func (*HistoryCertStore) ProtoMessage

func (*HistoryCertStore) ProtoMessage()

func (*HistoryCertStore) Reset

func (m *HistoryCertStore) Reset()

func (*HistoryCertStore) String

func (m *HistoryCertStore) String() string

func (*HistoryCertStore) XXX_DiscardUnknown

func (m *HistoryCertStore) XXX_DiscardUnknown()

func (*HistoryCertStore) XXX_Marshal

func (m *HistoryCertStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoryCertStore) XXX_Merge

func (m *HistoryCertStore) XXX_Merge(src proto.Message)

func (*HistoryCertStore) XXX_Size

func (m *HistoryCertStore) XXX_Size() int

func (*HistoryCertStore) XXX_Unmarshal

func (m *HistoryCertStore) XXX_Unmarshal(b []byte) error

type InnerNode

type InnerNode struct {
	LeftHash             []byte   `protobuf:"bytes,1,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
	RightHash            []byte   `protobuf:"bytes,2,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
	Height               int32    `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Size                 int32    `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InnerNode) Descriptor

func (*InnerNode) Descriptor() ([]byte, []int)

func (*InnerNode) GetHeight

func (m *InnerNode) GetHeight() int32

func (*InnerNode) GetLeftHash

func (m *InnerNode) GetLeftHash() []byte

func (*InnerNode) GetRightHash

func (m *InnerNode) GetRightHash() []byte

func (*InnerNode) GetSize

func (m *InnerNode) GetSize() int32

func (*InnerNode) Hash

func (innernode *InnerNode) Hash() []byte

Hash 计算中间节点的hash

func (*InnerNode) ProtoMessage

func (*InnerNode) ProtoMessage()

func (*InnerNode) Reset

func (m *InnerNode) Reset()

func (*InnerNode) String

func (m *InnerNode) String() string

func (*InnerNode) XXX_DiscardUnknown

func (m *InnerNode) XXX_DiscardUnknown()

func (*InnerNode) XXX_Marshal

func (m *InnerNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InnerNode) XXX_Merge

func (m *InnerNode) XXX_Merge(src proto.Message)

func (*InnerNode) XXX_Size

func (m *InnerNode) XXX_Size() int

func (*InnerNode) XXX_Unmarshal

func (m *InnerNode) XXX_Unmarshal(b []byte) error

type Int32

type Int32 struct {
	Data                 int32    `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Int32) Descriptor

func (*Int32) Descriptor() ([]byte, []int)

func (*Int32) GetData

func (m *Int32) GetData() int32

func (*Int32) ProtoMessage

func (*Int32) ProtoMessage()

func (*Int32) Reset

func (m *Int32) Reset()

func (*Int32) String

func (m *Int32) String() string

func (*Int32) XXX_DiscardUnknown

func (m *Int32) XXX_DiscardUnknown()

func (*Int32) XXX_Marshal

func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int32) XXX_Merge

func (m *Int32) XXX_Merge(src proto.Message)

func (*Int32) XXX_Size

func (m *Int32) XXX_Size() int

func (*Int32) XXX_Unmarshal

func (m *Int32) XXX_Unmarshal(b []byte) error

type Int32Config

type Int32Config struct {
	Value                int32    `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Int32Config) Descriptor

func (*Int32Config) Descriptor() ([]byte, []int)

func (*Int32Config) GetValue

func (m *Int32Config) GetValue() int32

func (*Int32Config) ProtoMessage

func (*Int32Config) ProtoMessage()

func (*Int32Config) Reset

func (m *Int32Config) Reset()

func (*Int32Config) String

func (m *Int32Config) String() string

func (*Int32Config) XXX_DiscardUnknown

func (m *Int32Config) XXX_DiscardUnknown()

func (*Int32Config) XXX_Marshal

func (m *Int32Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int32Config) XXX_Merge

func (m *Int32Config) XXX_Merge(src proto.Message)

func (*Int32Config) XXX_Size

func (m *Int32Config) XXX_Size() int

func (*Int32Config) XXX_Unmarshal

func (m *Int32Config) XXX_Unmarshal(b []byte) error

type Int64

type Int64 struct {
	Data                 int64    `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Int64) Descriptor

func (*Int64) Descriptor() ([]byte, []int)

func (*Int64) GetData

func (m *Int64) GetData() int64

func (*Int64) ProtoMessage

func (*Int64) ProtoMessage()

func (*Int64) Reset

func (m *Int64) Reset()

func (*Int64) String

func (m *Int64) String() string

func (*Int64) XXX_DiscardUnknown

func (m *Int64) XXX_DiscardUnknown()

func (*Int64) XXX_Marshal

func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64) XXX_Merge

func (m *Int64) XXX_Merge(src proto.Message)

func (*Int64) XXX_Size

func (m *Int64) XXX_Size() int

func (*Int64) XXX_Unmarshal

func (m *Int64) XXX_Unmarshal(b []byte) error

type InvData

type InvData struct {
	// Types that are valid to be assigned to Value:
	//	*InvData_Tx
	//	*InvData_Block
	Value                isInvData_Value `protobuf_oneof:"value"`
	Ty                   int32           `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

* inv 请求协议

func (*InvData) Descriptor

func (*InvData) Descriptor() ([]byte, []int)

func (*InvData) GetBlock

func (m *InvData) GetBlock() *Block

func (*InvData) GetTx

func (m *InvData) GetTx() *Transaction

func (*InvData) GetTy

func (m *InvData) GetTy() int32

func (*InvData) GetValue

func (m *InvData) GetValue() isInvData_Value

func (*InvData) ProtoMessage

func (*InvData) ProtoMessage()

func (*InvData) Reset

func (m *InvData) Reset()

func (*InvData) String

func (m *InvData) String() string

func (*InvData) XXX_DiscardUnknown

func (m *InvData) XXX_DiscardUnknown()

func (*InvData) XXX_Marshal

func (m *InvData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvData) XXX_Merge

func (m *InvData) XXX_Merge(src proto.Message)

func (*InvData) XXX_OneofWrappers

func (*InvData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*InvData) XXX_Size

func (m *InvData) XXX_Size() int

func (*InvData) XXX_Unmarshal

func (m *InvData) XXX_Unmarshal(b []byte) error

type InvData_Block

type InvData_Block struct {
	Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}

type InvData_Tx

type InvData_Tx struct {
	Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}

type InvDatas

type InvDatas struct {
	Items                []*InvData `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

* inv 返回数据

func (*InvDatas) Descriptor

func (*InvDatas) Descriptor() ([]byte, []int)

func (*InvDatas) GetItems

func (m *InvDatas) GetItems() []*InvData

func (*InvDatas) ProtoMessage

func (*InvDatas) ProtoMessage()

func (*InvDatas) Reset

func (m *InvDatas) Reset()

func (*InvDatas) String

func (m *InvDatas) String() string

func (*InvDatas) XXX_DiscardUnknown

func (m *InvDatas) XXX_DiscardUnknown()

func (*InvDatas) XXX_Marshal

func (m *InvDatas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvDatas) XXX_Merge

func (m *InvDatas) XXX_Merge(src proto.Message)

func (*InvDatas) XXX_Size

func (m *InvDatas) XXX_Size() int

func (*InvDatas) XXX_Unmarshal

func (m *InvDatas) XXX_Unmarshal(b []byte) error

type Inventory

type Inventory struct {
	//类型,数据类型,MSG_TX MSG_BLOCK
	Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	///哈希
	Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	//高度
	Height               int64    `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ty=MSG_TX MSG_BLOCK

func (*Inventory) Descriptor

func (*Inventory) Descriptor() ([]byte, []int)

func (*Inventory) GetHash

func (m *Inventory) GetHash() []byte

func (*Inventory) GetHeight

func (m *Inventory) GetHeight() int64

func (*Inventory) GetTy

func (m *Inventory) GetTy() int32

func (*Inventory) ProtoMessage

func (*Inventory) ProtoMessage()

func (*Inventory) Reset

func (m *Inventory) Reset()

func (*Inventory) String

func (m *Inventory) String() string

func (*Inventory) XXX_DiscardUnknown

func (m *Inventory) XXX_DiscardUnknown()

func (*Inventory) XXX_Marshal

func (m *Inventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Inventory) XXX_Merge

func (m *Inventory) XXX_Merge(src proto.Message)

func (*Inventory) XXX_Size

func (m *Inventory) XXX_Size() int

func (*Inventory) XXX_Unmarshal

func (m *Inventory) XXX_Unmarshal(b []byte) error

type IsCaughtUp

type IsCaughtUp struct {
	Iscaughtup           bool     `protobuf:"varint,1,opt,name=Iscaughtup,proto3" json:"Iscaughtup,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

区块追赶主链状态,用于判断本节点区块是否已经同步好

func (*IsCaughtUp) Descriptor

func (*IsCaughtUp) Descriptor() ([]byte, []int)

func (*IsCaughtUp) GetIscaughtup

func (m *IsCaughtUp) GetIscaughtup() bool

func (*IsCaughtUp) ProtoMessage

func (*IsCaughtUp) ProtoMessage()

func (*IsCaughtUp) Reset

func (m *IsCaughtUp) Reset()

func (*IsCaughtUp) String

func (m *IsCaughtUp) String() string

func (*IsCaughtUp) XXX_DiscardUnknown

func (m *IsCaughtUp) XXX_DiscardUnknown()

func (*IsCaughtUp) XXX_Marshal

func (m *IsCaughtUp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsCaughtUp) XXX_Merge

func (m *IsCaughtUp) XXX_Merge(src proto.Message)

func (*IsCaughtUp) XXX_Size

func (m *IsCaughtUp) XXX_Size() int

func (*IsCaughtUp) XXX_Unmarshal

func (m *IsCaughtUp) XXX_Unmarshal(b []byte) error

type IsNtpClockSync

type IsNtpClockSync struct {
	Isntpclocksync       bool     `protobuf:"varint,1,opt,name=isntpclocksync,proto3" json:"isntpclocksync,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ntp时钟状态

func (*IsNtpClockSync) Descriptor

func (*IsNtpClockSync) Descriptor() ([]byte, []int)

func (*IsNtpClockSync) GetIsntpclocksync

func (m *IsNtpClockSync) GetIsntpclocksync() bool

func (*IsNtpClockSync) ProtoMessage

func (*IsNtpClockSync) ProtoMessage()

func (*IsNtpClockSync) Reset

func (m *IsNtpClockSync) Reset()

func (*IsNtpClockSync) String

func (m *IsNtpClockSync) String() string

func (*IsNtpClockSync) XXX_DiscardUnknown

func (m *IsNtpClockSync) XXX_DiscardUnknown()

func (*IsNtpClockSync) XXX_Marshal

func (m *IsNtpClockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsNtpClockSync) XXX_Merge

func (m *IsNtpClockSync) XXX_Merge(src proto.Message)

func (*IsNtpClockSync) XXX_Size

func (m *IsNtpClockSync) XXX_Size() int

func (*IsNtpClockSync) XXX_Unmarshal

func (m *IsNtpClockSync) XXX_Unmarshal(b []byte) error

type IterateRangeByStateHash

type IterateRangeByStateHash struct {
	StateHash            []byte   `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Start                []byte   `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End                  []byte   `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	Count                int64    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

迭代查询symbol代币总额

func (*IterateRangeByStateHash) Descriptor

func (*IterateRangeByStateHash) Descriptor() ([]byte, []int)

func (*IterateRangeByStateHash) GetCount

func (m *IterateRangeByStateHash) GetCount() int64

func (*IterateRangeByStateHash) GetEnd

func (m *IterateRangeByStateHash) GetEnd() []byte

func (*IterateRangeByStateHash) GetStart

func (m *IterateRangeByStateHash) GetStart() []byte

func (*IterateRangeByStateHash) GetStateHash

func (m *IterateRangeByStateHash) GetStateHash() []byte

func (*IterateRangeByStateHash) ProtoMessage

func (*IterateRangeByStateHash) ProtoMessage()

func (*IterateRangeByStateHash) Reset

func (m *IterateRangeByStateHash) Reset()

func (*IterateRangeByStateHash) String

func (m *IterateRangeByStateHash) String() string

func (*IterateRangeByStateHash) XXX_DiscardUnknown

func (m *IterateRangeByStateHash) XXX_DiscardUnknown()

func (*IterateRangeByStateHash) XXX_Marshal

func (m *IterateRangeByStateHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IterateRangeByStateHash) XXX_Merge

func (m *IterateRangeByStateHash) XXX_Merge(src proto.Message)

func (*IterateRangeByStateHash) XXX_Size

func (m *IterateRangeByStateHash) XXX_Size() int

func (*IterateRangeByStateHash) XXX_Unmarshal

func (m *IterateRangeByStateHash) XXX_Unmarshal(b []byte) error

type KeyValue

type KeyValue struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func FlagKV

func FlagKV(key []byte, value int64) *KeyValue

FlagKV 获取kv对

func (*KeyValue) Clone

func (kv *KeyValue) Clone() *KeyValue

Clone KeyValue

func (*KeyValue) Descriptor

func (*KeyValue) Descriptor() ([]byte, []int)

func (*KeyValue) GetKey

func (m *KeyValue) GetKey() []byte

func (*KeyValue) GetValue

func (m *KeyValue) GetValue() []byte

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset

func (m *KeyValue) Reset()

func (*KeyValue) String

func (m *KeyValue) String() string

func (*KeyValue) XXX_DiscardUnknown

func (m *KeyValue) XXX_DiscardUnknown()

func (*KeyValue) XXX_Marshal

func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValue) XXX_Merge

func (m *KeyValue) XXX_Merge(src proto.Message)

func (*KeyValue) XXX_Size

func (m *KeyValue) XXX_Size() int

func (*KeyValue) XXX_Unmarshal

func (m *KeyValue) XXX_Unmarshal(b []byte) error

type LeafNode

type LeafNode struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Height               int32    `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Size                 int32    `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

merkle avl tree

func (*LeafNode) Descriptor

func (*LeafNode) Descriptor() ([]byte, []int)

func (*LeafNode) GetHeight

func (m *LeafNode) GetHeight() int32

func (*LeafNode) GetKey

func (m *LeafNode) GetKey() []byte

func (*LeafNode) GetSize

func (m *LeafNode) GetSize() int32

func (*LeafNode) GetValue

func (m *LeafNode) GetValue() []byte

func (*LeafNode) Hash

func (leafnode *LeafNode) Hash() []byte

Hash 计算叶子节点的hash

func (*LeafNode) ProtoMessage

func (*LeafNode) ProtoMessage()

func (*LeafNode) Reset

func (m *LeafNode) Reset()

func (*LeafNode) String

func (m *LeafNode) String() string

func (*LeafNode) XXX_DiscardUnknown

func (m *LeafNode) XXX_DiscardUnknown()

func (*LeafNode) XXX_Marshal

func (m *LeafNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeafNode) XXX_Merge

func (m *LeafNode) XXX_Merge(src proto.Message)

func (*LeafNode) XXX_Size

func (m *LeafNode) XXX_Size() int

func (*LeafNode) XXX_Unmarshal

func (m *LeafNode) XXX_Unmarshal(b []byte) error

type LightBlock

type LightBlock struct {
	Size                 int64        `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Header               *Header      `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	MinerTx              *Transaction `protobuf:"bytes,3,opt,name=minerTx,proto3" json:"minerTx,omitempty"`
	STxHashes            []string     `protobuf:"bytes,4,rep,name=sTxHashes,proto3" json:"sTxHashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

* p2p 轻量级区块, 广播交易短哈希列表

func (*LightBlock) Descriptor

func (*LightBlock) Descriptor() ([]byte, []int)

func (*LightBlock) GetHeader

func (m *LightBlock) GetHeader() *Header

func (*LightBlock) GetMinerTx

func (m *LightBlock) GetMinerTx() *Transaction

func (*LightBlock) GetSTxHashes

func (m *LightBlock) GetSTxHashes() []string

func (*LightBlock) GetSize

func (m *LightBlock) GetSize() int64

func (*LightBlock) ProtoMessage

func (*LightBlock) ProtoMessage()

func (*LightBlock) Reset

func (m *LightBlock) Reset()

func (*LightBlock) String

func (m *LightBlock) String() string

func (*LightBlock) XXX_DiscardUnknown

func (m *LightBlock) XXX_DiscardUnknown()

func (*LightBlock) XXX_Marshal

func (m *LightBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LightBlock) XXX_Merge

func (m *LightBlock) XXX_Merge(src proto.Message)

func (*LightBlock) XXX_Size

func (m *LightBlock) XXX_Size() int

func (*LightBlock) XXX_Unmarshal

func (m *LightBlock) XXX_Unmarshal(b []byte) error

type LightTx

type LightTx struct {
	TxHash               []byte    `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	Route                *P2PRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

轻量级交易广播

func (*LightTx) Descriptor

func (*LightTx) Descriptor() ([]byte, []int)

func (*LightTx) GetRoute

func (m *LightTx) GetRoute() *P2PRoute

func (*LightTx) GetTxHash

func (m *LightTx) GetTxHash() []byte

func (*LightTx) ProtoMessage

func (*LightTx) ProtoMessage()

func (*LightTx) Reset

func (m *LightTx) Reset()

func (*LightTx) String

func (m *LightTx) String() string

func (*LightTx) XXX_DiscardUnknown

func (m *LightTx) XXX_DiscardUnknown()

func (*LightTx) XXX_Marshal

func (m *LightTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LightTx) XXX_Merge

func (m *LightTx) XXX_Merge(src proto.Message)

func (*LightTx) XXX_Size

func (m *LightTx) XXX_Size() int

func (*LightTx) XXX_Unmarshal

func (m *LightTx) XXX_Unmarshal(b []byte) error

type LocalDBGet

type LocalDBGet struct {
	Keys                 [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	Txid                 int64    `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LocalDBGet) Descriptor

func (*LocalDBGet) Descriptor() ([]byte, []int)

func (*LocalDBGet) GetKeys

func (m *LocalDBGet) GetKeys() [][]byte

func (*LocalDBGet) GetTxid

func (m *LocalDBGet) GetTxid() int64

func (*LocalDBGet) ProtoMessage

func (*LocalDBGet) ProtoMessage()

func (*LocalDBGet) Reset

func (m *LocalDBGet) Reset()

func (*LocalDBGet) String

func (m *LocalDBGet) String() string

func (*LocalDBGet) XXX_DiscardUnknown

func (m *LocalDBGet) XXX_DiscardUnknown()

func (*LocalDBGet) XXX_Marshal

func (m *LocalDBGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalDBGet) XXX_Merge

func (m *LocalDBGet) XXX_Merge(src proto.Message)

func (*LocalDBGet) XXX_Size

func (m *LocalDBGet) XXX_Size() int

func (*LocalDBGet) XXX_Unmarshal

func (m *LocalDBGet) XXX_Unmarshal(b []byte) error

type LocalDBList

type LocalDBList struct {
	Prefix               []byte   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Key                  []byte   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Direction            int32    `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
	Count                int32    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Txid                 int64    `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LocalDBList) Descriptor

func (*LocalDBList) Descriptor() ([]byte, []int)

func (*LocalDBList) GetCount

func (m *LocalDBList) GetCount() int32

func (*LocalDBList) GetDirection

func (m *LocalDBList) GetDirection() int32

func (*LocalDBList) GetKey

func (m *LocalDBList) GetKey() []byte

func (*LocalDBList) GetPrefix

func (m *LocalDBList) GetPrefix() []byte

func (*LocalDBList) GetTxid

func (m *LocalDBList) GetTxid() int64

func (*LocalDBList) ProtoMessage

func (*LocalDBList) ProtoMessage()

func (*LocalDBList) Reset

func (m *LocalDBList) Reset()

func (*LocalDBList) String

func (m *LocalDBList) String() string

func (*LocalDBList) XXX_DiscardUnknown

func (m *LocalDBList) XXX_DiscardUnknown()

func (*LocalDBList) XXX_Marshal

func (m *LocalDBList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalDBList) XXX_Merge

func (m *LocalDBList) XXX_Merge(src proto.Message)

func (*LocalDBList) XXX_Size

func (m *LocalDBList) XXX_Size() int

func (*LocalDBList) XXX_Unmarshal

func (m *LocalDBList) XXX_Unmarshal(b []byte) error

type LocalDBSet

type LocalDBSet struct {
	KV                   []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
	Txid                 int64       `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*LocalDBSet) Descriptor

func (*LocalDBSet) Descriptor() ([]byte, []int)

func (*LocalDBSet) GetKV

func (m *LocalDBSet) GetKV() []*KeyValue

func (*LocalDBSet) GetTxid

func (m *LocalDBSet) GetTxid() int64

func (*LocalDBSet) ProtoMessage

func (*LocalDBSet) ProtoMessage()

func (*LocalDBSet) Reset

func (m *LocalDBSet) Reset()

func (*LocalDBSet) String

func (m *LocalDBSet) String() string

func (*LocalDBSet) XXX_DiscardUnknown

func (m *LocalDBSet) XXX_DiscardUnknown()

func (*LocalDBSet) XXX_Marshal

func (m *LocalDBSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalDBSet) XXX_Merge

func (m *LocalDBSet) XXX_Merge(src proto.Message)

func (*LocalDBSet) XXX_Size

func (m *LocalDBSet) XXX_Size() int

func (*LocalDBSet) XXX_Unmarshal

func (m *LocalDBSet) XXX_Unmarshal(b []byte) error

type LocalReplyValue

type LocalReplyValue struct {
	Values               [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LocalReplyValue) Descriptor

func (*LocalReplyValue) Descriptor() ([]byte, []int)

func (*LocalReplyValue) GetValues

func (m *LocalReplyValue) GetValues() [][]byte

func (*LocalReplyValue) ProtoMessage

func (*LocalReplyValue) ProtoMessage()

func (*LocalReplyValue) Reset

func (m *LocalReplyValue) Reset()

func (*LocalReplyValue) String

func (m *LocalReplyValue) String() string

func (*LocalReplyValue) XXX_DiscardUnknown

func (m *LocalReplyValue) XXX_DiscardUnknown()

func (*LocalReplyValue) XXX_Marshal

func (m *LocalReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalReplyValue) XXX_Merge

func (m *LocalReplyValue) XXX_Merge(src proto.Message)

func (*LocalReplyValue) XXX_Size

func (m *LocalReplyValue) XXX_Size() int

func (*LocalReplyValue) XXX_Unmarshal

func (m *LocalReplyValue) XXX_Unmarshal(b []byte) error

type Log

type Log struct {
	// 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
	Loglevel        string `protobuf:"bytes,1,opt,name=loglevel" json:"loglevel,omitempty"`
	LogConsoleLevel string `protobuf:"bytes,2,opt,name=logConsoleLevel" json:"logConsoleLevel,omitempty"`
	// 日志文件名,可带目录,所有生成的日志文件都放到此目录下
	LogFile string `protobuf:"bytes,3,opt,name=logFile" json:"logFile,omitempty"`
	// 单个日志文件的最大值(单位:兆)
	MaxFileSize uint32 `protobuf:"varint,4,opt,name=maxFileSize" json:"maxFileSize,omitempty"`
	// 最多保存的历史日志文件个数
	MaxBackups uint32 `protobuf:"varint,5,opt,name=maxBackups" json:"maxBackups,omitempty"`
	// 最多保存的历史日志消息(单位:天)
	MaxAge uint32 `protobuf:"varint,6,opt,name=maxAge" json:"maxAge,omitempty"`
	// 日志文件名是否使用本地事件(否则使用UTC时间)
	LocalTime bool `protobuf:"varint,7,opt,name=localTime" json:"localTime,omitempty"`
	// 历史日志文件是否压缩(压缩格式为gz)
	Compress bool `protobuf:"varint,8,opt,name=compress" json:"compress,omitempty"`
	// 是否打印调用源文件和行号
	CallerFile bool `protobuf:"varint,9,opt,name=callerFile" json:"callerFile,omitempty"`
	// 是否打印调用方法
	CallerFunction bool `protobuf:"varint,10,opt,name=callerFunction" json:"callerFunction,omitempty"`
}

Log 日志配置

type LogErr

type LogErr []byte

LogErr log错误信息

type LogInfo

type LogInfo struct {
	Ty   reflect.Type
	Name string
}

LogInfo loginfo信息

type LogReserved

type LogReserved []byte

LogReserved LogReserved信息

type LogType

type LogType interface {
	Name() string
	Decode([]byte) (interface{}, error)
	JSON([]byte) ([]byte, error)
}

LogType 结构体类型

func LoadLog

func LoadLog(execer []byte, ty int64) LogType

LoadLog 加载log类型

type MAVLProof

type MAVLProof struct {
	LeafHash             []byte       `protobuf:"bytes,1,opt,name=leafHash,proto3" json:"leafHash,omitempty"`
	InnerNodes           []*InnerNode `protobuf:"bytes,2,rep,name=innerNodes,proto3" json:"innerNodes,omitempty"`
	RootHash             []byte       `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MAVLProof) Descriptor

func (*MAVLProof) Descriptor() ([]byte, []int)

func (*MAVLProof) GetInnerNodes

func (m *MAVLProof) GetInnerNodes() []*InnerNode

func (*MAVLProof) GetLeafHash

func (m *MAVLProof) GetLeafHash() []byte

func (*MAVLProof) GetRootHash

func (m *MAVLProof) GetRootHash() []byte

func (*MAVLProof) ProtoMessage

func (*MAVLProof) ProtoMessage()

func (*MAVLProof) Reset

func (m *MAVLProof) Reset()

func (*MAVLProof) String

func (m *MAVLProof) String() string

func (*MAVLProof) XXX_DiscardUnknown

func (m *MAVLProof) XXX_DiscardUnknown()

func (*MAVLProof) XXX_Marshal

func (m *MAVLProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MAVLProof) XXX_Merge

func (m *MAVLProof) XXX_Merge(src proto.Message)

func (*MAVLProof) XXX_Size

func (m *MAVLProof) XXX_Size() int

func (*MAVLProof) XXX_Unmarshal

func (m *MAVLProof) XXX_Unmarshal(b []byte) error

type Mempool

type Mempool struct {
	// mempool队列名称,可配,timeline,score,price
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// mempool缓存容量大小,默认10240
	PoolCacheSize int64 `protobuf:"varint,2,opt,name=poolCacheSize" json:"poolCacheSize,omitempty"`
	ForceAccept   bool  `protobuf:"varint,4,opt,name=forceAccept" json:"forceAccept,omitempty"`
	// 每个账户在mempool中得最大交易数量,默认100
	MaxTxNumPerAccount int64 `protobuf:"varint,5,opt,name=maxTxNumPerAccount" json:"maxTxNumPerAccount,omitempty"`
	MaxTxLast          int64 `protobuf:"varint,6,opt,name=maxTxLast" json:"maxTxLast,omitempty"`
	IsLevelFee         bool  `protobuf:"varint,7,opt,name=isLevelFee" json:"isLevelFee,omitempty"`
	// 最小单元交易费,这个没有默认值,必填,一般是100000
	MinTxFeeRate int64 `protobuf:"varint,8,opt,name=minTxFeeRate" json:"minTxFeeRate,omitempty"`
	// 最大单元交易费, 默认1e7
	MaxTxFeeRate int64 `protobuf:"varint,9,opt,name=maxTxFeeRate" json:"maxTxFeeRate,omitempty"`
	// 单笔最大交易费, 默认1e9
	MaxTxFee int64 `protobuf:"varint,10,opt,name=maxTxFee" json:"maxTxFee,omitempty"`
}

Mempool 配置

type MempoolSize

type MempoolSize struct {
	Size                 int64    `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MempoolSize) Descriptor

func (*MempoolSize) Descriptor() ([]byte, []int)

func (*MempoolSize) GetSize

func (m *MempoolSize) GetSize() int64

func (*MempoolSize) ProtoMessage

func (*MempoolSize) ProtoMessage()

func (*MempoolSize) Reset

func (m *MempoolSize) Reset()

func (*MempoolSize) String

func (m *MempoolSize) String() string

func (*MempoolSize) XXX_DiscardUnknown

func (m *MempoolSize) XXX_DiscardUnknown()

func (*MempoolSize) XXX_Marshal

func (m *MempoolSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MempoolSize) XXX_Merge

func (m *MempoolSize) XXX_Merge(src proto.Message)

func (*MempoolSize) XXX_Size

func (m *MempoolSize) XXX_Size() int

func (*MempoolSize) XXX_Unmarshal

func (m *MempoolSize) XXX_Unmarshal(b []byte) error

type Message

type Message proto.Message

Message 声明proto.Message

func CallQueryFunc

func CallQueryFunc(this reflect.Value, f reflect.Method, in Message) (reply Message, err error)

CallQueryFunc 获取查询接口函数

type MessageAddrList

type MessageAddrList struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PAddrList `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageAddrList) Descriptor

func (*MessageAddrList) Descriptor() ([]byte, []int)

func (*MessageAddrList) GetMessage

func (m *MessageAddrList) GetMessage() *P2PAddrList

func (*MessageAddrList) GetMessageData

func (m *MessageAddrList) GetMessageData() *MessageComm

func (*MessageAddrList) ProtoMessage

func (*MessageAddrList) ProtoMessage()

func (*MessageAddrList) Reset

func (m *MessageAddrList) Reset()

func (*MessageAddrList) String

func (m *MessageAddrList) String() string

func (*MessageAddrList) XXX_DiscardUnknown

func (m *MessageAddrList) XXX_DiscardUnknown()

func (*MessageAddrList) XXX_Marshal

func (m *MessageAddrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageAddrList) XXX_Merge

func (m *MessageAddrList) XXX_Merge(src proto.Message)

func (*MessageAddrList) XXX_Size

func (m *MessageAddrList) XXX_Size() int

func (*MessageAddrList) XXX_Unmarshal

func (m *MessageAddrList) XXX_Unmarshal(b []byte) error

type MessageAddrReq

type MessageAddrReq struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PGetAddr  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageAddrReq) Descriptor

func (*MessageAddrReq) Descriptor() ([]byte, []int)

func (*MessageAddrReq) GetMessage

func (m *MessageAddrReq) GetMessage() *P2PGetAddr

func (*MessageAddrReq) GetMessageData

func (m *MessageAddrReq) GetMessageData() *MessageComm

func (*MessageAddrReq) ProtoMessage

func (*MessageAddrReq) ProtoMessage()

func (*MessageAddrReq) Reset

func (m *MessageAddrReq) Reset()

func (*MessageAddrReq) String

func (m *MessageAddrReq) String() string

func (*MessageAddrReq) XXX_DiscardUnknown

func (m *MessageAddrReq) XXX_DiscardUnknown()

func (*MessageAddrReq) XXX_Marshal

func (m *MessageAddrReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageAddrReq) XXX_Merge

func (m *MessageAddrReq) XXX_Merge(src proto.Message)

func (*MessageAddrReq) XXX_Size

func (m *MessageAddrReq) XXX_Size() int

func (*MessageAddrReq) XXX_Unmarshal

func (m *MessageAddrReq) XXX_Unmarshal(b []byte) error

type MessageAddrResp

type MessageAddrResp struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PAddr     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageAddrResp) Descriptor

func (*MessageAddrResp) Descriptor() ([]byte, []int)

func (*MessageAddrResp) GetMessage

func (m *MessageAddrResp) GetMessage() *P2PAddr

func (*MessageAddrResp) GetMessageData

func (m *MessageAddrResp) GetMessageData() *MessageComm

func (*MessageAddrResp) ProtoMessage

func (*MessageAddrResp) ProtoMessage()

func (*MessageAddrResp) Reset

func (m *MessageAddrResp) Reset()

func (*MessageAddrResp) String

func (m *MessageAddrResp) String() string

func (*MessageAddrResp) XXX_DiscardUnknown

func (m *MessageAddrResp) XXX_DiscardUnknown()

func (*MessageAddrResp) XXX_Marshal

func (m *MessageAddrResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageAddrResp) XXX_Merge

func (m *MessageAddrResp) XXX_Merge(src proto.Message)

func (*MessageAddrResp) XXX_Size

func (m *MessageAddrResp) XXX_Size() int

func (*MessageAddrResp) XXX_Unmarshal

func (m *MessageAddrResp) XXX_Unmarshal(b []byte) error

type MessageBroadCast

type MessageBroadCast struct {
	Common               *MessageComm   `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	Message              *BroadCastData `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*MessageBroadCast) Descriptor

func (*MessageBroadCast) Descriptor() ([]byte, []int)

func (*MessageBroadCast) GetCommon

func (m *MessageBroadCast) GetCommon() *MessageComm

func (*MessageBroadCast) GetMessage

func (m *MessageBroadCast) GetMessage() *BroadCastData

func (*MessageBroadCast) ProtoMessage

func (*MessageBroadCast) ProtoMessage()

func (*MessageBroadCast) Reset

func (m *MessageBroadCast) Reset()

func (*MessageBroadCast) String

func (m *MessageBroadCast) String() string

func (*MessageBroadCast) XXX_DiscardUnknown

func (m *MessageBroadCast) XXX_DiscardUnknown()

func (*MessageBroadCast) XXX_Marshal

func (m *MessageBroadCast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageBroadCast) XXX_Merge

func (m *MessageBroadCast) XXX_Merge(src proto.Message)

func (*MessageBroadCast) XXX_Size

func (m *MessageBroadCast) XXX_Size() int

func (*MessageBroadCast) XXX_Unmarshal

func (m *MessageBroadCast) XXX_Unmarshal(b []byte) error

type MessageComm

type MessageComm struct {
	// shared between all requests
	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Timestamp            int64    `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Id                   string   `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Gossip               bool     `protobuf:"varint,4,opt,name=gossip,proto3" json:"gossip,omitempty"`
	NodeId               string   `protobuf:"bytes,5,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
	NodePubKey           []byte   `protobuf:"bytes,6,opt,name=nodePubKey,proto3" json:"nodePubKey,omitempty"`
	Sign                 []byte   `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MessageComm) Descriptor

func (*MessageComm) Descriptor() ([]byte, []int)

func (*MessageComm) GetGossip

func (m *MessageComm) GetGossip() bool

func (*MessageComm) GetId

func (m *MessageComm) GetId() string

func (*MessageComm) GetNodeId

func (m *MessageComm) GetNodeId() string

func (*MessageComm) GetNodePubKey

func (m *MessageComm) GetNodePubKey() []byte

func (*MessageComm) GetSign

func (m *MessageComm) GetSign() []byte

func (*MessageComm) GetTimestamp

func (m *MessageComm) GetTimestamp() int64

func (*MessageComm) GetVersion

func (m *MessageComm) GetVersion() string

func (*MessageComm) ProtoMessage

func (*MessageComm) ProtoMessage()

func (*MessageComm) Reset

func (m *MessageComm) Reset()

func (*MessageComm) String

func (m *MessageComm) String() string

func (*MessageComm) XXX_DiscardUnknown

func (m *MessageComm) XXX_DiscardUnknown()

func (*MessageComm) XXX_Marshal

func (m *MessageComm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageComm) XXX_Merge

func (m *MessageComm) XXX_Merge(src proto.Message)

func (*MessageComm) XXX_Size

func (m *MessageComm) XXX_Size() int

func (*MessageComm) XXX_Unmarshal

func (m *MessageComm) XXX_Unmarshal(b []byte) error

type MessageExternalNetReq

type MessageExternalNetReq struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageExternalNetReq) Descriptor

func (*MessageExternalNetReq) Descriptor() ([]byte, []int)

func (*MessageExternalNetReq) GetMessageData

func (m *MessageExternalNetReq) GetMessageData() *MessageComm

func (*MessageExternalNetReq) ProtoMessage

func (*MessageExternalNetReq) ProtoMessage()

func (*MessageExternalNetReq) Reset

func (m *MessageExternalNetReq) Reset()

func (*MessageExternalNetReq) String

func (m *MessageExternalNetReq) String() string

func (*MessageExternalNetReq) XXX_DiscardUnknown

func (m *MessageExternalNetReq) XXX_DiscardUnknown()

func (*MessageExternalNetReq) XXX_Marshal

func (m *MessageExternalNetReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageExternalNetReq) XXX_Merge

func (m *MessageExternalNetReq) XXX_Merge(src proto.Message)

func (*MessageExternalNetReq) XXX_Size

func (m *MessageExternalNetReq) XXX_Size() int

func (*MessageExternalNetReq) XXX_Unmarshal

func (m *MessageExternalNetReq) XXX_Unmarshal(b []byte) error

type MessageExternalNetResp

type MessageExternalNetResp struct {
	MessageData          *MessageComm     `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PExternalInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*MessageExternalNetResp) Descriptor

func (*MessageExternalNetResp) Descriptor() ([]byte, []int)

func (*MessageExternalNetResp) GetMessage

func (m *MessageExternalNetResp) GetMessage() *P2PExternalInfo

func (*MessageExternalNetResp) GetMessageData

func (m *MessageExternalNetResp) GetMessageData() *MessageComm

func (*MessageExternalNetResp) ProtoMessage

func (*MessageExternalNetResp) ProtoMessage()

func (*MessageExternalNetResp) Reset

func (m *MessageExternalNetResp) Reset()

func (*MessageExternalNetResp) String

func (m *MessageExternalNetResp) String() string

func (*MessageExternalNetResp) XXX_DiscardUnknown

func (m *MessageExternalNetResp) XXX_DiscardUnknown()

func (*MessageExternalNetResp) XXX_Marshal

func (m *MessageExternalNetResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageExternalNetResp) XXX_Merge

func (m *MessageExternalNetResp) XXX_Merge(src proto.Message)

func (*MessageExternalNetResp) XXX_Size

func (m *MessageExternalNetResp) XXX_Size() int

func (*MessageExternalNetResp) XXX_Unmarshal

func (m *MessageExternalNetResp) XXX_Unmarshal(b []byte) error

type MessageGetBlocksReq

type MessageGetBlocksReq struct {
	MessageData          *MessageComm  `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PGetBlocks `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*MessageGetBlocksReq) Descriptor

func (*MessageGetBlocksReq) Descriptor() ([]byte, []int)

func (*MessageGetBlocksReq) GetMessage

func (m *MessageGetBlocksReq) GetMessage() *P2PGetBlocks

func (*MessageGetBlocksReq) GetMessageData

func (m *MessageGetBlocksReq) GetMessageData() *MessageComm

func (*MessageGetBlocksReq) ProtoMessage

func (*MessageGetBlocksReq) ProtoMessage()

func (*MessageGetBlocksReq) Reset

func (m *MessageGetBlocksReq) Reset()

func (*MessageGetBlocksReq) String

func (m *MessageGetBlocksReq) String() string

func (*MessageGetBlocksReq) XXX_DiscardUnknown

func (m *MessageGetBlocksReq) XXX_DiscardUnknown()

func (*MessageGetBlocksReq) XXX_Marshal

func (m *MessageGetBlocksReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageGetBlocksReq) XXX_Merge

func (m *MessageGetBlocksReq) XXX_Merge(src proto.Message)

func (*MessageGetBlocksReq) XXX_Size

func (m *MessageGetBlocksReq) XXX_Size() int

func (*MessageGetBlocksReq) XXX_Unmarshal

func (m *MessageGetBlocksReq) XXX_Unmarshal(b []byte) error

type MessageGetBlocksResp

type MessageGetBlocksResp struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *InvDatas    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageGetBlocksResp) Descriptor

func (*MessageGetBlocksResp) Descriptor() ([]byte, []int)

func (*MessageGetBlocksResp) GetMessage

func (m *MessageGetBlocksResp) GetMessage() *InvDatas

func (*MessageGetBlocksResp) GetMessageData

func (m *MessageGetBlocksResp) GetMessageData() *MessageComm

func (*MessageGetBlocksResp) ProtoMessage

func (*MessageGetBlocksResp) ProtoMessage()

func (*MessageGetBlocksResp) Reset

func (m *MessageGetBlocksResp) Reset()

func (*MessageGetBlocksResp) String

func (m *MessageGetBlocksResp) String() string

func (*MessageGetBlocksResp) XXX_DiscardUnknown

func (m *MessageGetBlocksResp) XXX_DiscardUnknown()

func (*MessageGetBlocksResp) XXX_Marshal

func (m *MessageGetBlocksResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageGetBlocksResp) XXX_Merge

func (m *MessageGetBlocksResp) XXX_Merge(src proto.Message)

func (*MessageGetBlocksResp) XXX_Size

func (m *MessageGetBlocksResp) XXX_Size() int

func (*MessageGetBlocksResp) XXX_Unmarshal

func (m *MessageGetBlocksResp) XXX_Unmarshal(b []byte) error

type MessageGetMempoolReq

type MessageGetMempoolReq struct {
	MessageData          *MessageComm   `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PGetMempool `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*MessageGetMempoolReq) Descriptor

func (*MessageGetMempoolReq) Descriptor() ([]byte, []int)

func (*MessageGetMempoolReq) GetMessage

func (m *MessageGetMempoolReq) GetMessage() *P2PGetMempool

func (*MessageGetMempoolReq) GetMessageData

func (m *MessageGetMempoolReq) GetMessageData() *MessageComm

func (*MessageGetMempoolReq) ProtoMessage

func (*MessageGetMempoolReq) ProtoMessage()

func (*MessageGetMempoolReq) Reset

func (m *MessageGetMempoolReq) Reset()

func (*MessageGetMempoolReq) String

func (m *MessageGetMempoolReq) String() string

func (*MessageGetMempoolReq) XXX_DiscardUnknown

func (m *MessageGetMempoolReq) XXX_DiscardUnknown()

func (*MessageGetMempoolReq) XXX_Marshal

func (m *MessageGetMempoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageGetMempoolReq) XXX_Merge

func (m *MessageGetMempoolReq) XXX_Merge(src proto.Message)

func (*MessageGetMempoolReq) XXX_Size

func (m *MessageGetMempoolReq) XXX_Size() int

func (*MessageGetMempoolReq) XXX_Unmarshal

func (m *MessageGetMempoolReq) XXX_Unmarshal(b []byte) error

type MessageHeaderReq

type MessageHeaderReq struct {
	MessageData          *MessageComm   `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PGetHeaders `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*MessageHeaderReq) Descriptor

func (*MessageHeaderReq) Descriptor() ([]byte, []int)

func (*MessageHeaderReq) GetMessage

func (m *MessageHeaderReq) GetMessage() *P2PGetHeaders

func (*MessageHeaderReq) GetMessageData

func (m *MessageHeaderReq) GetMessageData() *MessageComm

func (*MessageHeaderReq) ProtoMessage

func (*MessageHeaderReq) ProtoMessage()

func (*MessageHeaderReq) Reset

func (m *MessageHeaderReq) Reset()

func (*MessageHeaderReq) String

func (m *MessageHeaderReq) String() string

func (*MessageHeaderReq) XXX_DiscardUnknown

func (m *MessageHeaderReq) XXX_DiscardUnknown()

func (*MessageHeaderReq) XXX_Marshal

func (m *MessageHeaderReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageHeaderReq) XXX_Merge

func (m *MessageHeaderReq) XXX_Merge(src proto.Message)

func (*MessageHeaderReq) XXX_Size

func (m *MessageHeaderReq) XXX_Size() int

func (*MessageHeaderReq) XXX_Unmarshal

func (m *MessageHeaderReq) XXX_Unmarshal(b []byte) error

type MessageHeaderResp

type MessageHeaderResp struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PHeaders  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageHeaderResp) Descriptor

func (*MessageHeaderResp) Descriptor() ([]byte, []int)

func (*MessageHeaderResp) GetMessage

func (m *MessageHeaderResp) GetMessage() *P2PHeaders

func (*MessageHeaderResp) GetMessageData

func (m *MessageHeaderResp) GetMessageData() *MessageComm

func (*MessageHeaderResp) ProtoMessage

func (*MessageHeaderResp) ProtoMessage()

func (*MessageHeaderResp) Reset

func (m *MessageHeaderResp) Reset()

func (*MessageHeaderResp) String

func (m *MessageHeaderResp) String() string

func (*MessageHeaderResp) XXX_DiscardUnknown

func (m *MessageHeaderResp) XXX_DiscardUnknown()

func (*MessageHeaderResp) XXX_Marshal

func (m *MessageHeaderResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageHeaderResp) XXX_Merge

func (m *MessageHeaderResp) XXX_Merge(src proto.Message)

func (*MessageHeaderResp) XXX_Size

func (m *MessageHeaderResp) XXX_Size() int

func (*MessageHeaderResp) XXX_Unmarshal

func (m *MessageHeaderResp) XXX_Unmarshal(b []byte) error

type MessageInvDataReq

type MessageInvDataReq struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *InvData     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageInvDataReq) Descriptor

func (*MessageInvDataReq) Descriptor() ([]byte, []int)

func (*MessageInvDataReq) GetMessage

func (m *MessageInvDataReq) GetMessage() *InvData

func (*MessageInvDataReq) GetMessageData

func (m *MessageInvDataReq) GetMessageData() *MessageComm

func (*MessageInvDataReq) ProtoMessage

func (*MessageInvDataReq) ProtoMessage()

func (*MessageInvDataReq) Reset

func (m *MessageInvDataReq) Reset()

func (*MessageInvDataReq) String

func (m *MessageInvDataReq) String() string

func (*MessageInvDataReq) XXX_DiscardUnknown

func (m *MessageInvDataReq) XXX_DiscardUnknown()

func (*MessageInvDataReq) XXX_Marshal

func (m *MessageInvDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageInvDataReq) XXX_Merge

func (m *MessageInvDataReq) XXX_Merge(src proto.Message)

func (*MessageInvDataReq) XXX_Size

func (m *MessageInvDataReq) XXX_Size() int

func (*MessageInvDataReq) XXX_Unmarshal

func (m *MessageInvDataReq) XXX_Unmarshal(b []byte) error

type MessageNetInfo

type MessageNetInfo struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *NodeNetInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageNetInfo) Descriptor

func (*MessageNetInfo) Descriptor() ([]byte, []int)

func (*MessageNetInfo) GetMessage

func (m *MessageNetInfo) GetMessage() *NodeNetInfo

func (*MessageNetInfo) GetMessageData

func (m *MessageNetInfo) GetMessageData() *MessageComm

func (*MessageNetInfo) ProtoMessage

func (*MessageNetInfo) ProtoMessage()

func (*MessageNetInfo) Reset

func (m *MessageNetInfo) Reset()

func (*MessageNetInfo) String

func (m *MessageNetInfo) String() string

func (*MessageNetInfo) XXX_DiscardUnknown

func (m *MessageNetInfo) XXX_DiscardUnknown()

func (*MessageNetInfo) XXX_Marshal

func (m *MessageNetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageNetInfo) XXX_Merge

func (m *MessageNetInfo) XXX_Merge(src proto.Message)

func (*MessageNetInfo) XXX_Size

func (m *MessageNetInfo) XXX_Size() int

func (*MessageNetInfo) XXX_Unmarshal

func (m *MessageNetInfo) XXX_Unmarshal(b []byte) error

type MessageP2PVersionReq

type MessageP2PVersionReq struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PVersion  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageP2PVersionReq) Descriptor

func (*MessageP2PVersionReq) Descriptor() ([]byte, []int)

func (*MessageP2PVersionReq) GetMessage

func (m *MessageP2PVersionReq) GetMessage() *P2PVersion

func (*MessageP2PVersionReq) GetMessageData

func (m *MessageP2PVersionReq) GetMessageData() *MessageComm

func (*MessageP2PVersionReq) ProtoMessage

func (*MessageP2PVersionReq) ProtoMessage()

func (*MessageP2PVersionReq) Reset

func (m *MessageP2PVersionReq) Reset()

func (*MessageP2PVersionReq) String

func (m *MessageP2PVersionReq) String() string

func (*MessageP2PVersionReq) XXX_DiscardUnknown

func (m *MessageP2PVersionReq) XXX_DiscardUnknown()

func (*MessageP2PVersionReq) XXX_Marshal

func (m *MessageP2PVersionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageP2PVersionReq) XXX_Merge

func (m *MessageP2PVersionReq) XXX_Merge(src proto.Message)

func (*MessageP2PVersionReq) XXX_Size

func (m *MessageP2PVersionReq) XXX_Size() int

func (*MessageP2PVersionReq) XXX_Unmarshal

func (m *MessageP2PVersionReq) XXX_Unmarshal(b []byte) error

type MessageP2PVersionResp

type MessageP2PVersionResp struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PVersion  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageP2PVersionResp) Descriptor

func (*MessageP2PVersionResp) Descriptor() ([]byte, []int)

func (*MessageP2PVersionResp) GetMessage

func (m *MessageP2PVersionResp) GetMessage() *P2PVersion

func (*MessageP2PVersionResp) GetMessageData

func (m *MessageP2PVersionResp) GetMessageData() *MessageComm

func (*MessageP2PVersionResp) ProtoMessage

func (*MessageP2PVersionResp) ProtoMessage()

func (*MessageP2PVersionResp) Reset

func (m *MessageP2PVersionResp) Reset()

func (*MessageP2PVersionResp) String

func (m *MessageP2PVersionResp) String() string

func (*MessageP2PVersionResp) XXX_DiscardUnknown

func (m *MessageP2PVersionResp) XXX_DiscardUnknown()

func (*MessageP2PVersionResp) XXX_Marshal

func (m *MessageP2PVersionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageP2PVersionResp) XXX_Merge

func (m *MessageP2PVersionResp) XXX_Merge(src proto.Message)

func (*MessageP2PVersionResp) XXX_Size

func (m *MessageP2PVersionResp) XXX_Size() int

func (*MessageP2PVersionResp) XXX_Unmarshal

func (m *MessageP2PVersionResp) XXX_Unmarshal(b []byte) error

type MessagePeerInfoReq

type MessagePeerInfoReq struct {
	/// p2p版本
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

* 请求获取远程节点的节点信息

func (*MessagePeerInfoReq) Descriptor

func (*MessagePeerInfoReq) Descriptor() ([]byte, []int)

func (*MessagePeerInfoReq) GetMessageData

func (m *MessagePeerInfoReq) GetMessageData() *MessageComm

func (*MessagePeerInfoReq) ProtoMessage

func (*MessagePeerInfoReq) ProtoMessage()

func (*MessagePeerInfoReq) Reset

func (m *MessagePeerInfoReq) Reset()

func (*MessagePeerInfoReq) String

func (m *MessagePeerInfoReq) String() string

func (*MessagePeerInfoReq) XXX_DiscardUnknown

func (m *MessagePeerInfoReq) XXX_DiscardUnknown()

func (*MessagePeerInfoReq) XXX_Marshal

func (m *MessagePeerInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessagePeerInfoReq) XXX_Merge

func (m *MessagePeerInfoReq) XXX_Merge(src proto.Message)

func (*MessagePeerInfoReq) XXX_Size

func (m *MessagePeerInfoReq) XXX_Size() int

func (*MessagePeerInfoReq) XXX_Unmarshal

func (m *MessagePeerInfoReq) XXX_Unmarshal(b []byte) error

type MessagePeerInfoResp

type MessagePeerInfoResp struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PPeerInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessagePeerInfoResp) Descriptor

func (*MessagePeerInfoResp) Descriptor() ([]byte, []int)

func (*MessagePeerInfoResp) GetMessage

func (m *MessagePeerInfoResp) GetMessage() *P2PPeerInfo

func (*MessagePeerInfoResp) GetMessageData

func (m *MessagePeerInfoResp) GetMessageData() *MessageComm

func (*MessagePeerInfoResp) ProtoMessage

func (*MessagePeerInfoResp) ProtoMessage()

func (*MessagePeerInfoResp) Reset

func (m *MessagePeerInfoResp) Reset()

func (*MessagePeerInfoResp) String

func (m *MessagePeerInfoResp) String() string

func (*MessagePeerInfoResp) XXX_DiscardUnknown

func (m *MessagePeerInfoResp) XXX_DiscardUnknown()

func (*MessagePeerInfoResp) XXX_Marshal

func (m *MessagePeerInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessagePeerInfoResp) XXX_Merge

func (m *MessagePeerInfoResp) XXX_Merge(src proto.Message)

func (*MessagePeerInfoResp) XXX_Size

func (m *MessagePeerInfoResp) XXX_Size() int

func (*MessagePeerInfoResp) XXX_Unmarshal

func (m *MessagePeerInfoResp) XXX_Unmarshal(b []byte) error

type MessagePeerList

type MessagePeerList struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *PeerList    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessagePeerList) Descriptor

func (*MessagePeerList) Descriptor() ([]byte, []int)

func (*MessagePeerList) GetMessage

func (m *MessagePeerList) GetMessage() *PeerList

func (*MessagePeerList) GetMessageData

func (m *MessagePeerList) GetMessageData() *MessageComm

func (*MessagePeerList) ProtoMessage

func (*MessagePeerList) ProtoMessage()

func (*MessagePeerList) Reset

func (m *MessagePeerList) Reset()

func (*MessagePeerList) String

func (m *MessagePeerList) String() string

func (*MessagePeerList) XXX_DiscardUnknown

func (m *MessagePeerList) XXX_DiscardUnknown()

func (*MessagePeerList) XXX_Marshal

func (m *MessagePeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessagePeerList) XXX_Merge

func (m *MessagePeerList) XXX_Merge(src proto.Message)

func (*MessagePeerList) XXX_Size

func (m *MessagePeerList) XXX_Size() int

func (*MessagePeerList) XXX_Unmarshal

func (m *MessagePeerList) XXX_Unmarshal(b []byte) error

type MessagePeersReply

type MessagePeersReply struct {
	Common               *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	PeersReply           *PeersReply  `protobuf:"bytes,2,opt,name=peersReply,proto3" json:"peersReply,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessagePeersReply) Descriptor

func (*MessagePeersReply) Descriptor() ([]byte, []int)

func (*MessagePeersReply) GetCommon

func (m *MessagePeersReply) GetCommon() *MessageComm

func (*MessagePeersReply) GetPeersReply

func (m *MessagePeersReply) GetPeersReply() *PeersReply

func (*MessagePeersReply) ProtoMessage

func (*MessagePeersReply) ProtoMessage()

func (*MessagePeersReply) Reset

func (m *MessagePeersReply) Reset()

func (*MessagePeersReply) String

func (m *MessagePeersReply) String() string

func (*MessagePeersReply) XXX_DiscardUnknown

func (m *MessagePeersReply) XXX_DiscardUnknown()

func (*MessagePeersReply) XXX_Marshal

func (m *MessagePeersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessagePeersReply) XXX_Merge

func (m *MessagePeersReply) XXX_Merge(src proto.Message)

func (*MessagePeersReply) XXX_Size

func (m *MessagePeersReply) XXX_Size() int

func (*MessagePeersReply) XXX_Unmarshal

func (m *MessagePeersReply) XXX_Unmarshal(b []byte) error

type MessagePingReq

type MessagePingReq struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PPing     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessagePingReq) Descriptor

func (*MessagePingReq) Descriptor() ([]byte, []int)

func (*MessagePingReq) GetMessage

func (m *MessagePingReq) GetMessage() *P2PPing

func (*MessagePingReq) GetMessageData

func (m *MessagePingReq) GetMessageData() *MessageComm

func (*MessagePingReq) ProtoMessage

func (*MessagePingReq) ProtoMessage()

func (*MessagePingReq) Reset

func (m *MessagePingReq) Reset()

func (*MessagePingReq) String

func (m *MessagePingReq) String() string

func (*MessagePingReq) XXX_DiscardUnknown

func (m *MessagePingReq) XXX_DiscardUnknown()

func (*MessagePingReq) XXX_Marshal

func (m *MessagePingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessagePingReq) XXX_Merge

func (m *MessagePingReq) XXX_Merge(src proto.Message)

func (*MessagePingReq) XXX_Size

func (m *MessagePingReq) XXX_Size() int

func (*MessagePingReq) XXX_Unmarshal

func (m *MessagePingReq) XXX_Unmarshal(b []byte) error

type MessagePingResp

type MessagePingResp struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *P2PPong     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessagePingResp) Descriptor

func (*MessagePingResp) Descriptor() ([]byte, []int)

func (*MessagePingResp) GetMessage

func (m *MessagePingResp) GetMessage() *P2PPong

func (*MessagePingResp) GetMessageData

func (m *MessagePingResp) GetMessageData() *MessageComm

func (*MessagePingResp) ProtoMessage

func (*MessagePingResp) ProtoMessage()

func (*MessagePingResp) Reset

func (m *MessagePingResp) Reset()

func (*MessagePingResp) String

func (m *MessagePingResp) String() string

func (*MessagePingResp) XXX_DiscardUnknown

func (m *MessagePingResp) XXX_DiscardUnknown()

func (*MessagePingResp) XXX_Marshal

func (m *MessagePingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessagePingResp) XXX_Merge

func (m *MessagePingResp) XXX_Merge(src proto.Message)

func (*MessagePingResp) XXX_Size

func (m *MessagePingResp) XXX_Size() int

func (*MessagePingResp) XXX_Unmarshal

func (m *MessagePingResp) XXX_Unmarshal(b []byte) error

type MessageUtil

type MessageUtil struct {
	Common *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*MessageUtil_PeerInfo
	//	*MessageUtil_Version
	//	*MessageUtil_VersionAck
	//	*MessageUtil_External
	//	*MessageUtil_Getblocks
	//	*MessageUtil_Invdatas
	Value                isMessageUtil_Value `protobuf_oneof:"value"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*MessageUtil) Descriptor

func (*MessageUtil) Descriptor() ([]byte, []int)

func (*MessageUtil) GetCommon

func (m *MessageUtil) GetCommon() *MessageComm

func (*MessageUtil) GetExternal

func (m *MessageUtil) GetExternal() *P2PExternalInfo

func (*MessageUtil) GetGetblocks

func (m *MessageUtil) GetGetblocks() *P2PGetBlocks

func (*MessageUtil) GetInvdatas

func (m *MessageUtil) GetInvdatas() *InvDatas

func (*MessageUtil) GetPeerInfo

func (m *MessageUtil) GetPeerInfo() *P2PPeerInfo

func (*MessageUtil) GetValue

func (m *MessageUtil) GetValue() isMessageUtil_Value

func (*MessageUtil) GetVersion

func (m *MessageUtil) GetVersion() *P2PVersion

func (*MessageUtil) GetVersionAck

func (m *MessageUtil) GetVersionAck() *P2PVerAck

func (*MessageUtil) ProtoMessage

func (*MessageUtil) ProtoMessage()

func (*MessageUtil) Reset

func (m *MessageUtil) Reset()

func (*MessageUtil) String

func (m *MessageUtil) String() string

func (*MessageUtil) XXX_DiscardUnknown

func (m *MessageUtil) XXX_DiscardUnknown()

func (*MessageUtil) XXX_Marshal

func (m *MessageUtil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageUtil) XXX_Merge

func (m *MessageUtil) XXX_Merge(src proto.Message)

func (*MessageUtil) XXX_OneofWrappers

func (*MessageUtil) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MessageUtil) XXX_Size

func (m *MessageUtil) XXX_Size() int

func (*MessageUtil) XXX_Unmarshal

func (m *MessageUtil) XXX_Unmarshal(b []byte) error

type MessageUtil_External

type MessageUtil_External struct {
	External *P2PExternalInfo `protobuf:"bytes,5,opt,name=external,proto3,oneof"`
}

type MessageUtil_Getblocks

type MessageUtil_Getblocks struct {
	Getblocks *P2PGetBlocks `protobuf:"bytes,6,opt,name=getblocks,proto3,oneof"`
}

type MessageUtil_Invdatas

type MessageUtil_Invdatas struct {
	Invdatas *InvDatas `protobuf:"bytes,7,opt,name=invdatas,proto3,oneof"`
}

type MessageUtil_PeerInfo

type MessageUtil_PeerInfo struct {
	PeerInfo *P2PPeerInfo `protobuf:"bytes,2,opt,name=peerInfo,proto3,oneof"`
}

type MessageUtil_Version

type MessageUtil_Version struct {
	Version *P2PVersion `protobuf:"bytes,3,opt,name=version,proto3,oneof"`
}

type MessageUtil_VersionAck

type MessageUtil_VersionAck struct {
	VersionAck *P2PVerAck `protobuf:"bytes,4,opt,name=versionAck,proto3,oneof"`
}

type MessageVersion

type MessageVersion struct {
	MessageData          *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message              *Versions    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MessageVersion) Descriptor

func (*MessageVersion) Descriptor() ([]byte, []int)

func (*MessageVersion) GetMessage

func (m *MessageVersion) GetMessage() *Versions

func (*MessageVersion) GetMessageData

func (m *MessageVersion) GetMessageData() *MessageComm

func (*MessageVersion) ProtoMessage

func (*MessageVersion) ProtoMessage()

func (*MessageVersion) Reset

func (m *MessageVersion) Reset()

func (*MessageVersion) String

func (m *MessageVersion) String() string

func (*MessageVersion) XXX_DiscardUnknown

func (m *MessageVersion) XXX_DiscardUnknown()

func (*MessageVersion) XXX_Marshal

func (m *MessageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageVersion) XXX_Merge

func (m *MessageVersion) XXX_Merge(src proto.Message)

func (*MessageVersion) XXX_Size

func (m *MessageVersion) XXX_Size() int

func (*MessageVersion) XXX_Unmarshal

func (m *MessageVersion) XXX_Unmarshal(b []byte) error

type Metrics

type Metrics struct {
	EnableMetrics bool   `protobuf:"varint,1,opt,name=enableMetrics" json:"enableMetrics,omitempty"`
	DataEmitMode  string `protobuf:"bytes,2,opt,name=dataEmitMode" json:"dataEmitMode,omitempty"`
	Duration      int64  `protobuf:"varint,3,opt,name=duration" json:"duration,omitempty"`
	URL           string `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"`
	DatabaseName  string `protobuf:"bytes,5,opt,name=databaseName" json:"databaseName,omitempty"`
	Username      string `protobuf:"bytes,6,opt,name=username" json:"username,omitempty"`
	Password      string `protobuf:"bytes,7,opt,name=password" json:"password,omitempty"`
	Namespace     string `protobuf:"bytes,8,opt,name=namespace" json:"namespace,omitempty"`
}

Metrics:相关测量配置信息

type ModifyConfig

type ModifyConfig struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Op                   string   `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"`
	Addr                 string   `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ModifyConfig) Descriptor

func (*ModifyConfig) Descriptor() ([]byte, []int)

func (*ModifyConfig) GetAddr

func (m *ModifyConfig) GetAddr() string

func (*ModifyConfig) GetKey

func (m *ModifyConfig) GetKey() string

func (*ModifyConfig) GetOp

func (m *ModifyConfig) GetOp() string

func (*ModifyConfig) GetValue

func (m *ModifyConfig) GetValue() string

func (*ModifyConfig) ProtoMessage

func (*ModifyConfig) ProtoMessage()

func (*ModifyConfig) Reset

func (m *ModifyConfig) Reset()

func (*ModifyConfig) String

func (m *ModifyConfig) String() string

func (*ModifyConfig) XXX_DiscardUnknown

func (m *ModifyConfig) XXX_DiscardUnknown()

func (*ModifyConfig) XXX_Marshal

func (m *ModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModifyConfig) XXX_Merge

func (m *ModifyConfig) XXX_Merge(src proto.Message)

func (*ModifyConfig) XXX_Size

func (m *ModifyConfig) XXX_Size() int

func (*ModifyConfig) XXX_Unmarshal

func (m *ModifyConfig) XXX_Unmarshal(b []byte) error

type NoBalanceTx

type NoBalanceTx struct {
	TxHex                string   `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	PayAddr              string   `protobuf:"bytes,2,opt,name=payAddr,proto3" json:"payAddr,omitempty"`
	Privkey              string   `protobuf:"bytes,3,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Expire               string   `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

payAddr 可以支持 1. 地址 2. 私钥

func (*NoBalanceTx) Descriptor

func (*NoBalanceTx) Descriptor() ([]byte, []int)

func (*NoBalanceTx) GetExpire

func (m *NoBalanceTx) GetExpire() string

func (*NoBalanceTx) GetPayAddr

func (m *NoBalanceTx) GetPayAddr() string

func (*NoBalanceTx) GetPrivkey

func (m *NoBalanceTx) GetPrivkey() string

func (*NoBalanceTx) GetTxHex

func (m *NoBalanceTx) GetTxHex() string

func (*NoBalanceTx) ProtoMessage

func (*NoBalanceTx) ProtoMessage()

func (*NoBalanceTx) Reset

func (m *NoBalanceTx) Reset()

func (*NoBalanceTx) String

func (m *NoBalanceTx) String() string

func (*NoBalanceTx) XXX_DiscardUnknown

func (m *NoBalanceTx) XXX_DiscardUnknown()

func (*NoBalanceTx) XXX_Marshal

func (m *NoBalanceTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NoBalanceTx) XXX_Merge

func (m *NoBalanceTx) XXX_Merge(src proto.Message)

func (*NoBalanceTx) XXX_Size

func (m *NoBalanceTx) XXX_Size() int

func (*NoBalanceTx) XXX_Unmarshal

func (m *NoBalanceTx) XXX_Unmarshal(b []byte) error

type NoBalanceTxs

type NoBalanceTxs struct {
	TxHexs               []string `protobuf:"bytes,1,rep,name=txHexs,proto3" json:"txHexs,omitempty"`
	PayAddr              string   `protobuf:"bytes,2,opt,name=payAddr,proto3" json:"payAddr,omitempty"`
	Privkey              string   `protobuf:"bytes,3,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Expire               string   `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥

func (*NoBalanceTxs) Descriptor

func (*NoBalanceTxs) Descriptor() ([]byte, []int)

func (*NoBalanceTxs) GetExpire

func (m *NoBalanceTxs) GetExpire() string

func (*NoBalanceTxs) GetPayAddr

func (m *NoBalanceTxs) GetPayAddr() string

func (*NoBalanceTxs) GetPrivkey

func (m *NoBalanceTxs) GetPrivkey() string

func (*NoBalanceTxs) GetTxHexs

func (m *NoBalanceTxs) GetTxHexs() []string

func (*NoBalanceTxs) ProtoMessage

func (*NoBalanceTxs) ProtoMessage()

func (*NoBalanceTxs) Reset

func (m *NoBalanceTxs) Reset()

func (*NoBalanceTxs) String

func (m *NoBalanceTxs) String() string

func (*NoBalanceTxs) XXX_DiscardUnknown

func (m *NoBalanceTxs) XXX_DiscardUnknown()

func (*NoBalanceTxs) XXX_Marshal

func (m *NoBalanceTxs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NoBalanceTxs) XXX_Merge

func (m *NoBalanceTxs) XXX_Merge(src proto.Message)

func (*NoBalanceTxs) XXX_Size

func (m *NoBalanceTxs) XXX_Size() int

func (*NoBalanceTxs) XXX_Unmarshal

func (m *NoBalanceTxs) XXX_Unmarshal(b []byte) error

type NodeNetInfo

type NodeNetInfo struct {
	Externaladdr         string   `protobuf:"bytes,1,opt,name=externaladdr,proto3" json:"externaladdr,omitempty"`
	Localaddr            string   `protobuf:"bytes,2,opt,name=localaddr,proto3" json:"localaddr,omitempty"`
	Service              bool     `protobuf:"varint,3,opt,name=service,proto3" json:"service,omitempty"`
	Outbounds            int32    `protobuf:"varint,4,opt,name=outbounds,proto3" json:"outbounds,omitempty"`
	Inbounds             int32    `protobuf:"varint,5,opt,name=inbounds,proto3" json:"inbounds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 当前节点的网络信息

func (*NodeNetInfo) Descriptor

func (*NodeNetInfo) Descriptor() ([]byte, []int)

func (*NodeNetInfo) GetExternaladdr

func (m *NodeNetInfo) GetExternaladdr() string

func (*NodeNetInfo) GetInbounds

func (m *NodeNetInfo) GetInbounds() int32

func (*NodeNetInfo) GetLocaladdr

func (m *NodeNetInfo) GetLocaladdr() string

func (*NodeNetInfo) GetOutbounds

func (m *NodeNetInfo) GetOutbounds() int32

func (*NodeNetInfo) GetService

func (m *NodeNetInfo) GetService() bool

func (*NodeNetInfo) ProtoMessage

func (*NodeNetInfo) ProtoMessage()

func (*NodeNetInfo) Reset

func (m *NodeNetInfo) Reset()

func (*NodeNetInfo) String

func (m *NodeNetInfo) String() string

func (*NodeNetInfo) XXX_DiscardUnknown

func (m *NodeNetInfo) XXX_DiscardUnknown()

func (*NodeNetInfo) XXX_Marshal

func (m *NodeNetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeNetInfo) XXX_Merge

func (m *NodeNetInfo) XXX_Merge(src proto.Message)

func (*NodeNetInfo) XXX_Size

func (m *NodeNetInfo) XXX_Size() int

func (*NodeNetInfo) XXX_Unmarshal

func (m *NodeNetInfo) XXX_Unmarshal(b []byte) error

type Operation

type Operation struct {
	Value                *Block   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Operation) Descriptor

func (*Operation) Descriptor() ([]byte, []int)

func (*Operation) GetValue

func (m *Operation) GetValue() *Block

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) Reset

func (m *Operation) Reset()

func (*Operation) String

func (m *Operation) String() string

func (*Operation) XXX_DiscardUnknown

func (m *Operation) XXX_DiscardUnknown()

func (*Operation) XXX_Marshal

func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Operation) XXX_Merge

func (m *Operation) XXX_Merge(src proto.Message)

func (*Operation) XXX_Size

func (m *Operation) XXX_Size() int

func (*Operation) XXX_Unmarshal

func (m *Operation) XXX_Unmarshal(b []byte) error

type P2P

type P2P struct {
	// 使用的数据库类型
	Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"`
	// 数据库文件目录
	DbPath string `protobuf:"bytes,3,opt,name=dbPath" json:"dbPath,omitempty"`
	// 数据库缓存大小
	DbCache int32 `protobuf:"varint,4,opt,name=dbCache" json:"dbCache,omitempty"`
	// GRPC请求日志文件
	GrpcLogFile string `protobuf:"bytes,5,opt,name=grpcLogFile" json:"grpcLogFile,omitempty"`
	// 是否启动P2P服务
	Enable bool `protobuf:"varint,9,opt,name=enable" json:"enable,omitempty"`
	//是否等待Pid
	WaitPid bool `protobuf:"varint,17,opt,name=waitPid" json:"waitPid,omitempty"`
	//指定p2p类型, 支持gossip, dht
	Types []string `protobuf:"bytes,23,rep,name=types" json:"types,omitempty"`
}

P2P 配置

type P2PAddr

type P2PAddr struct {
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	///对方节点返回的其他节点信息
	Addrlist             []string `protobuf:"bytes,2,rep,name=addrlist,proto3" json:"addrlist,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 返回请求地址列表的社保

func (*P2PAddr) Descriptor

func (*P2PAddr) Descriptor() ([]byte, []int)

func (*P2PAddr) GetAddrlist

func (m *P2PAddr) GetAddrlist() []string

func (*P2PAddr) GetNonce

func (m *P2PAddr) GetNonce() int64

func (*P2PAddr) ProtoMessage

func (*P2PAddr) ProtoMessage()

func (*P2PAddr) Reset

func (m *P2PAddr) Reset()

func (*P2PAddr) String

func (m *P2PAddr) String() string

func (*P2PAddr) XXX_DiscardUnknown

func (m *P2PAddr) XXX_DiscardUnknown()

func (*P2PAddr) XXX_Marshal

func (m *P2PAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PAddr) XXX_Merge

func (m *P2PAddr) XXX_Merge(src proto.Message)

func (*P2PAddr) XXX_Size

func (m *P2PAddr) XXX_Size() int

func (*P2PAddr) XXX_Unmarshal

func (m *P2PAddr) XXX_Unmarshal(b []byte) error

type P2PAddrList

type P2PAddrList struct {
	Nonce                int64          `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Peerinfo             []*P2PPeerInfo `protobuf:"bytes,2,rep,name=peerinfo,proto3" json:"peerinfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*P2PAddrList) Descriptor

func (*P2PAddrList) Descriptor() ([]byte, []int)

func (*P2PAddrList) GetNonce

func (m *P2PAddrList) GetNonce() int64

func (*P2PAddrList) GetPeerinfo

func (m *P2PAddrList) GetPeerinfo() []*P2PPeerInfo

func (*P2PAddrList) ProtoMessage

func (*P2PAddrList) ProtoMessage()

func (*P2PAddrList) Reset

func (m *P2PAddrList) Reset()

func (*P2PAddrList) String

func (m *P2PAddrList) String() string

func (*P2PAddrList) XXX_DiscardUnknown

func (m *P2PAddrList) XXX_DiscardUnknown()

func (*P2PAddrList) XXX_Marshal

func (m *P2PAddrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PAddrList) XXX_Merge

func (m *P2PAddrList) XXX_Merge(src proto.Message)

func (*P2PAddrList) XXX_Size

func (m *P2PAddrList) XXX_Size() int

func (*P2PAddrList) XXX_Unmarshal

func (m *P2PAddrList) XXX_Unmarshal(b []byte) error

type P2PBlock

type P2PBlock struct {
	Block                *Block   `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* p2p 发送区块协议

func (*P2PBlock) Descriptor

func (*P2PBlock) Descriptor() ([]byte, []int)

func (*P2PBlock) GetBlock

func (m *P2PBlock) GetBlock() *Block

func (*P2PBlock) ProtoMessage

func (*P2PBlock) ProtoMessage()

func (*P2PBlock) Reset

func (m *P2PBlock) Reset()

func (*P2PBlock) String

func (m *P2PBlock) String() string

func (*P2PBlock) XXX_DiscardUnknown

func (m *P2PBlock) XXX_DiscardUnknown()

func (*P2PBlock) XXX_Marshal

func (m *P2PBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PBlock) XXX_Merge

func (m *P2PBlock) XXX_Merge(src proto.Message)

func (*P2PBlock) XXX_Size

func (m *P2PBlock) XXX_Size() int

func (*P2PBlock) XXX_Unmarshal

func (m *P2PBlock) XXX_Unmarshal(b []byte) error

type P2PBlockTxReply

type P2PBlockTxReply struct {
	BlockHash            string         `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	TxIndices            []int32        `protobuf:"varint,2,rep,packed,name=txIndices,proto3" json:"txIndices,omitempty"`
	Txs                  []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

区块交易数据返回

func (*P2PBlockTxReply) Descriptor

func (*P2PBlockTxReply) Descriptor() ([]byte, []int)

func (*P2PBlockTxReply) GetBlockHash

func (m *P2PBlockTxReply) GetBlockHash() string

func (*P2PBlockTxReply) GetTxIndices

func (m *P2PBlockTxReply) GetTxIndices() []int32

func (*P2PBlockTxReply) GetTxs

func (m *P2PBlockTxReply) GetTxs() []*Transaction

func (*P2PBlockTxReply) ProtoMessage

func (*P2PBlockTxReply) ProtoMessage()

func (*P2PBlockTxReply) Reset

func (m *P2PBlockTxReply) Reset()

func (*P2PBlockTxReply) String

func (m *P2PBlockTxReply) String() string

func (*P2PBlockTxReply) XXX_DiscardUnknown

func (m *P2PBlockTxReply) XXX_DiscardUnknown()

func (*P2PBlockTxReply) XXX_Marshal

func (m *P2PBlockTxReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PBlockTxReply) XXX_Merge

func (m *P2PBlockTxReply) XXX_Merge(src proto.Message)

func (*P2PBlockTxReply) XXX_Size

func (m *P2PBlockTxReply) XXX_Size() int

func (*P2PBlockTxReply) XXX_Unmarshal

func (m *P2PBlockTxReply) XXX_Unmarshal(b []byte) error

type P2PBlockTxReq

type P2PBlockTxReq struct {
	BlockHash            string   `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	TxIndices            []int32  `protobuf:"varint,2,rep,packed,name=txIndices,proto3" json:"txIndices,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

请求区块内交易数据

func (*P2PBlockTxReq) Descriptor

func (*P2PBlockTxReq) Descriptor() ([]byte, []int)

func (*P2PBlockTxReq) GetBlockHash

func (m *P2PBlockTxReq) GetBlockHash() string

func (*P2PBlockTxReq) GetTxIndices

func (m *P2PBlockTxReq) GetTxIndices() []int32

func (*P2PBlockTxReq) ProtoMessage

func (*P2PBlockTxReq) ProtoMessage()

func (*P2PBlockTxReq) Reset

func (m *P2PBlockTxReq) Reset()

func (*P2PBlockTxReq) String

func (m *P2PBlockTxReq) String() string

func (*P2PBlockTxReq) XXX_DiscardUnknown

func (m *P2PBlockTxReq) XXX_DiscardUnknown()

func (*P2PBlockTxReq) XXX_Marshal

func (m *P2PBlockTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PBlockTxReq) XXX_Merge

func (m *P2PBlockTxReq) XXX_Merge(src proto.Message)

func (*P2PBlockTxReq) XXX_Size

func (m *P2PBlockTxReq) XXX_Size() int

func (*P2PBlockTxReq) XXX_Unmarshal

func (m *P2PBlockTxReq) XXX_Unmarshal(b []byte) error

type P2PExternalInfo

type P2PExternalInfo struct {
	///节点的外网地址
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//节点是否在外网
	Isoutside            bool     `protobuf:"varint,2,opt,name=isoutside,proto3" json:"isoutside,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 节点外网信息

func (*P2PExternalInfo) Descriptor

func (*P2PExternalInfo) Descriptor() ([]byte, []int)

func (*P2PExternalInfo) GetAddr

func (m *P2PExternalInfo) GetAddr() string

func (*P2PExternalInfo) GetIsoutside

func (m *P2PExternalInfo) GetIsoutside() bool

func (*P2PExternalInfo) ProtoMessage

func (*P2PExternalInfo) ProtoMessage()

func (*P2PExternalInfo) Reset

func (m *P2PExternalInfo) Reset()

func (*P2PExternalInfo) String

func (m *P2PExternalInfo) String() string

func (*P2PExternalInfo) XXX_DiscardUnknown

func (m *P2PExternalInfo) XXX_DiscardUnknown()

func (*P2PExternalInfo) XXX_Marshal

func (m *P2PExternalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PExternalInfo) XXX_Merge

func (m *P2PExternalInfo) XXX_Merge(src proto.Message)

func (*P2PExternalInfo) XXX_Size

func (m *P2PExternalInfo) XXX_Size() int

func (*P2PExternalInfo) XXX_Unmarshal

func (m *P2PExternalInfo) XXX_Unmarshal(b []byte) error

type P2PGetAddr

type P2PGetAddr struct {
	Nonce                int64    `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 获取对方节点所连接的其他节点地址的请求包

func (*P2PGetAddr) Descriptor

func (*P2PGetAddr) Descriptor() ([]byte, []int)

func (*P2PGetAddr) GetNonce

func (m *P2PGetAddr) GetNonce() int64

func (*P2PGetAddr) ProtoMessage

func (*P2PGetAddr) ProtoMessage()

func (*P2PGetAddr) Reset

func (m *P2PGetAddr) Reset()

func (*P2PGetAddr) String

func (m *P2PGetAddr) String() string

func (*P2PGetAddr) XXX_DiscardUnknown

func (m *P2PGetAddr) XXX_DiscardUnknown()

func (*P2PGetAddr) XXX_Marshal

func (m *P2PGetAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetAddr) XXX_Merge

func (m *P2PGetAddr) XXX_Merge(src proto.Message)

func (*P2PGetAddr) XXX_Size

func (m *P2PGetAddr) XXX_Size() int

func (*P2PGetAddr) XXX_Unmarshal

func (m *P2PGetAddr) XXX_Unmarshal(b []byte) error

type P2PGetBlocks

type P2PGetBlocks struct {
	Version              int32    `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	StartHeight          int64    `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	EndHeight            int64    `protobuf:"varint,3,opt,name=endHeight,proto3" json:"endHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 获取区间区块

func (*P2PGetBlocks) Descriptor

func (*P2PGetBlocks) Descriptor() ([]byte, []int)

func (*P2PGetBlocks) GetEndHeight

func (m *P2PGetBlocks) GetEndHeight() int64

func (*P2PGetBlocks) GetStartHeight

func (m *P2PGetBlocks) GetStartHeight() int64

func (*P2PGetBlocks) GetVersion

func (m *P2PGetBlocks) GetVersion() int32

func (*P2PGetBlocks) ProtoMessage

func (*P2PGetBlocks) ProtoMessage()

func (*P2PGetBlocks) Reset

func (m *P2PGetBlocks) Reset()

func (*P2PGetBlocks) String

func (m *P2PGetBlocks) String() string

func (*P2PGetBlocks) XXX_DiscardUnknown

func (m *P2PGetBlocks) XXX_DiscardUnknown()

func (*P2PGetBlocks) XXX_Marshal

func (m *P2PGetBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetBlocks) XXX_Merge

func (m *P2PGetBlocks) XXX_Merge(src proto.Message)

func (*P2PGetBlocks) XXX_Size

func (m *P2PGetBlocks) XXX_Size() int

func (*P2PGetBlocks) XXX_Unmarshal

func (m *P2PGetBlocks) XXX_Unmarshal(b []byte) error

type P2PGetData

type P2PGetData struct {
	/// p2p版本
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	/// invs 数组
	Invs                 []*Inventory `protobuf:"bytes,2,rep,name=invs,proto3" json:"invs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

* 通过invs 下载数据

func (*P2PGetData) Descriptor

func (*P2PGetData) Descriptor() ([]byte, []int)

func (*P2PGetData) GetInvs

func (m *P2PGetData) GetInvs() []*Inventory

func (*P2PGetData) GetVersion

func (m *P2PGetData) GetVersion() int32

func (*P2PGetData) ProtoMessage

func (*P2PGetData) ProtoMessage()

func (*P2PGetData) Reset

func (m *P2PGetData) Reset()

func (*P2PGetData) String

func (m *P2PGetData) String() string

func (*P2PGetData) XXX_DiscardUnknown

func (m *P2PGetData) XXX_DiscardUnknown()

func (*P2PGetData) XXX_Marshal

func (m *P2PGetData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetData) XXX_Merge

func (m *P2PGetData) XXX_Merge(src proto.Message)

func (*P2PGetData) XXX_Size

func (m *P2PGetData) XXX_Size() int

func (*P2PGetData) XXX_Unmarshal

func (m *P2PGetData) XXX_Unmarshal(b []byte) error

type P2PGetHeaders

type P2PGetHeaders struct {
	Version              int32    `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	StartHeight          int64    `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	EndHeight            int64    `protobuf:"varint,3,opt,name=endHeight,proto3" json:"endHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* p2p 获取区块区间头部信息协议

func (*P2PGetHeaders) Descriptor

func (*P2PGetHeaders) Descriptor() ([]byte, []int)

func (*P2PGetHeaders) GetEndHeight

func (m *P2PGetHeaders) GetEndHeight() int64

func (*P2PGetHeaders) GetStartHeight

func (m *P2PGetHeaders) GetStartHeight() int64

func (*P2PGetHeaders) GetVersion

func (m *P2PGetHeaders) GetVersion() int32

func (*P2PGetHeaders) ProtoMessage

func (*P2PGetHeaders) ProtoMessage()

func (*P2PGetHeaders) Reset

func (m *P2PGetHeaders) Reset()

func (*P2PGetHeaders) String

func (m *P2PGetHeaders) String() string

func (*P2PGetHeaders) XXX_DiscardUnknown

func (m *P2PGetHeaders) XXX_DiscardUnknown()

func (*P2PGetHeaders) XXX_Marshal

func (m *P2PGetHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetHeaders) XXX_Merge

func (m *P2PGetHeaders) XXX_Merge(src proto.Message)

func (*P2PGetHeaders) XXX_Size

func (m *P2PGetHeaders) XXX_Size() int

func (*P2PGetHeaders) XXX_Unmarshal

func (m *P2PGetHeaders) XXX_Unmarshal(b []byte) error

type P2PGetMempool

type P2PGetMempool struct {
	Version              int32    `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 获取mempool

func (*P2PGetMempool) Descriptor

func (*P2PGetMempool) Descriptor() ([]byte, []int)

func (*P2PGetMempool) GetVersion

func (m *P2PGetMempool) GetVersion() int32

func (*P2PGetMempool) ProtoMessage

func (*P2PGetMempool) ProtoMessage()

func (*P2PGetMempool) Reset

func (m *P2PGetMempool) Reset()

func (*P2PGetMempool) String

func (m *P2PGetMempool) String() string

func (*P2PGetMempool) XXX_DiscardUnknown

func (m *P2PGetMempool) XXX_DiscardUnknown()

func (*P2PGetMempool) XXX_Marshal

func (m *P2PGetMempool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetMempool) XXX_Merge

func (m *P2PGetMempool) XXX_Merge(src proto.Message)

func (*P2PGetMempool) XXX_Size

func (m *P2PGetMempool) XXX_Size() int

func (*P2PGetMempool) XXX_Unmarshal

func (m *P2PGetMempool) XXX_Unmarshal(b []byte) error

type P2PGetNetInfoReq

type P2PGetNetInfoReq struct {
	P2PType              string   `protobuf:"bytes,1,opt,name=p2pType,proto3" json:"p2pType,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* p2p get net info req

func (*P2PGetNetInfoReq) Descriptor

func (*P2PGetNetInfoReq) Descriptor() ([]byte, []int)

func (*P2PGetNetInfoReq) GetP2PType

func (m *P2PGetNetInfoReq) GetP2PType() string

func (*P2PGetNetInfoReq) ProtoMessage

func (*P2PGetNetInfoReq) ProtoMessage()

func (*P2PGetNetInfoReq) Reset

func (m *P2PGetNetInfoReq) Reset()

func (*P2PGetNetInfoReq) String

func (m *P2PGetNetInfoReq) String() string

func (*P2PGetNetInfoReq) XXX_DiscardUnknown

func (m *P2PGetNetInfoReq) XXX_DiscardUnknown()

func (*P2PGetNetInfoReq) XXX_Marshal

func (m *P2PGetNetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetNetInfoReq) XXX_Merge

func (m *P2PGetNetInfoReq) XXX_Merge(src proto.Message)

func (*P2PGetNetInfoReq) XXX_Size

func (m *P2PGetNetInfoReq) XXX_Size() int

func (*P2PGetNetInfoReq) XXX_Unmarshal

func (m *P2PGetNetInfoReq) XXX_Unmarshal(b []byte) error

type P2PGetPeerInfo

type P2PGetPeerInfo struct {
	/// p2p版本
	Version              int32    `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 请求获取远程节点的节点信息

func (*P2PGetPeerInfo) Descriptor

func (*P2PGetPeerInfo) Descriptor() ([]byte, []int)

func (*P2PGetPeerInfo) GetVersion

func (m *P2PGetPeerInfo) GetVersion() int32

func (*P2PGetPeerInfo) ProtoMessage

func (*P2PGetPeerInfo) ProtoMessage()

func (*P2PGetPeerInfo) Reset

func (m *P2PGetPeerInfo) Reset()

func (*P2PGetPeerInfo) String

func (m *P2PGetPeerInfo) String() string

func (*P2PGetPeerInfo) XXX_DiscardUnknown

func (m *P2PGetPeerInfo) XXX_DiscardUnknown()

func (*P2PGetPeerInfo) XXX_Marshal

func (m *P2PGetPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetPeerInfo) XXX_Merge

func (m *P2PGetPeerInfo) XXX_Merge(src proto.Message)

func (*P2PGetPeerInfo) XXX_Size

func (m *P2PGetPeerInfo) XXX_Size() int

func (*P2PGetPeerInfo) XXX_Unmarshal

func (m *P2PGetPeerInfo) XXX_Unmarshal(b []byte) error

type P2PGetPeerReq

type P2PGetPeerReq struct {
	P2PType              string   `protobuf:"bytes,1,opt,name=p2pType,proto3" json:"p2pType,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* p2p get peer req

func (*P2PGetPeerReq) Descriptor

func (*P2PGetPeerReq) Descriptor() ([]byte, []int)

func (*P2PGetPeerReq) GetP2PType

func (m *P2PGetPeerReq) GetP2PType() string

func (*P2PGetPeerReq) ProtoMessage

func (*P2PGetPeerReq) ProtoMessage()

func (*P2PGetPeerReq) Reset

func (m *P2PGetPeerReq) Reset()

func (*P2PGetPeerReq) String

func (m *P2PGetPeerReq) String() string

func (*P2PGetPeerReq) XXX_DiscardUnknown

func (m *P2PGetPeerReq) XXX_DiscardUnknown()

func (*P2PGetPeerReq) XXX_Marshal

func (m *P2PGetPeerReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PGetPeerReq) XXX_Merge

func (m *P2PGetPeerReq) XXX_Merge(src proto.Message)

func (*P2PGetPeerReq) XXX_Size

func (m *P2PGetPeerReq) XXX_Size() int

func (*P2PGetPeerReq) XXX_Unmarshal

func (m *P2PGetPeerReq) XXX_Unmarshal(b []byte) error

type P2PHeaders

type P2PHeaders struct {
	Headers              []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

* p2p 区块头传输协议

func (*P2PHeaders) Descriptor

func (*P2PHeaders) Descriptor() ([]byte, []int)

func (*P2PHeaders) GetHeaders

func (m *P2PHeaders) GetHeaders() []*Header

func (*P2PHeaders) ProtoMessage

func (*P2PHeaders) ProtoMessage()

func (*P2PHeaders) Reset

func (m *P2PHeaders) Reset()

func (*P2PHeaders) String

func (m *P2PHeaders) String() string

func (*P2PHeaders) XXX_DiscardUnknown

func (m *P2PHeaders) XXX_DiscardUnknown()

func (*P2PHeaders) XXX_Marshal

func (m *P2PHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PHeaders) XXX_Merge

func (m *P2PHeaders) XXX_Merge(src proto.Message)

func (*P2PHeaders) XXX_Size

func (m *P2PHeaders) XXX_Size() int

func (*P2PHeaders) XXX_Unmarshal

func (m *P2PHeaders) XXX_Unmarshal(b []byte) error

type P2PInv

type P2PInv struct {
	Invs                 []*Inventory `protobuf:"bytes,1,rep,name=invs,proto3" json:"invs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*P2PInv) Descriptor

func (*P2PInv) Descriptor() ([]byte, []int)

func (*P2PInv) GetInvs

func (m *P2PInv) GetInvs() []*Inventory

func (*P2PInv) ProtoMessage

func (*P2PInv) ProtoMessage()

func (*P2PInv) Reset

func (m *P2PInv) Reset()

func (*P2PInv) String

func (m *P2PInv) String() string

func (*P2PInv) XXX_DiscardUnknown

func (m *P2PInv) XXX_DiscardUnknown()

func (*P2PInv) XXX_Marshal

func (m *P2PInv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PInv) XXX_Merge

func (m *P2PInv) XXX_Merge(src proto.Message)

func (*P2PInv) XXX_Size

func (m *P2PInv) XXX_Size() int

func (*P2PInv) XXX_Unmarshal

func (m *P2PInv) XXX_Unmarshal(b []byte) error

type P2PPeerInfo

type P2PPeerInfo struct {
	///节点的IP地址
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	///节点的外网端口
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	///节点的名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	/// mempool 的大小
	MempoolSize int32 `protobuf:"varint,4,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
	///节点当前高度头部数据
	Header               *Header  `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 节点信息

func (*P2PPeerInfo) Descriptor

func (*P2PPeerInfo) Descriptor() ([]byte, []int)

func (*P2PPeerInfo) GetAddr

func (m *P2PPeerInfo) GetAddr() string

func (*P2PPeerInfo) GetHeader

func (m *P2PPeerInfo) GetHeader() *Header

func (*P2PPeerInfo) GetMempoolSize

func (m *P2PPeerInfo) GetMempoolSize() int32

func (*P2PPeerInfo) GetName

func (m *P2PPeerInfo) GetName() string

func (*P2PPeerInfo) GetPort

func (m *P2PPeerInfo) GetPort() int32

func (*P2PPeerInfo) ProtoMessage

func (*P2PPeerInfo) ProtoMessage()

func (*P2PPeerInfo) Reset

func (m *P2PPeerInfo) Reset()

func (*P2PPeerInfo) String

func (m *P2PPeerInfo) String() string

func (*P2PPeerInfo) XXX_DiscardUnknown

func (m *P2PPeerInfo) XXX_DiscardUnknown()

func (*P2PPeerInfo) XXX_Marshal

func (m *P2PPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PPeerInfo) XXX_Merge

func (m *P2PPeerInfo) XXX_Merge(src proto.Message)

func (*P2PPeerInfo) XXX_Size

func (m *P2PPeerInfo) XXX_Size() int

func (*P2PPeerInfo) XXX_Unmarshal

func (m *P2PPeerInfo) XXX_Unmarshal(b []byte) error

type P2PPing

type P2PPing struct {
	///随机数
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	///节点的外网地址
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	///节点的外网端口
	Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	//签名
	Sign                 *Signature `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

* P2P 心跳包

func (*P2PPing) Descriptor

func (*P2PPing) Descriptor() ([]byte, []int)

func (*P2PPing) GetAddr

func (m *P2PPing) GetAddr() string

func (*P2PPing) GetNonce

func (m *P2PPing) GetNonce() int64

func (*P2PPing) GetPort

func (m *P2PPing) GetPort() int32

func (*P2PPing) GetSign

func (m *P2PPing) GetSign() *Signature

func (*P2PPing) ProtoMessage

func (*P2PPing) ProtoMessage()

func (*P2PPing) Reset

func (m *P2PPing) Reset()

func (*P2PPing) String

func (m *P2PPing) String() string

func (*P2PPing) XXX_DiscardUnknown

func (m *P2PPing) XXX_DiscardUnknown()

func (*P2PPing) XXX_Marshal

func (m *P2PPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PPing) XXX_Merge

func (m *P2PPing) XXX_Merge(src proto.Message)

func (*P2PPing) XXX_Size

func (m *P2PPing) XXX_Size() int

func (*P2PPing) XXX_Unmarshal

func (m *P2PPing) XXX_Unmarshal(b []byte) error

type P2PPong

type P2PPong struct {
	Nonce                int64    `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 心跳返回包

func (*P2PPong) Descriptor

func (*P2PPong) Descriptor() ([]byte, []int)

func (*P2PPong) GetNonce

func (m *P2PPong) GetNonce() int64

func (*P2PPong) ProtoMessage

func (*P2PPong) ProtoMessage()

func (*P2PPong) Reset

func (m *P2PPong) Reset()

func (*P2PPong) String

func (m *P2PPong) String() string

func (*P2PPong) XXX_DiscardUnknown

func (m *P2PPong) XXX_DiscardUnknown()

func (*P2PPong) XXX_Marshal

func (m *P2PPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PPong) XXX_Merge

func (m *P2PPong) XXX_Merge(src proto.Message)

func (*P2PPong) XXX_Size

func (m *P2PPong) XXX_Size() int

func (*P2PPong) XXX_Unmarshal

func (m *P2PPong) XXX_Unmarshal(b []byte) error

type P2PQueryData

type P2PQueryData struct {
	// Types that are valid to be assigned to Value:
	//	*P2PQueryData_TxReq
	//	*P2PQueryData_BlockTxReq
	Value                isP2PQueryData_Value `protobuf_oneof:"value"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

节点收到区块或交易hash, 当在本地不存在时,需要请求重发完整交易或区块 采用统一结构减少消息类型

func (*P2PQueryData) Descriptor

func (*P2PQueryData) Descriptor() ([]byte, []int)

func (*P2PQueryData) GetBlockTxReq

func (m *P2PQueryData) GetBlockTxReq() *P2PBlockTxReq

func (*P2PQueryData) GetTxReq

func (m *P2PQueryData) GetTxReq() *P2PTxReq

func (*P2PQueryData) GetValue

func (m *P2PQueryData) GetValue() isP2PQueryData_Value

func (*P2PQueryData) ProtoMessage

func (*P2PQueryData) ProtoMessage()

func (*P2PQueryData) Reset

func (m *P2PQueryData) Reset()

func (*P2PQueryData) String

func (m *P2PQueryData) String() string

func (*P2PQueryData) XXX_DiscardUnknown

func (m *P2PQueryData) XXX_DiscardUnknown()

func (*P2PQueryData) XXX_Marshal

func (m *P2PQueryData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PQueryData) XXX_Merge

func (m *P2PQueryData) XXX_Merge(src proto.Message)

func (*P2PQueryData) XXX_OneofWrappers

func (*P2PQueryData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*P2PQueryData) XXX_Size

func (m *P2PQueryData) XXX_Size() int

func (*P2PQueryData) XXX_Unmarshal

func (m *P2PQueryData) XXX_Unmarshal(b []byte) error

type P2PQueryData_BlockTxReq

type P2PQueryData_BlockTxReq struct {
	BlockTxReq *P2PBlockTxReq `protobuf:"bytes,2,opt,name=blockTxReq,proto3,oneof"`
}

type P2PQueryData_TxReq

type P2PQueryData_TxReq struct {
	TxReq *P2PTxReq `protobuf:"bytes,1,opt,name=txReq,proto3,oneof"`
}

type P2PRoute

type P2PRoute struct {
	TTL                  int32    `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*P2PRoute) Descriptor

func (*P2PRoute) Descriptor() ([]byte, []int)

func (*P2PRoute) GetTTL

func (m *P2PRoute) GetTTL() int32

func (*P2PRoute) ProtoMessage

func (*P2PRoute) ProtoMessage()

func (*P2PRoute) Reset

func (m *P2PRoute) Reset()

func (*P2PRoute) String

func (m *P2PRoute) String() string

func (*P2PRoute) XXX_DiscardUnknown

func (m *P2PRoute) XXX_DiscardUnknown()

func (*P2PRoute) XXX_Marshal

func (m *P2PRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PRoute) XXX_Merge

func (m *P2PRoute) XXX_Merge(src proto.Message)

func (*P2PRoute) XXX_Size

func (m *P2PRoute) XXX_Size() int

func (*P2PRoute) XXX_Unmarshal

func (m *P2PRoute) XXX_Unmarshal(b []byte) error

type P2PTx

type P2PTx struct {
	Tx                   *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Route                *P2PRoute    `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

* p2p 发送交易协议

func (*P2PTx) Descriptor

func (*P2PTx) Descriptor() ([]byte, []int)

func (*P2PTx) GetRoute

func (m *P2PTx) GetRoute() *P2PRoute

func (*P2PTx) GetTx

func (m *P2PTx) GetTx() *Transaction

func (*P2PTx) ProtoMessage

func (*P2PTx) ProtoMessage()

func (*P2PTx) Reset

func (m *P2PTx) Reset()

func (*P2PTx) String

func (m *P2PTx) String() string

func (*P2PTx) XXX_DiscardUnknown

func (m *P2PTx) XXX_DiscardUnknown()

func (*P2PTx) XXX_Marshal

func (m *P2PTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PTx) XXX_Merge

func (m *P2PTx) XXX_Merge(src proto.Message)

func (*P2PTx) XXX_Size

func (m *P2PTx) XXX_Size() int

func (*P2PTx) XXX_Unmarshal

func (m *P2PTx) XXX_Unmarshal(b []byte) error

type P2PTxReq

type P2PTxReq struct {
	TxHash               []byte   `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

请求完整交易数据

func (*P2PTxReq) Descriptor

func (*P2PTxReq) Descriptor() ([]byte, []int)

func (*P2PTxReq) GetTxHash

func (m *P2PTxReq) GetTxHash() []byte

func (*P2PTxReq) ProtoMessage

func (*P2PTxReq) ProtoMessage()

func (*P2PTxReq) Reset

func (m *P2PTxReq) Reset()

func (*P2PTxReq) String

func (m *P2PTxReq) String() string

func (*P2PTxReq) XXX_DiscardUnknown

func (m *P2PTxReq) XXX_DiscardUnknown()

func (*P2PTxReq) XXX_Marshal

func (m *P2PTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PTxReq) XXX_Merge

func (m *P2PTxReq) XXX_Merge(src proto.Message)

func (*P2PTxReq) XXX_Size

func (m *P2PTxReq) XXX_Size() int

func (*P2PTxReq) XXX_Unmarshal

func (m *P2PTxReq) XXX_Unmarshal(b []byte) error

type P2PVerAck

type P2PVerAck struct {
	Version              int32    `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Service              int64    `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
	Nonce                int64    `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* P2P 版本返回

func (*P2PVerAck) Descriptor

func (*P2PVerAck) Descriptor() ([]byte, []int)

func (*P2PVerAck) GetNonce

func (m *P2PVerAck) GetNonce() int64

func (*P2PVerAck) GetService

func (m *P2PVerAck) GetService() int64

func (*P2PVerAck) GetVersion

func (m *P2PVerAck) GetVersion() int32

func (*P2PVerAck) ProtoMessage

func (*P2PVerAck) ProtoMessage()

func (*P2PVerAck) Reset

func (m *P2PVerAck) Reset()

func (*P2PVerAck) String

func (m *P2PVerAck) String() string

func (*P2PVerAck) XXX_DiscardUnknown

func (m *P2PVerAck) XXX_DiscardUnknown()

func (*P2PVerAck) XXX_Marshal

func (m *P2PVerAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PVerAck) XXX_Merge

func (m *P2PVerAck) XXX_Merge(src proto.Message)

func (*P2PVerAck) XXX_Size

func (m *P2PVerAck) XXX_Size() int

func (*P2PVerAck) XXX_Unmarshal

func (m *P2PVerAck) XXX_Unmarshal(b []byte) error

type P2PVersion

type P2PVersion struct {
	///当前版本
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	///服务类型
	Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
	///时间戳
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	///数据包的目的地址
	AddrRecv string `protobuf:"bytes,4,opt,name=addrRecv,proto3" json:"addrRecv,omitempty"`
	///数据发送的源地址
	AddrFrom string `protobuf:"bytes,5,opt,name=addrFrom,proto3" json:"addrFrom,omitempty"`
	///随机数
	Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	///用户代理
	UserAgent string `protobuf:"bytes,7,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
	///当前节点的高度
	StartHeight          int64    `protobuf:"varint,8,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* p2p节点间发送版本数据结构

func (*P2PVersion) Descriptor

func (*P2PVersion) Descriptor() ([]byte, []int)

func (*P2PVersion) GetAddrFrom

func (m *P2PVersion) GetAddrFrom() string

func (*P2PVersion) GetAddrRecv

func (m *P2PVersion) GetAddrRecv() string

func (*P2PVersion) GetNonce

func (m *P2PVersion) GetNonce() int64

func (*P2PVersion) GetService

func (m *P2PVersion) GetService() int64

func (*P2PVersion) GetStartHeight

func (m *P2PVersion) GetStartHeight() int64

func (*P2PVersion) GetTimestamp

func (m *P2PVersion) GetTimestamp() int64

func (*P2PVersion) GetUserAgent

func (m *P2PVersion) GetUserAgent() string

func (*P2PVersion) GetVersion

func (m *P2PVersion) GetVersion() int32

func (*P2PVersion) ProtoMessage

func (*P2PVersion) ProtoMessage()

func (*P2PVersion) Reset

func (m *P2PVersion) Reset()

func (*P2PVersion) String

func (m *P2PVersion) String() string

func (*P2PVersion) XXX_DiscardUnknown

func (m *P2PVersion) XXX_DiscardUnknown()

func (*P2PVersion) XXX_Marshal

func (m *P2PVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PVersion) XXX_Merge

func (m *P2PVersion) XXX_Merge(src proto.Message)

func (*P2PVersion) XXX_Size

func (m *P2PVersion) XXX_Size() int

func (*P2PVersion) XXX_Unmarshal

func (m *P2PVersion) XXX_Unmarshal(b []byte) error

type P2PgserviceClient

type P2PgserviceClient interface {
	//广播交易
	BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error)
	//广播区块
	BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error)
	// PING
	Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error)
	//获取地址
	GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error)
	GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error)
	//版本
	Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error)
	//获取p2p协议的版本号
	Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error)
	//获取软件的版本号
	SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error)
	//获取区块,最高200
	GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error)
	//获取mempool
	GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error)
	//获取数据
	GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error)
	//获取头部
	GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error)
	//获取 peerinfo
	GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error)
	// grpc server 读客户端发送来的数据
	ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error)
	// grpc server 发送数据给客户端
	ServerStreamSend(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (P2Pgservice_ServerStreamSendClient, error)
	// grpc 收集inpeers
	CollectInPeers(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeerList, error)
	CollectInPeers2(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeersReply, error)
}

P2PgserviceClient is the client API for P2Pgservice service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type P2PgserviceServer

type P2PgserviceServer interface {
	//广播交易
	BroadCastTx(context.Context, *P2PTx) (*Reply, error)
	//广播区块
	BroadCastBlock(context.Context, *P2PBlock) (*Reply, error)
	// PING
	Ping(context.Context, *P2PPing) (*P2PPong, error)
	//获取地址
	GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error)
	GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error)
	//版本
	Version(context.Context, *P2PVersion) (*P2PVerAck, error)
	//获取p2p协议的版本号
	Version2(context.Context, *P2PVersion) (*P2PVersion, error)
	//获取软件的版本号
	SoftVersion(context.Context, *P2PPing) (*Reply, error)
	//获取区块,最高200
	GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error)
	//获取mempool
	GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error)
	//获取数据
	GetData(*P2PGetData, P2Pgservice_GetDataServer) error
	//获取头部
	GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error)
	//获取 peerinfo
	GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error)
	// grpc server 读客户端发送来的数据
	ServerStreamRead(P2Pgservice_ServerStreamReadServer) error
	// grpc server 发送数据给客户端
	ServerStreamSend(*P2PPing, P2Pgservice_ServerStreamSendServer) error
	// grpc 收集inpeers
	CollectInPeers(context.Context, *P2PPing) (*PeerList, error)
	CollectInPeers2(context.Context, *P2PPing) (*PeersReply, error)
}

P2PgserviceServer is the server API for P2Pgservice service.

type P2Pgservice_GetDataClient

type P2Pgservice_GetDataClient interface {
	Recv() (*InvDatas, error)
	grpc.ClientStream
}

type P2Pgservice_GetDataServer

type P2Pgservice_GetDataServer interface {
	Send(*InvDatas) error
	grpc.ServerStream
}

type P2Pgservice_ServerStreamReadClient

type P2Pgservice_ServerStreamReadClient interface {
	Send(*BroadCastData) error
	CloseAndRecv() (*ReqNil, error)
	grpc.ClientStream
}

type P2Pgservice_ServerStreamReadServer

type P2Pgservice_ServerStreamReadServer interface {
	SendAndClose(*ReqNil) error
	Recv() (*BroadCastData, error)
	grpc.ServerStream
}

type P2Pgservice_ServerStreamSendClient

type P2Pgservice_ServerStreamSendClient interface {
	Recv() (*BroadCastData, error)
	grpc.ClientStream
}

type P2Pgservice_ServerStreamSendServer

type P2Pgservice_ServerStreamSendServer interface {
	Send(*BroadCastData) error
	grpc.ServerStream
}

type ParaChainBlockDetail

type ParaChainBlockDetail struct {
	Blockdetail          *BlockDetail `protobuf:"bytes,1,opt,name=blockdetail,proto3" json:"blockdetail,omitempty"`
	Sequence             int64        `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	IsSync               bool         `protobuf:"varint,3,opt,name=isSync,proto3" json:"isSync,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

平行链区块详细信息

	 blockdetail : 区块详细信息
	 sequence :区块序列号
  isSync:写数据库时是否需要刷盘

func (*ParaChainBlockDetail) Descriptor

func (*ParaChainBlockDetail) Descriptor() ([]byte, []int)

func (*ParaChainBlockDetail) GetBlockdetail

func (m *ParaChainBlockDetail) GetBlockdetail() *BlockDetail

func (*ParaChainBlockDetail) GetIsSync

func (m *ParaChainBlockDetail) GetIsSync() bool

func (*ParaChainBlockDetail) GetSequence

func (m *ParaChainBlockDetail) GetSequence() int64

func (*ParaChainBlockDetail) ProtoMessage

func (*ParaChainBlockDetail) ProtoMessage()

func (*ParaChainBlockDetail) Reset

func (m *ParaChainBlockDetail) Reset()

func (*ParaChainBlockDetail) String

func (m *ParaChainBlockDetail) String() string

func (*ParaChainBlockDetail) XXX_DiscardUnknown

func (m *ParaChainBlockDetail) XXX_DiscardUnknown()

func (*ParaChainBlockDetail) XXX_Marshal

func (m *ParaChainBlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParaChainBlockDetail) XXX_Merge

func (m *ParaChainBlockDetail) XXX_Merge(src proto.Message)

func (*ParaChainBlockDetail) XXX_Size

func (m *ParaChainBlockDetail) XXX_Size() int

func (*ParaChainBlockDetail) XXX_Unmarshal

func (m *ParaChainBlockDetail) XXX_Unmarshal(b []byte) error

type ParaCrossTx

type ParaCrossTx interface {
	IsParaCrossTx() bool
}

ParaCrossTx 平行跨链交易

type ParaTxDetail

type ParaTxDetail struct {
	Type                 int64       `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	Header               *Header     `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	TxDetails            []*TxDetail `protobuf:"bytes,3,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
	ChildHash            []byte      `protobuf:"bytes,4,opt,name=childHash,proto3" json:"childHash,omitempty"`
	Index                uint32      `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	Proofs               [][]byte    `protobuf:"bytes,6,rep,name=proofs,proto3" json:"proofs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

type:平行链交易所在区块add/del操作,方便平行链回滚 header:平行链交易所在区块头信息 txDetails:本区块中指定title平行链的所有交易 proofs:对应平行链子roothash的存在证明路径 childHash:此平行链交易的子roothash index:对应平行链子roothash在整个区块中的索引

func (*ParaTxDetail) Descriptor

func (*ParaTxDetail) Descriptor() ([]byte, []int)

func (*ParaTxDetail) GetChildHash

func (m *ParaTxDetail) GetChildHash() []byte

func (*ParaTxDetail) GetHeader

func (m *ParaTxDetail) GetHeader() *Header

func (*ParaTxDetail) GetIndex

func (m *ParaTxDetail) GetIndex() uint32

func (*ParaTxDetail) GetProofs

func (m *ParaTxDetail) GetProofs() [][]byte

func (*ParaTxDetail) GetTxDetails

func (m *ParaTxDetail) GetTxDetails() []*TxDetail

func (*ParaTxDetail) GetType

func (m *ParaTxDetail) GetType() int64

func (*ParaTxDetail) ProtoMessage

func (*ParaTxDetail) ProtoMessage()

func (*ParaTxDetail) Reset

func (m *ParaTxDetail) Reset()

func (*ParaTxDetail) Size

func (paraTxDetail *ParaTxDetail) Size() int

func (*ParaTxDetail) String

func (m *ParaTxDetail) String() string

func (*ParaTxDetail) XXX_DiscardUnknown

func (m *ParaTxDetail) XXX_DiscardUnknown()

func (*ParaTxDetail) XXX_Marshal

func (m *ParaTxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParaTxDetail) XXX_Merge

func (m *ParaTxDetail) XXX_Merge(src proto.Message)

func (*ParaTxDetail) XXX_Size

func (m *ParaTxDetail) XXX_Size() int

func (*ParaTxDetail) XXX_Unmarshal

func (m *ParaTxDetail) XXX_Unmarshal(b []byte) error

type ParaTxDetails

type ParaTxDetails struct {
	Items                []*ParaTxDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

定义para交易结构

func (*ParaTxDetails) Descriptor

func (*ParaTxDetails) Descriptor() ([]byte, []int)

func (*ParaTxDetails) GetItems

func (m *ParaTxDetails) GetItems() []*ParaTxDetail

func (*ParaTxDetails) ProtoMessage

func (*ParaTxDetails) ProtoMessage()

func (*ParaTxDetails) Reset

func (m *ParaTxDetails) Reset()

func (*ParaTxDetails) String

func (m *ParaTxDetails) String() string

func (*ParaTxDetails) XXX_DiscardUnknown

func (m *ParaTxDetails) XXX_DiscardUnknown()

func (*ParaTxDetails) XXX_Marshal

func (m *ParaTxDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParaTxDetails) XXX_Merge

func (m *ParaTxDetails) XXX_Merge(src proto.Message)

func (*ParaTxDetails) XXX_Size

func (m *ParaTxDetails) XXX_Size() int

func (*ParaTxDetails) XXX_Unmarshal

func (m *ParaTxDetails) XXX_Unmarshal(b []byte) error

type Peer

type Peer struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Port                 int32    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Self                 bool     `protobuf:"varint,4,opt,name=self,proto3" json:"self,omitempty"`
	MempoolSize          int32    `protobuf:"varint,5,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
	Header               *Header  `protobuf:"bytes,6,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* peer 信息

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) GetAddr

func (m *Peer) GetAddr() string

func (*Peer) GetHeader

func (m *Peer) GetHeader() *Header

func (*Peer) GetMempoolSize

func (m *Peer) GetMempoolSize() int32

func (*Peer) GetName

func (m *Peer) GetName() string

func (*Peer) GetPort

func (m *Peer) GetPort() int32

func (*Peer) GetSelf

func (m *Peer) GetSelf() bool

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peer) XXX_Merge

func (m *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

func (m *Peer) XXX_Unmarshal(b []byte) error

type PeerList

type PeerList struct {
	Peers                []*Peer  `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* peer 列表

func (*PeerList) Descriptor

func (*PeerList) Descriptor() ([]byte, []int)

func (*PeerList) GetPeers

func (m *PeerList) GetPeers() []*Peer

func (*PeerList) ProtoMessage

func (*PeerList) ProtoMessage()

func (*PeerList) Reset

func (m *PeerList) Reset()

func (*PeerList) String

func (m *PeerList) String() string

func (*PeerList) XXX_DiscardUnknown

func (m *PeerList) XXX_DiscardUnknown()

func (*PeerList) XXX_Marshal

func (m *PeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerList) XXX_Merge

func (m *PeerList) XXX_Merge(src proto.Message)

func (*PeerList) XXX_Size

func (m *PeerList) XXX_Size() int

func (*PeerList) XXX_Unmarshal

func (m *PeerList) XXX_Unmarshal(b []byte) error

type PeersInfo

type PeersInfo struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ip                   string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Port                 int32    `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	Softversion          string   `protobuf:"bytes,4,opt,name=softversion,proto3" json:"softversion,omitempty"`
	P2Pversion           int32    `protobuf:"varint,5,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PeersInfo) Descriptor

func (*PeersInfo) Descriptor() ([]byte, []int)

func (*PeersInfo) GetIp

func (m *PeersInfo) GetIp() string

func (*PeersInfo) GetName

func (m *PeersInfo) GetName() string

func (*PeersInfo) GetP2Pversion

func (m *PeersInfo) GetP2Pversion() int32

func (*PeersInfo) GetPort

func (m *PeersInfo) GetPort() int32

func (*PeersInfo) GetSoftversion

func (m *PeersInfo) GetSoftversion() string

func (*PeersInfo) ProtoMessage

func (*PeersInfo) ProtoMessage()

func (*PeersInfo) Reset

func (m *PeersInfo) Reset()

func (*PeersInfo) String

func (m *PeersInfo) String() string

func (*PeersInfo) XXX_DiscardUnknown

func (m *PeersInfo) XXX_DiscardUnknown()

func (*PeersInfo) XXX_Marshal

func (m *PeersInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeersInfo) XXX_Merge

func (m *PeersInfo) XXX_Merge(src proto.Message)

func (*PeersInfo) XXX_Size

func (m *PeersInfo) XXX_Size() int

func (*PeersInfo) XXX_Unmarshal

func (m *PeersInfo) XXX_Unmarshal(b []byte) error

type PeersReply

type PeersReply struct {
	Peers                []*PeersInfo `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*PeersReply) Descriptor

func (*PeersReply) Descriptor() ([]byte, []int)

func (*PeersReply) GetPeers

func (m *PeersReply) GetPeers() []*PeersInfo

func (*PeersReply) ProtoMessage

func (*PeersReply) ProtoMessage()

func (*PeersReply) Reset

func (m *PeersReply) Reset()

func (*PeersReply) String

func (m *PeersReply) String() string

func (*PeersReply) XXX_DiscardUnknown

func (m *PeersReply) XXX_DiscardUnknown()

func (*PeersReply) XXX_Marshal

func (m *PeersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeersReply) XXX_Merge

func (m *PeersReply) XXX_Merge(src proto.Message)

func (*PeersReply) XXX_Size

func (m *PeersReply) XXX_Size() int

func (*PeersReply) XXX_Unmarshal

func (m *PeersReply) XXX_Unmarshal(b []byte) error

type Pprof

type Pprof struct {
	ListenAddr string `protobuf:"bytes,1,opt,name=listenAddr" json:"listenAddr,omitempty"`
}

Pprof 配置

type PruneData

type PruneData struct {
	// 该叶子节点的所有父hash
	Hashs                [][]byte `protobuf:"bytes,1,rep,name=hashs,proto3" json:"hashs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PruneData) Descriptor

func (*PruneData) Descriptor() ([]byte, []int)

func (*PruneData) GetHashs

func (m *PruneData) GetHashs() [][]byte

func (*PruneData) ProtoMessage

func (*PruneData) ProtoMessage()

func (*PruneData) Reset

func (m *PruneData) Reset()

func (*PruneData) String

func (m *PruneData) String() string

func (*PruneData) XXX_DiscardUnknown

func (m *PruneData) XXX_DiscardUnknown()

func (*PruneData) XXX_Marshal

func (m *PruneData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PruneData) XXX_Merge

func (m *PruneData) XXX_Merge(src proto.Message)

func (*PruneData) XXX_Size

func (m *PruneData) XXX_Size() int

func (*PruneData) XXX_Unmarshal

func (m *PruneData) XXX_Unmarshal(b []byte) error

type Query

type Query struct {
	Execer               []byte   `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	FuncName             string   `protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Query) Descriptor

func (*Query) Descriptor() ([]byte, []int)

func (*Query) GetExecer

func (m *Query) GetExecer() []byte

func (*Query) GetFuncName

func (m *Query) GetFuncName() string

func (*Query) GetPayload

func (m *Query) GetPayload() []byte

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Query) XXX_Merge

func (m *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

func (m *Query) XXX_Unmarshal(b []byte) error

type QueryData

type QueryData struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

QueryData 查询结构体

func NewQueryData

func NewQueryData(prefix string) *QueryData

NewQueryData new一个新的QueryData

func (*QueryData) Call

func (q *QueryData) Call(driver, name string, in Message) (reply Message, err error)

Call 查询函数回调

func (*QueryData) Decode

func (q *QueryData) Decode(driver, name string, in []byte) (reply Message, err error)

Decode 编码

func (*QueryData) DecodeJSON

func (q *QueryData) DecodeJSON(driver, name string, in json.Marshaler) (reply Message, err error)

DecodeJSON 编码成json格式

func (*QueryData) GetFunc

func (q *QueryData) GetFunc(driver, name string) (reflect.Method, error)

GetFunc 获取函数

func (*QueryData) GetType

func (q *QueryData) GetType(driver, name string) (reflect.Type, error)

GetType 获取类型

func (*QueryData) Register

func (q *QueryData) Register(key string, obj interface{})

Register 注册

func (*QueryData) SetThis

func (q *QueryData) SetThis(key string, this reflect.Value)

SetThis 设置

type RPC

type RPC struct {
	// jrpc绑定地址
	JrpcBindAddr string `protobuf:"bytes,1,opt,name=jrpcBindAddr" json:"jrpcBindAddr,omitempty"`
	// grpc绑定地址
	GrpcBindAddr string `protobuf:"bytes,2,opt,name=grpcBindAddr" json:"grpcBindAddr,omitempty"`
	// 白名单列表,允许访问的IP地址,默认是“*”,允许所有IP访问
	Whitlist  []string `protobuf:"bytes,3,rep,name=whitlist" json:"whitlist,omitempty"`
	Whitelist []string `protobuf:"bytes,4,rep,name=whitelist" json:"whitelist,omitempty"`
	// jrpc方法请求白名单,默认是“*”,允许访问所有RPC方法
	JrpcFuncWhitelist []string `protobuf:"bytes,5,rep,name=jrpcFuncWhitelist" json:"jrpcFuncWhitelist,omitempty"`
	// grpc方法请求白名单,默认是“*”,允许访问所有RPC方法
	GrpcFuncWhitelist []string `protobuf:"bytes,6,rep,name=grpcFuncWhitelist" json:"grpcFuncWhitelist,omitempty"`
	// jrpc方法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
	JrpcFuncBlacklist []string `protobuf:"bytes,7,rep,name=jrpcFuncBlacklist" json:"jrpcFuncBlacklist,omitempty"`
	// grpc方法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
	GrpcFuncBlacklist []string `protobuf:"bytes,8,rep,name=grpcFuncBlacklist" json:"grpcFuncBlacklist,omitempty"`
	// 是否开启https
	EnableTLS   bool `protobuf:"varint,10,opt,name=enableTLS" json:"enableTLS,omitempty"`
	EnableTrace bool `protobuf:"varint,10,opt,name=enableTrace" json:"enableTrace,omitempty"`
	// 证书文件,证书和私钥文件可以用cli工具生成
	CertFile string `protobuf:"varint,11,opt,name=certFile" json:"certFile,omitempty"`
	// 私钥文件
	KeyFile string `protobuf:"varint,12,opt,name=keyFile" json:"keyFile,omitempty"`
}

RPC 配置

type ReWriteRawTx

type ReWriteRawTx struct {
	Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// bytes  execer = 2;
	To                   string   `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Expire               string   `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	Fee                  int64    `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
	Index                int32    `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReWriteRawTx) Descriptor

func (*ReWriteRawTx) Descriptor() ([]byte, []int)

func (*ReWriteRawTx) GetExpire

func (m *ReWriteRawTx) GetExpire() string

func (*ReWriteRawTx) GetFee

func (m *ReWriteRawTx) GetFee() int64

func (*ReWriteRawTx) GetIndex

func (m *ReWriteRawTx) GetIndex() int32

func (*ReWriteRawTx) GetTo

func (m *ReWriteRawTx) GetTo() string

func (*ReWriteRawTx) GetTx

func (m *ReWriteRawTx) GetTx() string

func (*ReWriteRawTx) ProtoMessage

func (*ReWriteRawTx) ProtoMessage()

func (*ReWriteRawTx) Reset

func (m *ReWriteRawTx) Reset()

func (*ReWriteRawTx) String

func (m *ReWriteRawTx) String() string

func (*ReWriteRawTx) XXX_DiscardUnknown

func (m *ReWriteRawTx) XXX_DiscardUnknown()

func (*ReWriteRawTx) XXX_Marshal

func (m *ReWriteRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReWriteRawTx) XXX_Merge

func (m *ReWriteRawTx) XXX_Merge(src proto.Message)

func (*ReWriteRawTx) XXX_Size

func (m *ReWriteRawTx) XXX_Size() int

func (*ReWriteRawTx) XXX_Unmarshal

func (m *ReWriteRawTx) XXX_Unmarshal(b []byte) error

type Receipt

type Receipt struct {
	Ty                   int32         `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	KV                   []*KeyValue   `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
	Logs                 []*ReceiptLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

ty = 0 -> error Receipt ty = 1 -> CutFee //cut fee ,bug exec not ok ty = 2 -> exec ok

func NewErrReceipt

func NewErrReceipt(err error) *Receipt

NewErrReceipt new一个新的Receipt

func (*Receipt) Descriptor

func (*Receipt) Descriptor() ([]byte, []int)

func (*Receipt) GetKV

func (m *Receipt) GetKV() []*KeyValue

func (*Receipt) GetLogs

func (m *Receipt) GetLogs() []*ReceiptLog

func (*Receipt) GetTy

func (m *Receipt) GetTy() int32

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) Reset

func (m *Receipt) Reset()

func (*Receipt) String

func (m *Receipt) String() string

func (*Receipt) XXX_DiscardUnknown

func (m *Receipt) XXX_DiscardUnknown()

func (*Receipt) XXX_Marshal

func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Receipt) XXX_Merge

func (m *Receipt) XXX_Merge(src proto.Message)

func (*Receipt) XXX_Size

func (m *Receipt) XXX_Size() int

func (*Receipt) XXX_Unmarshal

func (m *Receipt) XXX_Unmarshal(b []byte) error

type ReceiptAccountBurn

type ReceiptAccountBurn struct {
	Prev                 *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current              *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiptAccountBurn) Descriptor

func (*ReceiptAccountBurn) Descriptor() ([]byte, []int)

func (*ReceiptAccountBurn) GetCurrent

func (m *ReceiptAccountBurn) GetCurrent() *Account

func (*ReceiptAccountBurn) GetPrev

func (m *ReceiptAccountBurn) GetPrev() *Account

func (*ReceiptAccountBurn) ProtoMessage

func (*ReceiptAccountBurn) ProtoMessage()

func (*ReceiptAccountBurn) Reset

func (m *ReceiptAccountBurn) Reset()

func (*ReceiptAccountBurn) String

func (m *ReceiptAccountBurn) String() string

func (*ReceiptAccountBurn) XXX_DiscardUnknown

func (m *ReceiptAccountBurn) XXX_DiscardUnknown()

func (*ReceiptAccountBurn) XXX_Marshal

func (m *ReceiptAccountBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptAccountBurn) XXX_Merge

func (m *ReceiptAccountBurn) XXX_Merge(src proto.Message)

func (*ReceiptAccountBurn) XXX_Size

func (m *ReceiptAccountBurn) XXX_Size() int

func (*ReceiptAccountBurn) XXX_Unmarshal

func (m *ReceiptAccountBurn) XXX_Unmarshal(b []byte) error

type ReceiptAccountMint

type ReceiptAccountMint struct {
	//铸币前
	Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	//铸币后
	Current              *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

铸币账户余额增加

func (*ReceiptAccountMint) Descriptor

func (*ReceiptAccountMint) Descriptor() ([]byte, []int)

func (*ReceiptAccountMint) GetCurrent

func (m *ReceiptAccountMint) GetCurrent() *Account

func (*ReceiptAccountMint) GetPrev

func (m *ReceiptAccountMint) GetPrev() *Account

func (*ReceiptAccountMint) ProtoMessage

func (*ReceiptAccountMint) ProtoMessage()

func (*ReceiptAccountMint) Reset

func (m *ReceiptAccountMint) Reset()

func (*ReceiptAccountMint) String

func (m *ReceiptAccountMint) String() string

func (*ReceiptAccountMint) XXX_DiscardUnknown

func (m *ReceiptAccountMint) XXX_DiscardUnknown()

func (*ReceiptAccountMint) XXX_Marshal

func (m *ReceiptAccountMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptAccountMint) XXX_Merge

func (m *ReceiptAccountMint) XXX_Merge(src proto.Message)

func (*ReceiptAccountMint) XXX_Size

func (m *ReceiptAccountMint) XXX_Size() int

func (*ReceiptAccountMint) XXX_Unmarshal

func (m *ReceiptAccountMint) XXX_Unmarshal(b []byte) error

type ReceiptAccountTransfer

type ReceiptAccountTransfer struct {
	//转移前
	Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	//转移后
	Current              *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

账户余额改变的一个交易回报(coins内)

func (*ReceiptAccountTransfer) Descriptor

func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int)

func (*ReceiptAccountTransfer) GetCurrent

func (m *ReceiptAccountTransfer) GetCurrent() *Account

func (*ReceiptAccountTransfer) GetPrev

func (m *ReceiptAccountTransfer) GetPrev() *Account

func (*ReceiptAccountTransfer) ProtoMessage

func (*ReceiptAccountTransfer) ProtoMessage()

func (*ReceiptAccountTransfer) Reset

func (m *ReceiptAccountTransfer) Reset()

func (*ReceiptAccountTransfer) String

func (m *ReceiptAccountTransfer) String() string

func (*ReceiptAccountTransfer) XXX_DiscardUnknown

func (m *ReceiptAccountTransfer) XXX_DiscardUnknown()

func (*ReceiptAccountTransfer) XXX_Marshal

func (m *ReceiptAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptAccountTransfer) XXX_Merge

func (m *ReceiptAccountTransfer) XXX_Merge(src proto.Message)

func (*ReceiptAccountTransfer) XXX_Size

func (m *ReceiptAccountTransfer) XXX_Size() int

func (*ReceiptAccountTransfer) XXX_Unmarshal

func (m *ReceiptAccountTransfer) XXX_Unmarshal(b []byte) error

type ReceiptCheckTxList

type ReceiptCheckTxList struct {
	Errs                 []string `protobuf:"bytes,1,rep,name=errs,proto3" json:"errs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiptCheckTxList) Descriptor

func (*ReceiptCheckTxList) Descriptor() ([]byte, []int)

func (*ReceiptCheckTxList) GetErrs

func (m *ReceiptCheckTxList) GetErrs() []string

func (*ReceiptCheckTxList) ProtoMessage

func (*ReceiptCheckTxList) ProtoMessage()

func (*ReceiptCheckTxList) Reset

func (m *ReceiptCheckTxList) Reset()

func (*ReceiptCheckTxList) String

func (m *ReceiptCheckTxList) String() string

func (*ReceiptCheckTxList) XXX_DiscardUnknown

func (m *ReceiptCheckTxList) XXX_DiscardUnknown()

func (*ReceiptCheckTxList) XXX_Marshal

func (m *ReceiptCheckTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptCheckTxList) XXX_Merge

func (m *ReceiptCheckTxList) XXX_Merge(src proto.Message)

func (*ReceiptCheckTxList) XXX_Size

func (m *ReceiptCheckTxList) XXX_Size() int

func (*ReceiptCheckTxList) XXX_Unmarshal

func (m *ReceiptCheckTxList) XXX_Unmarshal(b []byte) error

type ReceiptConfig

type ReceiptConfig struct {
	Prev                 *ConfigItem `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current              *ConfigItem `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ReceiptConfig) Descriptor

func (*ReceiptConfig) Descriptor() ([]byte, []int)

func (*ReceiptConfig) GetCurrent

func (m *ReceiptConfig) GetCurrent() *ConfigItem

func (*ReceiptConfig) GetPrev

func (m *ReceiptConfig) GetPrev() *ConfigItem

func (*ReceiptConfig) ProtoMessage

func (*ReceiptConfig) ProtoMessage()

func (*ReceiptConfig) Reset

func (m *ReceiptConfig) Reset()

func (*ReceiptConfig) String

func (m *ReceiptConfig) String() string

func (*ReceiptConfig) XXX_DiscardUnknown

func (m *ReceiptConfig) XXX_DiscardUnknown()

func (*ReceiptConfig) XXX_Marshal

func (m *ReceiptConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptConfig) XXX_Merge

func (m *ReceiptConfig) XXX_Merge(src proto.Message)

func (*ReceiptConfig) XXX_Size

func (m *ReceiptConfig) XXX_Size() int

func (*ReceiptConfig) XXX_Unmarshal

func (m *ReceiptConfig) XXX_Unmarshal(b []byte) error

type ReceiptData

type ReceiptData struct {
	Ty                   int32         `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Logs                 []*ReceiptLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ReceiptData) Clone

func (r *ReceiptData) Clone() *ReceiptData

Clone 浅拷贝ReceiptData

func (*ReceiptData) DecodeReceiptLog

func (r *ReceiptData) DecodeReceiptLog(execer []byte) (*ReceiptDataResult, error)

DecodeReceiptLog 编码回执数据

func (*ReceiptData) Descriptor

func (*ReceiptData) Descriptor() ([]byte, []int)

func (*ReceiptData) GetLogs

func (m *ReceiptData) GetLogs() []*ReceiptLog

func (*ReceiptData) GetTy

func (m *ReceiptData) GetTy() int32

func (*ReceiptData) OutputReceiptDetails

func (r *ReceiptData) OutputReceiptDetails(execer []byte, logger log.Logger)

OutputReceiptDetails 输出回执数据详情

func (*ReceiptData) ProtoMessage

func (*ReceiptData) ProtoMessage()

func (*ReceiptData) Reset

func (m *ReceiptData) Reset()

func (*ReceiptData) String

func (m *ReceiptData) String() string

func (*ReceiptData) XXX_DiscardUnknown

func (m *ReceiptData) XXX_DiscardUnknown()

func (*ReceiptData) XXX_Marshal

func (m *ReceiptData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptData) XXX_Merge

func (m *ReceiptData) XXX_Merge(src proto.Message)

func (*ReceiptData) XXX_Size

func (m *ReceiptData) XXX_Size() int

func (*ReceiptData) XXX_Unmarshal

func (m *ReceiptData) XXX_Unmarshal(b []byte) error

type ReceiptDataResult

type ReceiptDataResult struct {
	Ty     int32               `json:"ty"`
	TyName string              `json:"tyname"`
	Logs   []*ReceiptLogResult `json:"logs"`
}

ReceiptDataResult 回执数据

type ReceiptExecAccountTransfer

type ReceiptExecAccountTransfer struct {
	//合约地址
	ExecAddr string `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
	//转移前
	Prev *Account `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
	//转移后
	Current              *Account `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

账户余额改变的一个交易回报(合约内)

func (*ReceiptExecAccountTransfer) Descriptor

func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int)

func (*ReceiptExecAccountTransfer) GetCurrent

func (m *ReceiptExecAccountTransfer) GetCurrent() *Account

func (*ReceiptExecAccountTransfer) GetExecAddr

func (m *ReceiptExecAccountTransfer) GetExecAddr() string

func (*ReceiptExecAccountTransfer) GetPrev

func (m *ReceiptExecAccountTransfer) GetPrev() *Account

func (*ReceiptExecAccountTransfer) ProtoMessage

func (*ReceiptExecAccountTransfer) ProtoMessage()

func (*ReceiptExecAccountTransfer) Reset

func (m *ReceiptExecAccountTransfer) Reset()

func (*ReceiptExecAccountTransfer) String

func (m *ReceiptExecAccountTransfer) String() string

func (*ReceiptExecAccountTransfer) XXX_DiscardUnknown

func (m *ReceiptExecAccountTransfer) XXX_DiscardUnknown()

func (*ReceiptExecAccountTransfer) XXX_Marshal

func (m *ReceiptExecAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptExecAccountTransfer) XXX_Merge

func (m *ReceiptExecAccountTransfer) XXX_Merge(src proto.Message)

func (*ReceiptExecAccountTransfer) XXX_Size

func (m *ReceiptExecAccountTransfer) XXX_Size() int

func (*ReceiptExecAccountTransfer) XXX_Unmarshal

func (m *ReceiptExecAccountTransfer) XXX_Unmarshal(b []byte) error

type ReceiptLog

type ReceiptLog struct {
	Ty                   int32    `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Log                  []byte   `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiptLog) Clone

func (r *ReceiptLog) Clone() *ReceiptLog

Clone 浅拷贝 receiptLog

func (*ReceiptLog) Descriptor

func (*ReceiptLog) Descriptor() ([]byte, []int)

func (*ReceiptLog) GetLog

func (m *ReceiptLog) GetLog() []byte

func (*ReceiptLog) GetTy

func (m *ReceiptLog) GetTy() int32

func (*ReceiptLog) ProtoMessage

func (*ReceiptLog) ProtoMessage()

func (*ReceiptLog) Reset

func (m *ReceiptLog) Reset()

func (*ReceiptLog) String

func (m *ReceiptLog) String() string

func (*ReceiptLog) XXX_DiscardUnknown

func (m *ReceiptLog) XXX_DiscardUnknown()

func (*ReceiptLog) XXX_Marshal

func (m *ReceiptLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptLog) XXX_Merge

func (m *ReceiptLog) XXX_Merge(src proto.Message)

func (*ReceiptLog) XXX_Size

func (m *ReceiptLog) XXX_Size() int

func (*ReceiptLog) XXX_Unmarshal

func (m *ReceiptLog) XXX_Unmarshal(b []byte) error

type ReceiptLogResult

type ReceiptLogResult struct {
	Ty     int32       `json:"ty"`
	TyName string      `json:"tyname"`
	Log    interface{} `json:"log"`
	RawLog string      `json:"rawlog"`
}

ReceiptLogResult 回执log数据

type Receipts

type Receipts struct {
	Receipts             []*Receipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Receipts) Descriptor

func (*Receipts) Descriptor() ([]byte, []int)

func (*Receipts) GetReceipts

func (m *Receipts) GetReceipts() []*Receipt

func (*Receipts) ProtoMessage

func (*Receipts) ProtoMessage()

func (*Receipts) Reset

func (m *Receipts) Reset()

func (*Receipts) String

func (m *Receipts) String() string

func (*Receipts) XXX_DiscardUnknown

func (m *Receipts) XXX_DiscardUnknown()

func (*Receipts) XXX_Marshal

func (m *Receipts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Receipts) XXX_Merge

func (m *Receipts) XXX_Merge(src proto.Message)

func (*Receipts) XXX_Size

func (m *Receipts) XXX_Size() int

func (*Receipts) XXX_Unmarshal

func (m *Receipts) XXX_Unmarshal(b []byte) error

type Reply

type Reply struct {
	IsOk                 bool     `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
	Msg                  []byte   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Reply) Descriptor

func (*Reply) Descriptor() ([]byte, []int)

func (*Reply) GetIsOk

func (m *Reply) GetIsOk() bool

func (*Reply) GetMsg

func (m *Reply) GetMsg() []byte

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

func (*Reply) XXX_DiscardUnknown

func (m *Reply) XXX_DiscardUnknown()

func (*Reply) XXX_Marshal

func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reply) XXX_Merge

func (m *Reply) XXX_Merge(src proto.Message)

func (*Reply) XXX_Size

func (m *Reply) XXX_Size() int

func (*Reply) XXX_Unmarshal

func (m *Reply) XXX_Unmarshal(b []byte) error

type ReplyAddSeqCallback

type ReplyAddSeqCallback struct {
	IsOk                 bool        `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
	Msg                  []byte      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Seqs                 []*Sequence `protobuf:"bytes,3,rep,name=seqs,proto3" json:"seqs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Reply AddSeqCallback

func (*ReplyAddSeqCallback) Descriptor

func (*ReplyAddSeqCallback) Descriptor() ([]byte, []int)

func (*ReplyAddSeqCallback) GetIsOk

func (m *ReplyAddSeqCallback) GetIsOk() bool

func (*ReplyAddSeqCallback) GetMsg

func (m *ReplyAddSeqCallback) GetMsg() []byte

func (*ReplyAddSeqCallback) GetSeqs

func (m *ReplyAddSeqCallback) GetSeqs() []*Sequence

func (*ReplyAddSeqCallback) ProtoMessage

func (*ReplyAddSeqCallback) ProtoMessage()

func (*ReplyAddSeqCallback) Reset

func (m *ReplyAddSeqCallback) Reset()

func (*ReplyAddSeqCallback) String

func (m *ReplyAddSeqCallback) String() string

func (*ReplyAddSeqCallback) XXX_DiscardUnknown

func (m *ReplyAddSeqCallback) XXX_DiscardUnknown()

func (*ReplyAddSeqCallback) XXX_Marshal

func (m *ReplyAddSeqCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyAddSeqCallback) XXX_Merge

func (m *ReplyAddSeqCallback) XXX_Merge(src proto.Message)

func (*ReplyAddSeqCallback) XXX_Size

func (m *ReplyAddSeqCallback) XXX_Size() int

func (*ReplyAddSeqCallback) XXX_Unmarshal

func (m *ReplyAddSeqCallback) XXX_Unmarshal(b []byte) error

type ReplyBlockHeight

type ReplyBlockHeight struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyBlockHeight) Descriptor

func (*ReplyBlockHeight) Descriptor() ([]byte, []int)

func (*ReplyBlockHeight) GetHeight

func (m *ReplyBlockHeight) GetHeight() int64

func (*ReplyBlockHeight) ProtoMessage

func (*ReplyBlockHeight) ProtoMessage()

func (*ReplyBlockHeight) Reset

func (m *ReplyBlockHeight) Reset()

func (*ReplyBlockHeight) String

func (m *ReplyBlockHeight) String() string

func (*ReplyBlockHeight) XXX_DiscardUnknown

func (m *ReplyBlockHeight) XXX_DiscardUnknown()

func (*ReplyBlockHeight) XXX_Marshal

func (m *ReplyBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyBlockHeight) XXX_Merge

func (m *ReplyBlockHeight) XXX_Merge(src proto.Message)

func (*ReplyBlockHeight) XXX_Size

func (m *ReplyBlockHeight) XXX_Size() int

func (*ReplyBlockHeight) XXX_Unmarshal

func (m *ReplyBlockHeight) XXX_Unmarshal(b []byte) error

type ReplyConfig

type ReplyConfig struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyConfig) Descriptor

func (*ReplyConfig) Descriptor() ([]byte, []int)

func (*ReplyConfig) GetKey

func (m *ReplyConfig) GetKey() string

func (*ReplyConfig) GetValue

func (m *ReplyConfig) GetValue() string

func (*ReplyConfig) ProtoMessage

func (*ReplyConfig) ProtoMessage()

func (*ReplyConfig) Reset

func (m *ReplyConfig) Reset()

func (*ReplyConfig) String

func (m *ReplyConfig) String() string

func (*ReplyConfig) XXX_DiscardUnknown

func (m *ReplyConfig) XXX_DiscardUnknown()

func (*ReplyConfig) XXX_Marshal

func (m *ReplyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyConfig) XXX_Merge

func (m *ReplyConfig) XXX_Merge(src proto.Message)

func (*ReplyConfig) XXX_Size

func (m *ReplyConfig) XXX_Size() int

func (*ReplyConfig) XXX_Unmarshal

func (m *ReplyConfig) XXX_Unmarshal(b []byte) error

type ReplyGetExecBalance

type ReplyGetExecBalance struct {
	Amount               int64              `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	AmountFrozen         int64              `protobuf:"varint,2,opt,name=amountFrozen,proto3" json:"amountFrozen,omitempty"`
	AmountActive         int64              `protobuf:"varint,3,opt,name=amountActive,proto3" json:"amountActive,omitempty"`
	NextKey              []byte             `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	Items                []*ExecBalanceItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

查询symbol在合约中的代币总额应答

func (*ReplyGetExecBalance) AddItem

func (t *ReplyGetExecBalance) AddItem(execAddr, value []byte)

AddItem 添加item

func (*ReplyGetExecBalance) Descriptor

func (*ReplyGetExecBalance) Descriptor() ([]byte, []int)

func (*ReplyGetExecBalance) GetAmount

func (m *ReplyGetExecBalance) GetAmount() int64

func (*ReplyGetExecBalance) GetAmountActive

func (m *ReplyGetExecBalance) GetAmountActive() int64

func (*ReplyGetExecBalance) GetAmountFrozen

func (m *ReplyGetExecBalance) GetAmountFrozen() int64

func (*ReplyGetExecBalance) GetItems

func (m *ReplyGetExecBalance) GetItems() []*ExecBalanceItem

func (*ReplyGetExecBalance) GetNextKey

func (m *ReplyGetExecBalance) GetNextKey() []byte

func (*ReplyGetExecBalance) ProtoMessage

func (*ReplyGetExecBalance) ProtoMessage()

func (*ReplyGetExecBalance) Reset

func (m *ReplyGetExecBalance) Reset()

func (*ReplyGetExecBalance) String

func (m *ReplyGetExecBalance) String() string

func (*ReplyGetExecBalance) XXX_DiscardUnknown

func (m *ReplyGetExecBalance) XXX_DiscardUnknown()

func (*ReplyGetExecBalance) XXX_Marshal

func (m *ReplyGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyGetExecBalance) XXX_Merge

func (m *ReplyGetExecBalance) XXX_Merge(src proto.Message)

func (*ReplyGetExecBalance) XXX_Size

func (m *ReplyGetExecBalance) XXX_Size() int

func (*ReplyGetExecBalance) XXX_Unmarshal

func (m *ReplyGetExecBalance) XXX_Unmarshal(b []byte) error

type ReplyGetTotalCoins

type ReplyGetTotalCoins struct {
	Count                int64    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Num                  int64    `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	NextKey              []byte   `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询symbol代币总额应答

func (*ReplyGetTotalCoins) Descriptor

func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int)

func (*ReplyGetTotalCoins) GetAmount

func (m *ReplyGetTotalCoins) GetAmount() int64

func (*ReplyGetTotalCoins) GetCount

func (m *ReplyGetTotalCoins) GetCount() int64

func (*ReplyGetTotalCoins) GetNextKey

func (m *ReplyGetTotalCoins) GetNextKey() []byte

func (*ReplyGetTotalCoins) GetNum

func (m *ReplyGetTotalCoins) GetNum() int64

func (*ReplyGetTotalCoins) IterateRangeByStateHash

func (t *ReplyGetTotalCoins) IterateRangeByStateHash(key, value []byte) bool

IterateRangeByStateHash 迭代查找

func (*ReplyGetTotalCoins) ProtoMessage

func (*ReplyGetTotalCoins) ProtoMessage()

func (*ReplyGetTotalCoins) Reset

func (m *ReplyGetTotalCoins) Reset()

func (*ReplyGetTotalCoins) String

func (m *ReplyGetTotalCoins) String() string

func (*ReplyGetTotalCoins) XXX_DiscardUnknown

func (m *ReplyGetTotalCoins) XXX_DiscardUnknown()

func (*ReplyGetTotalCoins) XXX_Marshal

func (m *ReplyGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyGetTotalCoins) XXX_Merge

func (m *ReplyGetTotalCoins) XXX_Merge(src proto.Message)

func (*ReplyGetTotalCoins) XXX_Size

func (m *ReplyGetTotalCoins) XXX_Size() int

func (*ReplyGetTotalCoins) XXX_Unmarshal

func (m *ReplyGetTotalCoins) XXX_Unmarshal(b []byte) error

type ReplyHash

type ReplyHash struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyHash) Descriptor

func (*ReplyHash) Descriptor() ([]byte, []int)

func (*ReplyHash) GetHash

func (m *ReplyHash) GetHash() []byte

func (*ReplyHash) ProtoMessage

func (*ReplyHash) ProtoMessage()

func (*ReplyHash) Reset

func (m *ReplyHash) Reset()

func (*ReplyHash) String

func (m *ReplyHash) String() string

func (*ReplyHash) XXX_DiscardUnknown

func (m *ReplyHash) XXX_DiscardUnknown()

func (*ReplyHash) XXX_Marshal

func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyHash) XXX_Merge

func (m *ReplyHash) XXX_Merge(src proto.Message)

func (*ReplyHash) XXX_Size

func (m *ReplyHash) XXX_Size() int

func (*ReplyHash) XXX_Unmarshal

func (m *ReplyHash) XXX_Unmarshal(b []byte) error

type ReplyHashes

type ReplyHashes struct {
	Hashes               [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyHashes) Descriptor

func (*ReplyHashes) Descriptor() ([]byte, []int)

func (*ReplyHashes) GetHashes

func (m *ReplyHashes) GetHashes() [][]byte

func (*ReplyHashes) ProtoMessage

func (*ReplyHashes) ProtoMessage()

func (*ReplyHashes) Reset

func (m *ReplyHashes) Reset()

func (*ReplyHashes) String

func (m *ReplyHashes) String() string

func (*ReplyHashes) XXX_DiscardUnknown

func (m *ReplyHashes) XXX_DiscardUnknown()

func (*ReplyHashes) XXX_Marshal

func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyHashes) XXX_Merge

func (m *ReplyHashes) XXX_Merge(src proto.Message)

func (*ReplyHashes) XXX_Size

func (m *ReplyHashes) XXX_Size() int

func (*ReplyHashes) XXX_Unmarshal

func (m *ReplyHashes) XXX_Unmarshal(b []byte) error

type ReplyHeightByTitle

type ReplyHeightByTitle struct {
	Title                string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Items                []*BlockInfo `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ReplyHeightByTitle) Descriptor

func (*ReplyHeightByTitle) Descriptor() ([]byte, []int)

func (*ReplyHeightByTitle) GetItems

func (m *ReplyHeightByTitle) GetItems() []*BlockInfo

func (*ReplyHeightByTitle) GetTitle

func (m *ReplyHeightByTitle) GetTitle() string

func (*ReplyHeightByTitle) ProtoMessage

func (*ReplyHeightByTitle) ProtoMessage()

func (*ReplyHeightByTitle) Reset

func (m *ReplyHeightByTitle) Reset()

func (*ReplyHeightByTitle) String

func (m *ReplyHeightByTitle) String() string

func (*ReplyHeightByTitle) XXX_DiscardUnknown

func (m *ReplyHeightByTitle) XXX_DiscardUnknown()

func (*ReplyHeightByTitle) XXX_Marshal

func (m *ReplyHeightByTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyHeightByTitle) XXX_Merge

func (m *ReplyHeightByTitle) XXX_Merge(src proto.Message)

func (*ReplyHeightByTitle) XXX_Size

func (m *ReplyHeightByTitle) XXX_Size() int

func (*ReplyHeightByTitle) XXX_Unmarshal

func (m *ReplyHeightByTitle) XXX_Unmarshal(b []byte) error

type ReplyProperFee

type ReplyProperFee struct {
	ProperFee            int64    `protobuf:"varint,1,opt,name=properFee,proto3" json:"properFee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyProperFee) Descriptor

func (*ReplyProperFee) Descriptor() ([]byte, []int)

func (*ReplyProperFee) GetProperFee

func (m *ReplyProperFee) GetProperFee() int64

func (*ReplyProperFee) ProtoMessage

func (*ReplyProperFee) ProtoMessage()

func (*ReplyProperFee) Reset

func (m *ReplyProperFee) Reset()

func (*ReplyProperFee) String

func (m *ReplyProperFee) String() string

func (*ReplyProperFee) XXX_DiscardUnknown

func (m *ReplyProperFee) XXX_DiscardUnknown()

func (*ReplyProperFee) XXX_Marshal

func (m *ReplyProperFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyProperFee) XXX_Merge

func (m *ReplyProperFee) XXX_Merge(src proto.Message)

func (*ReplyProperFee) XXX_Size

func (m *ReplyProperFee) XXX_Size() int

func (*ReplyProperFee) XXX_Unmarshal

func (m *ReplyProperFee) XXX_Unmarshal(b []byte) error

type ReplySeed

type ReplySeed struct {
	Seed                 string   `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplySeed) Descriptor

func (*ReplySeed) Descriptor() ([]byte, []int)

func (*ReplySeed) GetSeed

func (m *ReplySeed) GetSeed() string

func (*ReplySeed) ProtoMessage

func (*ReplySeed) ProtoMessage()

func (*ReplySeed) Reset

func (m *ReplySeed) Reset()

func (*ReplySeed) String

func (m *ReplySeed) String() string

func (*ReplySeed) XXX_DiscardUnknown

func (m *ReplySeed) XXX_DiscardUnknown()

func (*ReplySeed) XXX_Marshal

func (m *ReplySeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplySeed) XXX_Merge

func (m *ReplySeed) XXX_Merge(src proto.Message)

func (*ReplySeed) XXX_Size

func (m *ReplySeed) XXX_Size() int

func (*ReplySeed) XXX_Unmarshal

func (m *ReplySeed) XXX_Unmarshal(b []byte) error

type ReplySignRawTx

type ReplySignRawTx struct {
	TxHex                string   `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplySignRawTx) Descriptor

func (*ReplySignRawTx) Descriptor() ([]byte, []int)

func (*ReplySignRawTx) GetTxHex

func (m *ReplySignRawTx) GetTxHex() string

func (*ReplySignRawTx) ProtoMessage

func (*ReplySignRawTx) ProtoMessage()

func (*ReplySignRawTx) Reset

func (m *ReplySignRawTx) Reset()

func (*ReplySignRawTx) String

func (m *ReplySignRawTx) String() string

func (*ReplySignRawTx) XXX_DiscardUnknown

func (m *ReplySignRawTx) XXX_DiscardUnknown()

func (*ReplySignRawTx) XXX_Marshal

func (m *ReplySignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplySignRawTx) XXX_Merge

func (m *ReplySignRawTx) XXX_Merge(src proto.Message)

func (*ReplySignRawTx) XXX_Size

func (m *ReplySignRawTx) XXX_Size() int

func (*ReplySignRawTx) XXX_Unmarshal

func (m *ReplySignRawTx) XXX_Unmarshal(b []byte) error

type ReplyString

type ReplyString struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyString) Descriptor

func (*ReplyString) Descriptor() ([]byte, []int)

func (*ReplyString) GetData

func (m *ReplyString) GetData() string

func (*ReplyString) ProtoMessage

func (*ReplyString) ProtoMessage()

func (*ReplyString) Reset

func (m *ReplyString) Reset()

func (*ReplyString) String

func (m *ReplyString) String() string

func (*ReplyString) XXX_DiscardUnknown

func (m *ReplyString) XXX_DiscardUnknown()

func (*ReplyString) XXX_Marshal

func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyString) XXX_Merge

func (m *ReplyString) XXX_Merge(src proto.Message)

func (*ReplyString) XXX_Size

func (m *ReplyString) XXX_Size() int

func (*ReplyString) XXX_Unmarshal

func (m *ReplyString) XXX_Unmarshal(b []byte) error

type ReplyStrings

type ReplyStrings struct {
	Datas                []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyStrings) Descriptor

func (*ReplyStrings) Descriptor() ([]byte, []int)

func (*ReplyStrings) GetDatas

func (m *ReplyStrings) GetDatas() []string

func (*ReplyStrings) ProtoMessage

func (*ReplyStrings) ProtoMessage()

func (*ReplyStrings) Reset

func (m *ReplyStrings) Reset()

func (*ReplyStrings) String

func (m *ReplyStrings) String() string

func (*ReplyStrings) XXX_DiscardUnknown

func (m *ReplyStrings) XXX_DiscardUnknown()

func (*ReplyStrings) XXX_Marshal

func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyStrings) XXX_Merge

func (m *ReplyStrings) XXX_Merge(src proto.Message)

func (*ReplyStrings) XXX_Size

func (m *ReplyStrings) XXX_Size() int

func (*ReplyStrings) XXX_Unmarshal

func (m *ReplyStrings) XXX_Unmarshal(b []byte) error

type ReplyTxInfo

type ReplyTxInfo struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Height               int64    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Index                int64    `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	Assets               []*Asset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyTxInfo) Descriptor

func (*ReplyTxInfo) Descriptor() ([]byte, []int)

func (*ReplyTxInfo) GetAssets

func (m *ReplyTxInfo) GetAssets() []*Asset

func (*ReplyTxInfo) GetHash

func (m *ReplyTxInfo) GetHash() []byte

func (*ReplyTxInfo) GetHeight

func (m *ReplyTxInfo) GetHeight() int64

func (*ReplyTxInfo) GetIndex

func (m *ReplyTxInfo) GetIndex() int64

func (*ReplyTxInfo) ProtoMessage

func (*ReplyTxInfo) ProtoMessage()

func (*ReplyTxInfo) Reset

func (m *ReplyTxInfo) Reset()

func (*ReplyTxInfo) String

func (m *ReplyTxInfo) String() string

func (*ReplyTxInfo) XXX_DiscardUnknown

func (m *ReplyTxInfo) XXX_DiscardUnknown()

func (*ReplyTxInfo) XXX_Marshal

func (m *ReplyTxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyTxInfo) XXX_Merge

func (m *ReplyTxInfo) XXX_Merge(src proto.Message)

func (*ReplyTxInfo) XXX_Size

func (m *ReplyTxInfo) XXX_Size() int

func (*ReplyTxInfo) XXX_Unmarshal

func (m *ReplyTxInfo) XXX_Unmarshal(b []byte) error

type ReplyTxInfos

type ReplyTxInfos struct {
	TxInfos              []*ReplyTxInfo `protobuf:"bytes,1,rep,name=txInfos,proto3" json:"txInfos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ReplyTxInfos) Descriptor

func (*ReplyTxInfos) Descriptor() ([]byte, []int)

func (*ReplyTxInfos) GetTxInfos

func (m *ReplyTxInfos) GetTxInfos() []*ReplyTxInfo

func (*ReplyTxInfos) ProtoMessage

func (*ReplyTxInfos) ProtoMessage()

func (*ReplyTxInfos) Reset

func (m *ReplyTxInfos) Reset()

func (*ReplyTxInfos) String

func (m *ReplyTxInfos) String() string

func (*ReplyTxInfos) XXX_DiscardUnknown

func (m *ReplyTxInfos) XXX_DiscardUnknown()

func (*ReplyTxInfos) XXX_Marshal

func (m *ReplyTxInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyTxInfos) XXX_Merge

func (m *ReplyTxInfos) XXX_Merge(src proto.Message)

func (*ReplyTxInfos) XXX_Size

func (m *ReplyTxInfos) XXX_Size() int

func (*ReplyTxInfos) XXX_Unmarshal

func (m *ReplyTxInfos) XXX_Unmarshal(b []byte) error

type ReplyTxList

type ReplyTxList struct {
	Txs                  []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ReplyTxList) Descriptor

func (*ReplyTxList) Descriptor() ([]byte, []int)

func (*ReplyTxList) GetTxs

func (m *ReplyTxList) GetTxs() []*Transaction

func (*ReplyTxList) ProtoMessage

func (*ReplyTxList) ProtoMessage()

func (*ReplyTxList) Reset

func (m *ReplyTxList) Reset()

func (*ReplyTxList) String

func (m *ReplyTxList) String() string

func (*ReplyTxList) XXX_DiscardUnknown

func (m *ReplyTxList) XXX_DiscardUnknown()

func (*ReplyTxList) XXX_Marshal

func (m *ReplyTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyTxList) XXX_Merge

func (m *ReplyTxList) XXX_Merge(src proto.Message)

func (*ReplyTxList) XXX_Size

func (m *ReplyTxList) XXX_Size() int

func (*ReplyTxList) XXX_Unmarshal

func (m *ReplyTxList) XXX_Unmarshal(b []byte) error

type ReportErrEvent

type ReportErrEvent struct {
	Frommodule           string   `protobuf:"bytes,1,opt,name=frommodule,proto3" json:"frommodule,omitempty"`
	Tomodule             string   `protobuf:"bytes,2,opt,name=tomodule,proto3" json:"tomodule,omitempty"`
	Error                string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReportErrEvent) Descriptor

func (*ReportErrEvent) Descriptor() ([]byte, []int)

func (*ReportErrEvent) GetError

func (m *ReportErrEvent) GetError() string

func (*ReportErrEvent) GetFrommodule

func (m *ReportErrEvent) GetFrommodule() string

func (*ReportErrEvent) GetTomodule

func (m *ReportErrEvent) GetTomodule() string

func (*ReportErrEvent) ProtoMessage

func (*ReportErrEvent) ProtoMessage()

func (*ReportErrEvent) Reset

func (m *ReportErrEvent) Reset()

func (*ReportErrEvent) String

func (m *ReportErrEvent) String() string

func (*ReportErrEvent) XXX_DiscardUnknown

func (m *ReportErrEvent) XXX_DiscardUnknown()

func (*ReportErrEvent) XXX_Marshal

func (m *ReportErrEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportErrEvent) XXX_Merge

func (m *ReportErrEvent) XXX_Merge(src proto.Message)

func (*ReportErrEvent) XXX_Size

func (m *ReportErrEvent) XXX_Size() int

func (*ReportErrEvent) XXX_Unmarshal

func (m *ReportErrEvent) XXX_Unmarshal(b []byte) error

type ReqAccountList

type ReqAccountList struct {
	WithoutBalance       bool     `protobuf:"varint,1,opt,name=withoutBalance,proto3" json:"withoutBalance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqAccountList) Descriptor

func (*ReqAccountList) Descriptor() ([]byte, []int)

func (*ReqAccountList) GetWithoutBalance

func (m *ReqAccountList) GetWithoutBalance() bool

func (*ReqAccountList) ProtoMessage

func (*ReqAccountList) ProtoMessage()

func (*ReqAccountList) Reset

func (m *ReqAccountList) Reset()

func (*ReqAccountList) String

func (m *ReqAccountList) String() string

func (*ReqAccountList) XXX_DiscardUnknown

func (m *ReqAccountList) XXX_DiscardUnknown()

func (*ReqAccountList) XXX_Marshal

func (m *ReqAccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqAccountList) XXX_Merge

func (m *ReqAccountList) XXX_Merge(src proto.Message)

func (*ReqAccountList) XXX_Size

func (m *ReqAccountList) XXX_Size() int

func (*ReqAccountList) XXX_Unmarshal

func (m *ReqAccountList) XXX_Unmarshal(b []byte) error

type ReqAddr

type ReqAddr struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//表示取所有/from/to/其他的hash列表
	Flag                 int32    `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"`
	Count                int32    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	Height               int64    `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Index                int64    `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqAddr) Descriptor

func (*ReqAddr) Descriptor() ([]byte, []int)

func (*ReqAddr) GetAddr

func (m *ReqAddr) GetAddr() string

func (*ReqAddr) GetCount

func (m *ReqAddr) GetCount() int32

func (*ReqAddr) GetDirection

func (m *ReqAddr) GetDirection() int32

func (*ReqAddr) GetFlag

func (m *ReqAddr) GetFlag() int32

func (*ReqAddr) GetHeight

func (m *ReqAddr) GetHeight() int64

func (*ReqAddr) GetIndex

func (m *ReqAddr) GetIndex() int64

func (*ReqAddr) ProtoMessage

func (*ReqAddr) ProtoMessage()

func (*ReqAddr) Reset

func (m *ReqAddr) Reset()

func (*ReqAddr) String

func (m *ReqAddr) String() string

func (*ReqAddr) XXX_DiscardUnknown

func (m *ReqAddr) XXX_DiscardUnknown()

func (*ReqAddr) XXX_Marshal

func (m *ReqAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqAddr) XXX_Merge

func (m *ReqAddr) XXX_Merge(src proto.Message)

func (*ReqAddr) XXX_Size

func (m *ReqAddr) XXX_Size() int

func (*ReqAddr) XXX_Unmarshal

func (m *ReqAddr) XXX_Unmarshal(b []byte) error

type ReqAddrs

type ReqAddrs struct {
	Addrs                []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqAddrs) Descriptor

func (*ReqAddrs) Descriptor() ([]byte, []int)

func (*ReqAddrs) GetAddrs

func (m *ReqAddrs) GetAddrs() []string

func (*ReqAddrs) ProtoMessage

func (*ReqAddrs) ProtoMessage()

func (*ReqAddrs) Reset

func (m *ReqAddrs) Reset()

func (*ReqAddrs) String

func (m *ReqAddrs) String() string

func (*ReqAddrs) XXX_DiscardUnknown

func (m *ReqAddrs) XXX_DiscardUnknown()

func (*ReqAddrs) XXX_Marshal

func (m *ReqAddrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqAddrs) XXX_Merge

func (m *ReqAddrs) XXX_Merge(src proto.Message)

func (*ReqAddrs) XXX_Size

func (m *ReqAddrs) XXX_Size() int

func (*ReqAddrs) XXX_Unmarshal

func (m *ReqAddrs) XXX_Unmarshal(b []byte) error

type ReqAllExecBalance

type ReqAllExecBalance struct {
	//地址列表
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//执行器名称
	Execer               string   `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
	StateHash            string   `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	AssetExec            string   `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
	AssetSymbol          string   `protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqAllExecBalance) Descriptor

func (*ReqAllExecBalance) Descriptor() ([]byte, []int)

func (*ReqAllExecBalance) GetAddr

func (m *ReqAllExecBalance) GetAddr() string

func (*ReqAllExecBalance) GetAssetExec

func (m *ReqAllExecBalance) GetAssetExec() string

func (*ReqAllExecBalance) GetAssetSymbol

func (m *ReqAllExecBalance) GetAssetSymbol() string

func (*ReqAllExecBalance) GetExecer

func (m *ReqAllExecBalance) GetExecer() string

func (*ReqAllExecBalance) GetStateHash

func (m *ReqAllExecBalance) GetStateHash() string

func (*ReqAllExecBalance) ProtoMessage

func (*ReqAllExecBalance) ProtoMessage()

func (*ReqAllExecBalance) Reset

func (m *ReqAllExecBalance) Reset()

func (*ReqAllExecBalance) String

func (m *ReqAllExecBalance) String() string

func (*ReqAllExecBalance) XXX_DiscardUnknown

func (m *ReqAllExecBalance) XXX_DiscardUnknown()

func (*ReqAllExecBalance) XXX_Marshal

func (m *ReqAllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqAllExecBalance) XXX_Merge

func (m *ReqAllExecBalance) XXX_Merge(src proto.Message)

func (*ReqAllExecBalance) XXX_Size

func (m *ReqAllExecBalance) XXX_Size() int

func (*ReqAllExecBalance) XXX_Unmarshal

func (m *ReqAllExecBalance) XXX_Unmarshal(b []byte) error

type ReqBalance

type ReqBalance struct {
	//地址列表
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	//执行器名称
	Execer               string   `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
	StateHash            string   `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	AssetExec            string   `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
	AssetSymbol          string   `protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询一个地址列表在某个执行器中余额

func (*ReqBalance) Descriptor

func (*ReqBalance) Descriptor() ([]byte, []int)

func (*ReqBalance) GetAddresses

func (m *ReqBalance) GetAddresses() []string

func (*ReqBalance) GetAssetExec

func (m *ReqBalance) GetAssetExec() string

func (*ReqBalance) GetAssetSymbol

func (m *ReqBalance) GetAssetSymbol() string

func (*ReqBalance) GetExecer

func (m *ReqBalance) GetExecer() string

func (*ReqBalance) GetStateHash

func (m *ReqBalance) GetStateHash() string

func (*ReqBalance) ProtoMessage

func (*ReqBalance) ProtoMessage()

func (*ReqBalance) Reset

func (m *ReqBalance) Reset()

func (*ReqBalance) String

func (m *ReqBalance) String() string

func (*ReqBalance) XXX_DiscardUnknown

func (m *ReqBalance) XXX_DiscardUnknown()

func (*ReqBalance) XXX_Marshal

func (m *ReqBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqBalance) XXX_Merge

func (m *ReqBalance) XXX_Merge(src proto.Message)

func (*ReqBalance) XXX_Size

func (m *ReqBalance) XXX_Size() int

func (*ReqBalance) XXX_Unmarshal

func (m *ReqBalance) XXX_Unmarshal(b []byte) error

type ReqBlocks

type ReqBlocks struct {
	Start                int64    `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End                  int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	IsDetail             bool     `protobuf:"varint,3,opt,name=isDetail,proto3" json:"isDetail,omitempty"`
	Pid                  []string `protobuf:"bytes,4,rep,name=pid,proto3" json:"pid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

获取区块信息

start : 获取区块的开始高度
end :获取区块的结束高度
Isdetail : 是否需要获取区块的详细信息
pid : peer列表

func (*ReqBlocks) Descriptor

func (*ReqBlocks) Descriptor() ([]byte, []int)

func (*ReqBlocks) GetEnd

func (m *ReqBlocks) GetEnd() int64

func (*ReqBlocks) GetIsDetail

func (m *ReqBlocks) GetIsDetail() bool

func (*ReqBlocks) GetPid

func (m *ReqBlocks) GetPid() []string

func (*ReqBlocks) GetStart

func (m *ReqBlocks) GetStart() int64

func (*ReqBlocks) ProtoMessage

func (*ReqBlocks) ProtoMessage()

func (*ReqBlocks) Reset

func (m *ReqBlocks) Reset()

func (*ReqBlocks) String

func (m *ReqBlocks) String() string

func (*ReqBlocks) XXX_DiscardUnknown

func (m *ReqBlocks) XXX_DiscardUnknown()

func (*ReqBlocks) XXX_Marshal

func (m *ReqBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqBlocks) XXX_Merge

func (m *ReqBlocks) XXX_Merge(src proto.Message)

func (*ReqBlocks) XXX_Size

func (m *ReqBlocks) XXX_Size() int

func (*ReqBlocks) XXX_Unmarshal

func (m *ReqBlocks) XXX_Unmarshal(b []byte) error

type ReqDecodeRawTransaction

type ReqDecodeRawTransaction struct {
	TxHex                string   `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqDecodeRawTransaction) Descriptor

func (*ReqDecodeRawTransaction) Descriptor() ([]byte, []int)

func (*ReqDecodeRawTransaction) GetTxHex

func (m *ReqDecodeRawTransaction) GetTxHex() string

func (*ReqDecodeRawTransaction) ProtoMessage

func (*ReqDecodeRawTransaction) ProtoMessage()

func (*ReqDecodeRawTransaction) Reset

func (m *ReqDecodeRawTransaction) Reset()

func (*ReqDecodeRawTransaction) String

func (m *ReqDecodeRawTransaction) String() string

func (*ReqDecodeRawTransaction) XXX_DiscardUnknown

func (m *ReqDecodeRawTransaction) XXX_DiscardUnknown()

func (*ReqDecodeRawTransaction) XXX_Marshal

func (m *ReqDecodeRawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqDecodeRawTransaction) XXX_Merge

func (m *ReqDecodeRawTransaction) XXX_Merge(src proto.Message)

func (*ReqDecodeRawTransaction) XXX_Size

func (m *ReqDecodeRawTransaction) XXX_Size() int

func (*ReqDecodeRawTransaction) XXX_Unmarshal

func (m *ReqDecodeRawTransaction) XXX_Unmarshal(b []byte) error

type ReqGetExecBalance

type ReqGetExecBalance struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	StateHash            []byte   `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Addr                 []byte   `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	ExecAddr             []byte   `protobuf:"bytes,4,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
	Execer               string   `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
	Count                int64    `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
	NextKey              []byte   `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额

func (*ReqGetExecBalance) Descriptor

func (*ReqGetExecBalance) Descriptor() ([]byte, []int)

func (*ReqGetExecBalance) GetAddr

func (m *ReqGetExecBalance) GetAddr() []byte

func (*ReqGetExecBalance) GetCount

func (m *ReqGetExecBalance) GetCount() int64

func (*ReqGetExecBalance) GetExecAddr

func (m *ReqGetExecBalance) GetExecAddr() []byte

func (*ReqGetExecBalance) GetExecer

func (m *ReqGetExecBalance) GetExecer() string

func (*ReqGetExecBalance) GetNextKey

func (m *ReqGetExecBalance) GetNextKey() []byte

func (*ReqGetExecBalance) GetStateHash

func (m *ReqGetExecBalance) GetStateHash() []byte

func (*ReqGetExecBalance) GetSymbol

func (m *ReqGetExecBalance) GetSymbol() string

func (*ReqGetExecBalance) ProtoMessage

func (*ReqGetExecBalance) ProtoMessage()

func (*ReqGetExecBalance) Reset

func (m *ReqGetExecBalance) Reset()

func (*ReqGetExecBalance) String

func (m *ReqGetExecBalance) String() string

func (*ReqGetExecBalance) XXX_DiscardUnknown

func (m *ReqGetExecBalance) XXX_DiscardUnknown()

func (*ReqGetExecBalance) XXX_Marshal

func (m *ReqGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqGetExecBalance) XXX_Merge

func (m *ReqGetExecBalance) XXX_Merge(src proto.Message)

func (*ReqGetExecBalance) XXX_Size

func (m *ReqGetExecBalance) XXX_Size() int

func (*ReqGetExecBalance) XXX_Unmarshal

func (m *ReqGetExecBalance) XXX_Unmarshal(b []byte) error

type ReqGetMempool

type ReqGetMempool struct {
	IsAll                bool     `protobuf:"varint,1,opt,name=isAll,proto3" json:"isAll,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqGetMempool) Descriptor

func (*ReqGetMempool) Descriptor() ([]byte, []int)

func (*ReqGetMempool) GetIsAll

func (m *ReqGetMempool) GetIsAll() bool

func (*ReqGetMempool) ProtoMessage

func (*ReqGetMempool) ProtoMessage()

func (*ReqGetMempool) Reset

func (m *ReqGetMempool) Reset()

func (*ReqGetMempool) String

func (m *ReqGetMempool) String() string

func (*ReqGetMempool) XXX_DiscardUnknown

func (m *ReqGetMempool) XXX_DiscardUnknown()

func (*ReqGetMempool) XXX_Marshal

func (m *ReqGetMempool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqGetMempool) XXX_Merge

func (m *ReqGetMempool) XXX_Merge(src proto.Message)

func (*ReqGetMempool) XXX_Size

func (m *ReqGetMempool) XXX_Size() int

func (*ReqGetMempool) XXX_Unmarshal

func (m *ReqGetMempool) XXX_Unmarshal(b []byte) error

type ReqGetTotalCoins

type ReqGetTotalCoins struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	StateHash            []byte   `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	StartKey             []byte   `protobuf:"bytes,3,opt,name=startKey,proto3" json:"startKey,omitempty"`
	Count                int64    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Execer               string   `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询symbol代币总额

func (*ReqGetTotalCoins) Descriptor

func (*ReqGetTotalCoins) Descriptor() ([]byte, []int)

func (*ReqGetTotalCoins) GetCount

func (m *ReqGetTotalCoins) GetCount() int64

func (*ReqGetTotalCoins) GetExecer

func (m *ReqGetTotalCoins) GetExecer() string

func (*ReqGetTotalCoins) GetStartKey

func (m *ReqGetTotalCoins) GetStartKey() []byte

func (*ReqGetTotalCoins) GetStateHash

func (m *ReqGetTotalCoins) GetStateHash() []byte

func (*ReqGetTotalCoins) GetSymbol

func (m *ReqGetTotalCoins) GetSymbol() string

func (*ReqGetTotalCoins) ProtoMessage

func (*ReqGetTotalCoins) ProtoMessage()

func (*ReqGetTotalCoins) Reset

func (m *ReqGetTotalCoins) Reset()

func (*ReqGetTotalCoins) String

func (m *ReqGetTotalCoins) String() string

func (*ReqGetTotalCoins) XXX_DiscardUnknown

func (m *ReqGetTotalCoins) XXX_DiscardUnknown()

func (*ReqGetTotalCoins) XXX_Marshal

func (m *ReqGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqGetTotalCoins) XXX_Merge

func (m *ReqGetTotalCoins) XXX_Merge(src proto.Message)

func (*ReqGetTotalCoins) XXX_Size

func (m *ReqGetTotalCoins) XXX_Size() int

func (*ReqGetTotalCoins) XXX_Unmarshal

func (m *ReqGetTotalCoins) XXX_Unmarshal(b []byte) error

type ReqHash

type ReqHash struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Upgrade              bool     `protobuf:"varint,2,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqHash) Descriptor

func (*ReqHash) Descriptor() ([]byte, []int)

func (*ReqHash) GetHash

func (m *ReqHash) GetHash() []byte

func (*ReqHash) GetUpgrade

func (m *ReqHash) GetUpgrade() bool

func (*ReqHash) ProtoMessage

func (*ReqHash) ProtoMessage()

func (*ReqHash) Reset

func (m *ReqHash) Reset()

func (*ReqHash) String

func (m *ReqHash) String() string

func (*ReqHash) XXX_DiscardUnknown

func (m *ReqHash) XXX_DiscardUnknown()

func (*ReqHash) XXX_Marshal

func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqHash) XXX_Merge

func (m *ReqHash) XXX_Merge(src proto.Message)

func (*ReqHash) XXX_Size

func (m *ReqHash) XXX_Size() int

func (*ReqHash) XXX_Unmarshal

func (m *ReqHash) XXX_Unmarshal(b []byte) error

type ReqHashes

type ReqHashes struct {
	Hashes               [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqHashes) Descriptor

func (*ReqHashes) Descriptor() ([]byte, []int)

func (*ReqHashes) GetHashes

func (m *ReqHashes) GetHashes() [][]byte

func (*ReqHashes) ProtoMessage

func (*ReqHashes) ProtoMessage()

func (*ReqHashes) Reset

func (m *ReqHashes) Reset()

func (*ReqHashes) String

func (m *ReqHashes) String() string

func (*ReqHashes) XXX_DiscardUnknown

func (m *ReqHashes) XXX_DiscardUnknown()

func (*ReqHashes) XXX_Marshal

func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqHashes) XXX_Merge

func (m *ReqHashes) XXX_Merge(src proto.Message)

func (*ReqHashes) XXX_Size

func (m *ReqHashes) XXX_Size() int

func (*ReqHashes) XXX_Unmarshal

func (m *ReqHashes) XXX_Unmarshal(b []byte) error

type ReqHeightByTitle

type ReqHeightByTitle struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Count                int32    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通过指定title以及height翻页获取拥有此title交易的区块高度列表

func (*ReqHeightByTitle) Descriptor

func (*ReqHeightByTitle) Descriptor() ([]byte, []int)

func (*ReqHeightByTitle) GetCount

func (m *ReqHeightByTitle) GetCount() int32

func (*ReqHeightByTitle) GetDirection

func (m *ReqHeightByTitle) GetDirection() int32

func (*ReqHeightByTitle) GetHeight

func (m *ReqHeightByTitle) GetHeight() int64

func (*ReqHeightByTitle) GetTitle

func (m *ReqHeightByTitle) GetTitle() string

func (*ReqHeightByTitle) ProtoMessage

func (*ReqHeightByTitle) ProtoMessage()

func (*ReqHeightByTitle) Reset

func (m *ReqHeightByTitle) Reset()

func (*ReqHeightByTitle) String

func (m *ReqHeightByTitle) String() string

func (*ReqHeightByTitle) XXX_DiscardUnknown

func (m *ReqHeightByTitle) XXX_DiscardUnknown()

func (*ReqHeightByTitle) XXX_Marshal

func (m *ReqHeightByTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqHeightByTitle) XXX_Merge

func (m *ReqHeightByTitle) XXX_Merge(src proto.Message)

func (*ReqHeightByTitle) XXX_Size

func (m *ReqHeightByTitle) XXX_Size() int

func (*ReqHeightByTitle) XXX_Unmarshal

func (m *ReqHeightByTitle) XXX_Unmarshal(b []byte) error

type ReqInt

type ReqInt struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqInt) Descriptor

func (*ReqInt) Descriptor() ([]byte, []int)

func (*ReqInt) GetHeight

func (m *ReqInt) GetHeight() int64

func (*ReqInt) ProtoMessage

func (*ReqInt) ProtoMessage()

func (*ReqInt) Reset

func (m *ReqInt) Reset()

func (*ReqInt) String

func (m *ReqInt) String() string

func (*ReqInt) XXX_DiscardUnknown

func (m *ReqInt) XXX_DiscardUnknown()

func (*ReqInt) XXX_Marshal

func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqInt) XXX_Merge

func (m *ReqInt) XXX_Merge(src proto.Message)

func (*ReqInt) XXX_Size

func (m *ReqInt) XXX_Size() int

func (*ReqInt) XXX_Unmarshal

func (m *ReqInt) XXX_Unmarshal(b []byte) error

type ReqKey

type ReqKey struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqKey) Descriptor

func (*ReqKey) Descriptor() ([]byte, []int)

func (*ReqKey) GetKey

func (m *ReqKey) GetKey() []byte

func (*ReqKey) ProtoMessage

func (*ReqKey) ProtoMessage()

func (*ReqKey) Reset

func (m *ReqKey) Reset()

func (*ReqKey) String

func (m *ReqKey) String() string

func (*ReqKey) XXX_DiscardUnknown

func (m *ReqKey) XXX_DiscardUnknown()

func (*ReqKey) XXX_Marshal

func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqKey) XXX_Merge

func (m *ReqKey) XXX_Merge(src proto.Message)

func (*ReqKey) XXX_Size

func (m *ReqKey) XXX_Size() int

func (*ReqKey) XXX_Unmarshal

func (m *ReqKey) XXX_Unmarshal(b []byte) error

type ReqModifyConfig

type ReqModifyConfig struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Op                   string   `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
	Value                string   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Modifier             string   `protobuf:"bytes,4,opt,name=modifier,proto3" json:"modifier,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqModifyConfig) Descriptor

func (*ReqModifyConfig) Descriptor() ([]byte, []int)

func (*ReqModifyConfig) GetKey

func (m *ReqModifyConfig) GetKey() string

func (*ReqModifyConfig) GetModifier

func (m *ReqModifyConfig) GetModifier() string

func (*ReqModifyConfig) GetOp

func (m *ReqModifyConfig) GetOp() string

func (*ReqModifyConfig) GetValue

func (m *ReqModifyConfig) GetValue() string

func (*ReqModifyConfig) ProtoMessage

func (*ReqModifyConfig) ProtoMessage()

func (*ReqModifyConfig) Reset

func (m *ReqModifyConfig) Reset()

func (*ReqModifyConfig) String

func (m *ReqModifyConfig) String() string

func (*ReqModifyConfig) XXX_DiscardUnknown

func (m *ReqModifyConfig) XXX_DiscardUnknown()

func (*ReqModifyConfig) XXX_Marshal

func (m *ReqModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqModifyConfig) XXX_Merge

func (m *ReqModifyConfig) XXX_Merge(src proto.Message)

func (*ReqModifyConfig) XXX_Size

func (m *ReqModifyConfig) XXX_Size() int

func (*ReqModifyConfig) XXX_Unmarshal

func (m *ReqModifyConfig) XXX_Unmarshal(b []byte) error

type ReqNewAccount

type ReqNewAccount struct {
	Label                string   `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqNewAccount) Descriptor

func (*ReqNewAccount) Descriptor() ([]byte, []int)

func (*ReqNewAccount) GetLabel

func (m *ReqNewAccount) GetLabel() string

func (*ReqNewAccount) ProtoMessage

func (*ReqNewAccount) ProtoMessage()

func (*ReqNewAccount) Reset

func (m *ReqNewAccount) Reset()

func (*ReqNewAccount) String

func (m *ReqNewAccount) String() string

func (*ReqNewAccount) XXX_DiscardUnknown

func (m *ReqNewAccount) XXX_DiscardUnknown()

func (*ReqNewAccount) XXX_Marshal

func (m *ReqNewAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqNewAccount) XXX_Merge

func (m *ReqNewAccount) XXX_Merge(src proto.Message)

func (*ReqNewAccount) XXX_Size

func (m *ReqNewAccount) XXX_Size() int

func (*ReqNewAccount) XXX_Unmarshal

func (m *ReqNewAccount) XXX_Unmarshal(b []byte) error

type ReqNil

type ReqNil struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqNil) Descriptor

func (*ReqNil) Descriptor() ([]byte, []int)

func (*ReqNil) ProtoMessage

func (*ReqNil) ProtoMessage()

func (*ReqNil) Reset

func (m *ReqNil) Reset()

func (*ReqNil) String

func (m *ReqNil) String() string

func (*ReqNil) XXX_DiscardUnknown

func (m *ReqNil) XXX_DiscardUnknown()

func (*ReqNil) XXX_Marshal

func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqNil) XXX_Merge

func (m *ReqNil) XXX_Merge(src proto.Message)

func (*ReqNil) XXX_Size

func (m *ReqNil) XXX_Size() int

func (*ReqNil) XXX_Unmarshal

func (m *ReqNil) XXX_Unmarshal(b []byte) error

type ReqParaTxByHeight

type ReqParaTxByHeight struct {
	Items                []int64  `protobuf:"varint,1,rep,packed,name=items,proto3" json:"items,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通过高度列表和title获取平行链交易

func (*ReqParaTxByHeight) Descriptor

func (*ReqParaTxByHeight) Descriptor() ([]byte, []int)

func (*ReqParaTxByHeight) GetItems

func (m *ReqParaTxByHeight) GetItems() []int64

func (*ReqParaTxByHeight) GetTitle

func (m *ReqParaTxByHeight) GetTitle() string

func (*ReqParaTxByHeight) ProtoMessage

func (*ReqParaTxByHeight) ProtoMessage()

func (*ReqParaTxByHeight) Reset

func (m *ReqParaTxByHeight) Reset()

func (*ReqParaTxByHeight) String

func (m *ReqParaTxByHeight) String() string

func (*ReqParaTxByHeight) XXX_DiscardUnknown

func (m *ReqParaTxByHeight) XXX_DiscardUnknown()

func (*ReqParaTxByHeight) XXX_Marshal

func (m *ReqParaTxByHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqParaTxByHeight) XXX_Merge

func (m *ReqParaTxByHeight) XXX_Merge(src proto.Message)

func (*ReqParaTxByHeight) XXX_Size

func (m *ReqParaTxByHeight) XXX_Size() int

func (*ReqParaTxByHeight) XXX_Unmarshal

func (m *ReqParaTxByHeight) XXX_Unmarshal(b []byte) error

type ReqParaTxByTitle

type ReqParaTxByTitle struct {
	Start                int64    `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End                  int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	Title                string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	IsSeq                bool     `protobuf:"varint,4,opt,name=isSeq,proto3" json:"isSeq,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通过seq区间和title请求平行链的交易

func (*ReqParaTxByTitle) Descriptor

func (*ReqParaTxByTitle) Descriptor() ([]byte, []int)

func (*ReqParaTxByTitle) GetEnd

func (m *ReqParaTxByTitle) GetEnd() int64

func (*ReqParaTxByTitle) GetIsSeq

func (m *ReqParaTxByTitle) GetIsSeq() bool

func (*ReqParaTxByTitle) GetStart

func (m *ReqParaTxByTitle) GetStart() int64

func (*ReqParaTxByTitle) GetTitle

func (m *ReqParaTxByTitle) GetTitle() string

func (*ReqParaTxByTitle) ProtoMessage

func (*ReqParaTxByTitle) ProtoMessage()

func (*ReqParaTxByTitle) Reset

func (m *ReqParaTxByTitle) Reset()

func (*ReqParaTxByTitle) String

func (m *ReqParaTxByTitle) String() string

func (*ReqParaTxByTitle) XXX_DiscardUnknown

func (m *ReqParaTxByTitle) XXX_DiscardUnknown()

func (*ReqParaTxByTitle) XXX_Marshal

func (m *ReqParaTxByTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqParaTxByTitle) XXX_Merge

func (m *ReqParaTxByTitle) XXX_Merge(src proto.Message)

func (*ReqParaTxByTitle) XXX_Size

func (m *ReqParaTxByTitle) XXX_Size() int

func (*ReqParaTxByTitle) XXX_Unmarshal

func (m *ReqParaTxByTitle) XXX_Unmarshal(b []byte) error

type ReqPrivkeysFile

type ReqPrivkeysFile struct {
	FileName             string   `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	Passwd               string   `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqPrivkeysFile) Descriptor

func (*ReqPrivkeysFile) Descriptor() ([]byte, []int)

func (*ReqPrivkeysFile) GetFileName

func (m *ReqPrivkeysFile) GetFileName() string

func (*ReqPrivkeysFile) GetPasswd

func (m *ReqPrivkeysFile) GetPasswd() string

func (*ReqPrivkeysFile) ProtoMessage

func (*ReqPrivkeysFile) ProtoMessage()

func (*ReqPrivkeysFile) Reset

func (m *ReqPrivkeysFile) Reset()

func (*ReqPrivkeysFile) String

func (m *ReqPrivkeysFile) String() string

func (*ReqPrivkeysFile) XXX_DiscardUnknown

func (m *ReqPrivkeysFile) XXX_DiscardUnknown()

func (*ReqPrivkeysFile) XXX_Marshal

func (m *ReqPrivkeysFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqPrivkeysFile) XXX_Merge

func (m *ReqPrivkeysFile) XXX_Merge(src proto.Message)

func (*ReqPrivkeysFile) XXX_Size

func (m *ReqPrivkeysFile) XXX_Size() int

func (*ReqPrivkeysFile) XXX_Unmarshal

func (m *ReqPrivkeysFile) XXX_Unmarshal(b []byte) error

type ReqProperFee

type ReqProperFee struct {
	TxCount              int32    `protobuf:"varint,1,opt,name=txCount,proto3" json:"txCount,omitempty"`
	TxSize               int32    `protobuf:"varint,2,opt,name=txSize,proto3" json:"txSize,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqProperFee) Descriptor

func (*ReqProperFee) Descriptor() ([]byte, []int)

func (*ReqProperFee) GetTxCount

func (m *ReqProperFee) GetTxCount() int32

func (*ReqProperFee) GetTxSize

func (m *ReqProperFee) GetTxSize() int32

func (*ReqProperFee) ProtoMessage

func (*ReqProperFee) ProtoMessage()

func (*ReqProperFee) Reset

func (m *ReqProperFee) Reset()

func (*ReqProperFee) String

func (m *ReqProperFee) String() string

func (*ReqProperFee) XXX_DiscardUnknown

func (m *ReqProperFee) XXX_DiscardUnknown()

func (*ReqProperFee) XXX_Marshal

func (m *ReqProperFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqProperFee) XXX_Merge

func (m *ReqProperFee) XXX_Merge(src proto.Message)

func (*ReqProperFee) XXX_Size

func (m *ReqProperFee) XXX_Size() int

func (*ReqProperFee) XXX_Unmarshal

func (m *ReqProperFee) XXX_Unmarshal(b []byte) error

type ReqRandHash

type ReqRandHash struct {
	ExecName             string   `protobuf:"bytes,1,opt,name=execName,proto3" json:"execName,omitempty"`
	Height               int64    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	BlockNum             int64    `protobuf:"varint,3,opt,name=blockNum,proto3" json:"blockNum,omitempty"`
	Hash                 []byte   `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqRandHash) Descriptor

func (*ReqRandHash) Descriptor() ([]byte, []int)

func (*ReqRandHash) GetBlockNum

func (m *ReqRandHash) GetBlockNum() int64

func (*ReqRandHash) GetExecName

func (m *ReqRandHash) GetExecName() string

func (*ReqRandHash) GetHash

func (m *ReqRandHash) GetHash() []byte

func (*ReqRandHash) GetHeight

func (m *ReqRandHash) GetHeight() int64

func (*ReqRandHash) ProtoMessage

func (*ReqRandHash) ProtoMessage()

func (*ReqRandHash) Reset

func (m *ReqRandHash) Reset()

func (*ReqRandHash) String

func (m *ReqRandHash) String() string

func (*ReqRandHash) XXX_DiscardUnknown

func (m *ReqRandHash) XXX_DiscardUnknown()

func (*ReqRandHash) XXX_Marshal

func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqRandHash) XXX_Merge

func (m *ReqRandHash) XXX_Merge(src proto.Message)

func (*ReqRandHash) XXX_Size

func (m *ReqRandHash) XXX_Size() int

func (*ReqRandHash) XXX_Unmarshal

func (m *ReqRandHash) XXX_Unmarshal(b []byte) error

type ReqSignRawTx

type ReqSignRawTx struct {
	Addr    string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Privkey string `protobuf:"bytes,2,opt,name=privkey,proto3" json:"privkey,omitempty"`
	TxHex   string `protobuf:"bytes,3,opt,name=txHex,proto3" json:"txHex,omitempty"`
	Expire  string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	Index   int32  `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	// 签名的模式类型
	// 0:普通交易
	// 1:隐私交易
	// int32  mode  = 6;
	Token string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
	Fee   int64  `protobuf:"varint,8,opt,name=fee,proto3" json:"fee,omitempty"`
	// bytes  newExecer = 9;
	NewToAddr            string   `protobuf:"bytes,10,opt,name=newToAddr,proto3" json:"newToAddr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqSignRawTx) Descriptor

func (*ReqSignRawTx) Descriptor() ([]byte, []int)

func (*ReqSignRawTx) GetAddr

func (m *ReqSignRawTx) GetAddr() string

func (*ReqSignRawTx) GetExpire

func (m *ReqSignRawTx) GetExpire() string

func (*ReqSignRawTx) GetFee

func (m *ReqSignRawTx) GetFee() int64

func (*ReqSignRawTx) GetIndex

func (m *ReqSignRawTx) GetIndex() int32

func (*ReqSignRawTx) GetNewToAddr

func (m *ReqSignRawTx) GetNewToAddr() string

func (*ReqSignRawTx) GetPrivkey

func (m *ReqSignRawTx) GetPrivkey() string

func (*ReqSignRawTx) GetToken

func (m *ReqSignRawTx) GetToken() string

func (*ReqSignRawTx) GetTxHex

func (m *ReqSignRawTx) GetTxHex() string

func (*ReqSignRawTx) ProtoMessage

func (*ReqSignRawTx) ProtoMessage()

func (*ReqSignRawTx) Reset

func (m *ReqSignRawTx) Reset()

func (*ReqSignRawTx) String

func (m *ReqSignRawTx) String() string

func (*ReqSignRawTx) XXX_DiscardUnknown

func (m *ReqSignRawTx) XXX_DiscardUnknown()

func (*ReqSignRawTx) XXX_Marshal

func (m *ReqSignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqSignRawTx) XXX_Merge

func (m *ReqSignRawTx) XXX_Merge(src proto.Message)

func (*ReqSignRawTx) XXX_Size

func (m *ReqSignRawTx) XXX_Size() int

func (*ReqSignRawTx) XXX_Unmarshal

func (m *ReqSignRawTx) XXX_Unmarshal(b []byte) error

type ReqString

type ReqString struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqString) Descriptor

func (*ReqString) Descriptor() ([]byte, []int)

func (*ReqString) GetData

func (m *ReqString) GetData() string

func (*ReqString) ProtoMessage

func (*ReqString) ProtoMessage()

func (*ReqString) Reset

func (m *ReqString) Reset()

func (*ReqString) String

func (m *ReqString) String() string

func (*ReqString) XXX_DiscardUnknown

func (m *ReqString) XXX_DiscardUnknown()

func (*ReqString) XXX_Marshal

func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqString) XXX_Merge

func (m *ReqString) XXX_Merge(src proto.Message)

func (*ReqString) XXX_Size

func (m *ReqString) XXX_Size() int

func (*ReqString) XXX_Unmarshal

func (m *ReqString) XXX_Unmarshal(b []byte) error

type ReqTokenFinishCreate

type ReqTokenFinishCreate struct {
	FinisherAddr         string   `protobuf:"bytes,1,opt,name=finisher_addr,json=finisherAddr,proto3" json:"finisher_addr,omitempty"`
	Symbol               string   `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	OwnerAddr            string   `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqTokenFinishCreate) Descriptor

func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int)

func (*ReqTokenFinishCreate) GetFinisherAddr

func (m *ReqTokenFinishCreate) GetFinisherAddr() string

func (*ReqTokenFinishCreate) GetOwnerAddr

func (m *ReqTokenFinishCreate) GetOwnerAddr() string

func (*ReqTokenFinishCreate) GetSymbol

func (m *ReqTokenFinishCreate) GetSymbol() string

func (*ReqTokenFinishCreate) ProtoMessage

func (*ReqTokenFinishCreate) ProtoMessage()

func (*ReqTokenFinishCreate) Reset

func (m *ReqTokenFinishCreate) Reset()

func (*ReqTokenFinishCreate) String

func (m *ReqTokenFinishCreate) String() string

func (*ReqTokenFinishCreate) XXX_DiscardUnknown

func (m *ReqTokenFinishCreate) XXX_DiscardUnknown()

func (*ReqTokenFinishCreate) XXX_Marshal

func (m *ReqTokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTokenFinishCreate) XXX_Merge

func (m *ReqTokenFinishCreate) XXX_Merge(src proto.Message)

func (*ReqTokenFinishCreate) XXX_Size

func (m *ReqTokenFinishCreate) XXX_Size() int

func (*ReqTokenFinishCreate) XXX_Unmarshal

func (m *ReqTokenFinishCreate) XXX_Unmarshal(b []byte) error

type ReqTokenPreCreate

type ReqTokenPreCreate struct {
	CreatorAddr          string   `protobuf:"bytes,1,opt,name=creator_addr,json=creatorAddr,proto3" json:"creator_addr,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Symbol               string   `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Introduction         string   `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction,omitempty"`
	OwnerAddr            string   `protobuf:"bytes,5,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
	Total                int64    `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	Price                int64    `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqTokenPreCreate) Descriptor

func (*ReqTokenPreCreate) Descriptor() ([]byte, []int)

func (*ReqTokenPreCreate) GetCreatorAddr

func (m *ReqTokenPreCreate) GetCreatorAddr() string

func (*ReqTokenPreCreate) GetIntroduction

func (m *ReqTokenPreCreate) GetIntroduction() string

func (*ReqTokenPreCreate) GetName

func (m *ReqTokenPreCreate) GetName() string

func (*ReqTokenPreCreate) GetOwnerAddr

func (m *ReqTokenPreCreate) GetOwnerAddr() string

func (*ReqTokenPreCreate) GetPrice

func (m *ReqTokenPreCreate) GetPrice() int64

func (*ReqTokenPreCreate) GetSymbol

func (m *ReqTokenPreCreate) GetSymbol() string

func (*ReqTokenPreCreate) GetTotal

func (m *ReqTokenPreCreate) GetTotal() int64

func (*ReqTokenPreCreate) ProtoMessage

func (*ReqTokenPreCreate) ProtoMessage()

func (*ReqTokenPreCreate) Reset

func (m *ReqTokenPreCreate) Reset()

func (*ReqTokenPreCreate) String

func (m *ReqTokenPreCreate) String() string

func (*ReqTokenPreCreate) XXX_DiscardUnknown

func (m *ReqTokenPreCreate) XXX_DiscardUnknown()

func (*ReqTokenPreCreate) XXX_Marshal

func (m *ReqTokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTokenPreCreate) XXX_Merge

func (m *ReqTokenPreCreate) XXX_Merge(src proto.Message)

func (*ReqTokenPreCreate) XXX_Size

func (m *ReqTokenPreCreate) XXX_Size() int

func (*ReqTokenPreCreate) XXX_Unmarshal

func (m *ReqTokenPreCreate) XXX_Unmarshal(b []byte) error

type ReqTokenRevokeCreate

type ReqTokenRevokeCreate struct {
	RevokerAddr          string   `protobuf:"bytes,1,opt,name=revoker_addr,json=revokerAddr,proto3" json:"revoker_addr,omitempty"`
	Symbol               string   `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	OwnerAddr            string   `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqTokenRevokeCreate) Descriptor

func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int)

func (*ReqTokenRevokeCreate) GetOwnerAddr

func (m *ReqTokenRevokeCreate) GetOwnerAddr() string

func (*ReqTokenRevokeCreate) GetRevokerAddr

func (m *ReqTokenRevokeCreate) GetRevokerAddr() string

func (*ReqTokenRevokeCreate) GetSymbol

func (m *ReqTokenRevokeCreate) GetSymbol() string

func (*ReqTokenRevokeCreate) ProtoMessage

func (*ReqTokenRevokeCreate) ProtoMessage()

func (*ReqTokenRevokeCreate) Reset

func (m *ReqTokenRevokeCreate) Reset()

func (*ReqTokenRevokeCreate) String

func (m *ReqTokenRevokeCreate) String() string

func (*ReqTokenRevokeCreate) XXX_DiscardUnknown

func (m *ReqTokenRevokeCreate) XXX_DiscardUnknown()

func (*ReqTokenRevokeCreate) XXX_Marshal

func (m *ReqTokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTokenRevokeCreate) XXX_Merge

func (m *ReqTokenRevokeCreate) XXX_Merge(src proto.Message)

func (*ReqTokenRevokeCreate) XXX_Size

func (m *ReqTokenRevokeCreate) XXX_Size() int

func (*ReqTokenRevokeCreate) XXX_Unmarshal

func (m *ReqTokenRevokeCreate) XXX_Unmarshal(b []byte) error

type ReqTxHashList

type ReqTxHashList struct {
	Hashes               []string `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	IsShortHash          bool     `protobuf:"varint,2,opt,name=isShortHash,proto3" json:"isShortHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通过交易hash获取交易列表,需要区分是短hash还是全hash值

func (*ReqTxHashList) Descriptor

func (*ReqTxHashList) Descriptor() ([]byte, []int)

func (*ReqTxHashList) GetHashes

func (m *ReqTxHashList) GetHashes() []string

func (*ReqTxHashList) GetIsShortHash

func (m *ReqTxHashList) GetIsShortHash() bool

func (*ReqTxHashList) ProtoMessage

func (*ReqTxHashList) ProtoMessage()

func (*ReqTxHashList) Reset

func (m *ReqTxHashList) Reset()

func (*ReqTxHashList) String

func (m *ReqTxHashList) String() string

func (*ReqTxHashList) XXX_DiscardUnknown

func (m *ReqTxHashList) XXX_DiscardUnknown()

func (*ReqTxHashList) XXX_Marshal

func (m *ReqTxHashList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTxHashList) XXX_Merge

func (m *ReqTxHashList) XXX_Merge(src proto.Message)

func (*ReqTxHashList) XXX_Size

func (m *ReqTxHashList) XXX_Size() int

func (*ReqTxHashList) XXX_Unmarshal

func (m *ReqTxHashList) XXX_Unmarshal(b []byte) error

type ReqTxList

type ReqTxList struct {
	Count                int64    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqTxList) Descriptor

func (*ReqTxList) Descriptor() ([]byte, []int)

func (*ReqTxList) GetCount

func (m *ReqTxList) GetCount() int64

func (*ReqTxList) ProtoMessage

func (*ReqTxList) ProtoMessage()

func (*ReqTxList) Reset

func (m *ReqTxList) Reset()

func (*ReqTxList) String

func (m *ReqTxList) String() string

func (*ReqTxList) XXX_DiscardUnknown

func (m *ReqTxList) XXX_DiscardUnknown()

func (*ReqTxList) XXX_Marshal

func (m *ReqTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTxList) XXX_Merge

func (m *ReqTxList) XXX_Merge(src proto.Message)

func (*ReqTxList) XXX_Size

func (m *ReqTxList) XXX_Size() int

func (*ReqTxList) XXX_Unmarshal

func (m *ReqTxList) XXX_Unmarshal(b []byte) error

type ReqWalletImportPrivkey

type ReqWalletImportPrivkey struct {
	// bitcoin 的私钥格式
	Privkey              string   `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqWalletImportPrivkey) Descriptor

func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int)

func (*ReqWalletImportPrivkey) GetLabel

func (m *ReqWalletImportPrivkey) GetLabel() string

func (*ReqWalletImportPrivkey) GetPrivkey

func (m *ReqWalletImportPrivkey) GetPrivkey() string

func (*ReqWalletImportPrivkey) ProtoMessage

func (*ReqWalletImportPrivkey) ProtoMessage()

func (*ReqWalletImportPrivkey) Reset

func (m *ReqWalletImportPrivkey) Reset()

func (*ReqWalletImportPrivkey) String

func (m *ReqWalletImportPrivkey) String() string

func (*ReqWalletImportPrivkey) XXX_DiscardUnknown

func (m *ReqWalletImportPrivkey) XXX_DiscardUnknown()

func (*ReqWalletImportPrivkey) XXX_Marshal

func (m *ReqWalletImportPrivkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletImportPrivkey) XXX_Merge

func (m *ReqWalletImportPrivkey) XXX_Merge(src proto.Message)

func (*ReqWalletImportPrivkey) XXX_Size

func (m *ReqWalletImportPrivkey) XXX_Size() int

func (*ReqWalletImportPrivkey) XXX_Unmarshal

func (m *ReqWalletImportPrivkey) XXX_Unmarshal(b []byte) error

type ReqWalletMergeBalance

type ReqWalletMergeBalance struct {
	To                   string   `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqWalletMergeBalance) Descriptor

func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int)

func (*ReqWalletMergeBalance) GetTo

func (m *ReqWalletMergeBalance) GetTo() string

func (*ReqWalletMergeBalance) ProtoMessage

func (*ReqWalletMergeBalance) ProtoMessage()

func (*ReqWalletMergeBalance) Reset

func (m *ReqWalletMergeBalance) Reset()

func (*ReqWalletMergeBalance) String

func (m *ReqWalletMergeBalance) String() string

func (*ReqWalletMergeBalance) XXX_DiscardUnknown

func (m *ReqWalletMergeBalance) XXX_DiscardUnknown()

func (*ReqWalletMergeBalance) XXX_Marshal

func (m *ReqWalletMergeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletMergeBalance) XXX_Merge

func (m *ReqWalletMergeBalance) XXX_Merge(src proto.Message)

func (*ReqWalletMergeBalance) XXX_Size

func (m *ReqWalletMergeBalance) XXX_Size() int

func (*ReqWalletMergeBalance) XXX_Unmarshal

func (m *ReqWalletMergeBalance) XXX_Unmarshal(b []byte) error

type ReqWalletSendToAddress

type ReqWalletSendToAddress struct {
	From                 string   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To                   string   `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Note                 string   `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	IsToken              bool     `protobuf:"varint,5,opt,name=isToken,proto3" json:"isToken,omitempty"`
	TokenSymbol          string   `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

发送交易

from : 打出地址
to :接受地址
amount : 转账额度
note :转账备注

func (*ReqWalletSendToAddress) Descriptor

func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int)

func (*ReqWalletSendToAddress) GetAmount

func (m *ReqWalletSendToAddress) GetAmount() int64

func (*ReqWalletSendToAddress) GetFrom

func (m *ReqWalletSendToAddress) GetFrom() string

func (*ReqWalletSendToAddress) GetIsToken

func (m *ReqWalletSendToAddress) GetIsToken() bool

func (*ReqWalletSendToAddress) GetNote

func (m *ReqWalletSendToAddress) GetNote() string

func (*ReqWalletSendToAddress) GetTo

func (m *ReqWalletSendToAddress) GetTo() string

func (*ReqWalletSendToAddress) GetTokenSymbol

func (m *ReqWalletSendToAddress) GetTokenSymbol() string

func (*ReqWalletSendToAddress) ProtoMessage

func (*ReqWalletSendToAddress) ProtoMessage()

func (*ReqWalletSendToAddress) Reset

func (m *ReqWalletSendToAddress) Reset()

func (*ReqWalletSendToAddress) String

func (m *ReqWalletSendToAddress) String() string

func (*ReqWalletSendToAddress) XXX_DiscardUnknown

func (m *ReqWalletSendToAddress) XXX_DiscardUnknown()

func (*ReqWalletSendToAddress) XXX_Marshal

func (m *ReqWalletSendToAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletSendToAddress) XXX_Merge

func (m *ReqWalletSendToAddress) XXX_Merge(src proto.Message)

func (*ReqWalletSendToAddress) XXX_Size

func (m *ReqWalletSendToAddress) XXX_Size() int

func (*ReqWalletSendToAddress) XXX_Unmarshal

func (m *ReqWalletSendToAddress) XXX_Unmarshal(b []byte) error

type ReqWalletSetFee

type ReqWalletSetFee struct {
	Amount               int64    `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqWalletSetFee) Descriptor

func (*ReqWalletSetFee) Descriptor() ([]byte, []int)

func (*ReqWalletSetFee) GetAmount

func (m *ReqWalletSetFee) GetAmount() int64

func (*ReqWalletSetFee) ProtoMessage

func (*ReqWalletSetFee) ProtoMessage()

func (*ReqWalletSetFee) Reset

func (m *ReqWalletSetFee) Reset()

func (*ReqWalletSetFee) String

func (m *ReqWalletSetFee) String() string

func (*ReqWalletSetFee) XXX_DiscardUnknown

func (m *ReqWalletSetFee) XXX_DiscardUnknown()

func (*ReqWalletSetFee) XXX_Marshal

func (m *ReqWalletSetFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletSetFee) XXX_Merge

func (m *ReqWalletSetFee) XXX_Merge(src proto.Message)

func (*ReqWalletSetFee) XXX_Size

func (m *ReqWalletSetFee) XXX_Size() int

func (*ReqWalletSetFee) XXX_Unmarshal

func (m *ReqWalletSetFee) XXX_Unmarshal(b []byte) error

type ReqWalletSetLabel

type ReqWalletSetLabel struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqWalletSetLabel) Descriptor

func (*ReqWalletSetLabel) Descriptor() ([]byte, []int)

func (*ReqWalletSetLabel) GetAddr

func (m *ReqWalletSetLabel) GetAddr() string

func (*ReqWalletSetLabel) GetLabel

func (m *ReqWalletSetLabel) GetLabel() string

func (*ReqWalletSetLabel) ProtoMessage

func (*ReqWalletSetLabel) ProtoMessage()

func (*ReqWalletSetLabel) Reset

func (m *ReqWalletSetLabel) Reset()

func (*ReqWalletSetLabel) String

func (m *ReqWalletSetLabel) String() string

func (*ReqWalletSetLabel) XXX_DiscardUnknown

func (m *ReqWalletSetLabel) XXX_DiscardUnknown()

func (*ReqWalletSetLabel) XXX_Marshal

func (m *ReqWalletSetLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletSetLabel) XXX_Merge

func (m *ReqWalletSetLabel) XXX_Merge(src proto.Message)

func (*ReqWalletSetLabel) XXX_Size

func (m *ReqWalletSetLabel) XXX_Size() int

func (*ReqWalletSetLabel) XXX_Unmarshal

func (m *ReqWalletSetLabel) XXX_Unmarshal(b []byte) error

type ReqWalletSetPasswd

type ReqWalletSetPasswd struct {
	OldPass              string   `protobuf:"bytes,1,opt,name=oldPass,proto3" json:"oldPass,omitempty"`
	NewPass              string   `protobuf:"bytes,2,opt,name=newPass,proto3" json:"newPass,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqWalletSetPasswd) Descriptor

func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int)

func (*ReqWalletSetPasswd) GetNewPass

func (m *ReqWalletSetPasswd) GetNewPass() string

func (*ReqWalletSetPasswd) GetOldPass

func (m *ReqWalletSetPasswd) GetOldPass() string

func (*ReqWalletSetPasswd) ProtoMessage

func (*ReqWalletSetPasswd) ProtoMessage()

func (*ReqWalletSetPasswd) Reset

func (m *ReqWalletSetPasswd) Reset()

func (*ReqWalletSetPasswd) String

func (m *ReqWalletSetPasswd) String() string

func (*ReqWalletSetPasswd) XXX_DiscardUnknown

func (m *ReqWalletSetPasswd) XXX_DiscardUnknown()

func (*ReqWalletSetPasswd) XXX_Marshal

func (m *ReqWalletSetPasswd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletSetPasswd) XXX_Merge

func (m *ReqWalletSetPasswd) XXX_Merge(src proto.Message)

func (*ReqWalletSetPasswd) XXX_Size

func (m *ReqWalletSetPasswd) XXX_Size() int

func (*ReqWalletSetPasswd) XXX_Unmarshal

func (m *ReqWalletSetPasswd) XXX_Unmarshal(b []byte) error

type ReqWalletTransactionList

type ReqWalletTransactionList struct {
	FromTx               []byte   `protobuf:"bytes,1,opt,name=fromTx,proto3" json:"fromTx,omitempty"`
	Count                int32    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

获取钱包交易的详细信息

 fromTx : []byte( Sprintf("%018d", height*100000 + index),
			表示从高度 height 中的 index 开始获取交易列表;
		    第一次传参为空,获取最新的交易。)
 count :获取交易列表的个数。
 direction :查找方式;0,上一页;1,下一页。

func (*ReqWalletTransactionList) Descriptor

func (*ReqWalletTransactionList) Descriptor() ([]byte, []int)

func (*ReqWalletTransactionList) GetCount

func (m *ReqWalletTransactionList) GetCount() int32

func (*ReqWalletTransactionList) GetDirection

func (m *ReqWalletTransactionList) GetDirection() int32

func (*ReqWalletTransactionList) GetFromTx

func (m *ReqWalletTransactionList) GetFromTx() []byte

func (*ReqWalletTransactionList) ProtoMessage

func (*ReqWalletTransactionList) ProtoMessage()

func (*ReqWalletTransactionList) Reset

func (m *ReqWalletTransactionList) Reset()

func (*ReqWalletTransactionList) String

func (m *ReqWalletTransactionList) String() string

func (*ReqWalletTransactionList) XXX_DiscardUnknown

func (m *ReqWalletTransactionList) XXX_DiscardUnknown()

func (*ReqWalletTransactionList) XXX_Marshal

func (m *ReqWalletTransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqWalletTransactionList) XXX_Merge

func (m *ReqWalletTransactionList) XXX_Merge(src proto.Message)

func (*ReqWalletTransactionList) XXX_Size

func (m *ReqWalletTransactionList) XXX_Size() int

func (*ReqWalletTransactionList) XXX_Unmarshal

func (m *ReqWalletTransactionList) XXX_Unmarshal(b []byte) error

type Request

type Request struct {
	// Types that are valid to be assigned to Value:
	//	*Request_Client
	//	*Request_Preprepare
	//	*Request_Prepare
	//	*Request_Commit
	//	*Request_Checkpoint
	//	*Request_Viewchange
	//	*Request_Ack
	//	*Request_Newview
	Value                isRequest_Value `protobuf_oneof:"value"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetAck

func (m *Request) GetAck() *RequestAck

func (*Request) GetCheckpoint

func (m *Request) GetCheckpoint() *RequestCheckpoint

func (*Request) GetClient

func (m *Request) GetClient() *RequestClient

func (*Request) GetCommit

func (m *Request) GetCommit() *RequestCommit

func (*Request) GetNewview

func (m *Request) GetNewview() *RequestNewView

func (*Request) GetPrepare

func (m *Request) GetPrepare() *RequestPrepare

func (*Request) GetPreprepare

func (m *Request) GetPreprepare() *RequestPrePrepare

func (*Request) GetValue

func (m *Request) GetValue() isRequest_Value

func (*Request) GetViewchange

func (m *Request) GetViewchange() *RequestViewChange

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_OneofWrappers

func (*Request) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type RequestAck

type RequestAck struct {
	View                 uint32   `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Replica              uint32   `protobuf:"varint,2,opt,name=replica,proto3" json:"replica,omitempty"`
	Viewchanger          uint32   `protobuf:"varint,3,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
	Digest               []byte   `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestAck) Descriptor

func (*RequestAck) Descriptor() ([]byte, []int)

func (*RequestAck) GetDigest

func (m *RequestAck) GetDigest() []byte

func (*RequestAck) GetReplica

func (m *RequestAck) GetReplica() uint32

func (*RequestAck) GetView

func (m *RequestAck) GetView() uint32

func (*RequestAck) GetViewchanger

func (m *RequestAck) GetViewchanger() uint32

func (*RequestAck) ProtoMessage

func (*RequestAck) ProtoMessage()

func (*RequestAck) Reset

func (m *RequestAck) Reset()

func (*RequestAck) String

func (m *RequestAck) String() string

func (*RequestAck) XXX_DiscardUnknown

func (m *RequestAck) XXX_DiscardUnknown()

func (*RequestAck) XXX_Marshal

func (m *RequestAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestAck) XXX_Merge

func (m *RequestAck) XXX_Merge(src proto.Message)

func (*RequestAck) XXX_Size

func (m *RequestAck) XXX_Size() int

func (*RequestAck) XXX_Unmarshal

func (m *RequestAck) XXX_Unmarshal(b []byte) error

type RequestCheckpoint

type RequestCheckpoint struct {
	Sequence             uint32   `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest               []byte   `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	Replica              uint32   `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestCheckpoint) Descriptor

func (*RequestCheckpoint) Descriptor() ([]byte, []int)

func (*RequestCheckpoint) GetDigest

func (m *RequestCheckpoint) GetDigest() []byte

func (*RequestCheckpoint) GetReplica

func (m *RequestCheckpoint) GetReplica() uint32

func (*RequestCheckpoint) GetSequence

func (m *RequestCheckpoint) GetSequence() uint32

func (*RequestCheckpoint) ProtoMessage

func (*RequestCheckpoint) ProtoMessage()

func (*RequestCheckpoint) Reset

func (m *RequestCheckpoint) Reset()

func (*RequestCheckpoint) String

func (m *RequestCheckpoint) String() string

func (*RequestCheckpoint) XXX_DiscardUnknown

func (m *RequestCheckpoint) XXX_DiscardUnknown()

func (*RequestCheckpoint) XXX_Marshal

func (m *RequestCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestCheckpoint) XXX_Merge

func (m *RequestCheckpoint) XXX_Merge(src proto.Message)

func (*RequestCheckpoint) XXX_Size

func (m *RequestCheckpoint) XXX_Size() int

func (*RequestCheckpoint) XXX_Unmarshal

func (m *RequestCheckpoint) XXX_Unmarshal(b []byte) error

type RequestClient

type RequestClient struct {
	Op                   *Operation `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
	Timestamp            string     `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Client               string     `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*RequestClient) Descriptor

func (*RequestClient) Descriptor() ([]byte, []int)

func (*RequestClient) GetClient

func (m *RequestClient) GetClient() string

func (*RequestClient) GetOp

func (m *RequestClient) GetOp() *Operation

func (*RequestClient) GetTimestamp

func (m *RequestClient) GetTimestamp() string

func (*RequestClient) ProtoMessage

func (*RequestClient) ProtoMessage()

func (*RequestClient) Reset

func (m *RequestClient) Reset()

func (*RequestClient) String

func (m *RequestClient) String() string

func (*RequestClient) XXX_DiscardUnknown

func (m *RequestClient) XXX_DiscardUnknown()

func (*RequestClient) XXX_Marshal

func (m *RequestClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestClient) XXX_Merge

func (m *RequestClient) XXX_Merge(src proto.Message)

func (*RequestClient) XXX_Size

func (m *RequestClient) XXX_Size() int

func (*RequestClient) XXX_Unmarshal

func (m *RequestClient) XXX_Unmarshal(b []byte) error

type RequestCommit

type RequestCommit struct {
	View                 uint32   `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence             uint32   `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Replica              uint32   `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestCommit) Descriptor

func (*RequestCommit) Descriptor() ([]byte, []int)

func (*RequestCommit) GetReplica

func (m *RequestCommit) GetReplica() uint32

func (*RequestCommit) GetSequence

func (m *RequestCommit) GetSequence() uint32

func (*RequestCommit) GetView

func (m *RequestCommit) GetView() uint32

func (*RequestCommit) ProtoMessage

func (*RequestCommit) ProtoMessage()

func (*RequestCommit) Reset

func (m *RequestCommit) Reset()

func (*RequestCommit) String

func (m *RequestCommit) String() string

func (*RequestCommit) XXX_DiscardUnknown

func (m *RequestCommit) XXX_DiscardUnknown()

func (*RequestCommit) XXX_Marshal

func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestCommit) XXX_Merge

func (m *RequestCommit) XXX_Merge(src proto.Message)

func (*RequestCommit) XXX_Size

func (m *RequestCommit) XXX_Size() int

func (*RequestCommit) XXX_Unmarshal

func (m *RequestCommit) XXX_Unmarshal(b []byte) error

type RequestNewView

type RequestNewView struct {
	View                 uint32        `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Viewchanges          []*ViewChange `protobuf:"bytes,2,rep,name=viewchanges,proto3" json:"viewchanges,omitempty"`
	Summaries            []*Summary    `protobuf:"bytes,4,rep,name=summaries,proto3" json:"summaries,omitempty"`
	Replica              uint32        `protobuf:"varint,5,opt,name=replica,proto3" json:"replica,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*RequestNewView) Descriptor

func (*RequestNewView) Descriptor() ([]byte, []int)

func (*RequestNewView) GetReplica

func (m *RequestNewView) GetReplica() uint32

func (*RequestNewView) GetSummaries

func (m *RequestNewView) GetSummaries() []*Summary

func (*RequestNewView) GetView

func (m *RequestNewView) GetView() uint32

func (*RequestNewView) GetViewchanges

func (m *RequestNewView) GetViewchanges() []*ViewChange

func (*RequestNewView) ProtoMessage

func (*RequestNewView) ProtoMessage()

func (*RequestNewView) Reset

func (m *RequestNewView) Reset()

func (*RequestNewView) String

func (m *RequestNewView) String() string

func (*RequestNewView) XXX_DiscardUnknown

func (m *RequestNewView) XXX_DiscardUnknown()

func (*RequestNewView) XXX_Marshal

func (m *RequestNewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestNewView) XXX_Merge

func (m *RequestNewView) XXX_Merge(src proto.Message)

func (*RequestNewView) XXX_Size

func (m *RequestNewView) XXX_Size() int

func (*RequestNewView) XXX_Unmarshal

func (m *RequestNewView) XXX_Unmarshal(b []byte) error

type RequestPrePrepare

type RequestPrePrepare struct {
	View                 uint32   `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence             uint32   `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest               []byte   `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	Replica              uint32   `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestPrePrepare) Descriptor

func (*RequestPrePrepare) Descriptor() ([]byte, []int)

func (*RequestPrePrepare) GetDigest

func (m *RequestPrePrepare) GetDigest() []byte

func (*RequestPrePrepare) GetReplica

func (m *RequestPrePrepare) GetReplica() uint32

func (*RequestPrePrepare) GetSequence

func (m *RequestPrePrepare) GetSequence() uint32

func (*RequestPrePrepare) GetView

func (m *RequestPrePrepare) GetView() uint32

func (*RequestPrePrepare) ProtoMessage

func (*RequestPrePrepare) ProtoMessage()

func (*RequestPrePrepare) Reset

func (m *RequestPrePrepare) Reset()

func (*RequestPrePrepare) String

func (m *RequestPrePrepare) String() string

func (*RequestPrePrepare) XXX_DiscardUnknown

func (m *RequestPrePrepare) XXX_DiscardUnknown()

func (*RequestPrePrepare) XXX_Marshal

func (m *RequestPrePrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestPrePrepare) XXX_Merge

func (m *RequestPrePrepare) XXX_Merge(src proto.Message)

func (*RequestPrePrepare) XXX_Size

func (m *RequestPrePrepare) XXX_Size() int

func (*RequestPrePrepare) XXX_Unmarshal

func (m *RequestPrePrepare) XXX_Unmarshal(b []byte) error

type RequestPrepare

type RequestPrepare struct {
	View                 uint32   `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence             uint32   `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest               []byte   `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	Replica              uint32   `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestPrepare) Descriptor

func (*RequestPrepare) Descriptor() ([]byte, []int)

func (*RequestPrepare) GetDigest

func (m *RequestPrepare) GetDigest() []byte

func (*RequestPrepare) GetReplica

func (m *RequestPrepare) GetReplica() uint32

func (*RequestPrepare) GetSequence

func (m *RequestPrepare) GetSequence() uint32

func (*RequestPrepare) GetView

func (m *RequestPrepare) GetView() uint32

func (*RequestPrepare) ProtoMessage

func (*RequestPrepare) ProtoMessage()

func (*RequestPrepare) Reset

func (m *RequestPrepare) Reset()

func (*RequestPrepare) String

func (m *RequestPrepare) String() string

func (*RequestPrepare) XXX_DiscardUnknown

func (m *RequestPrepare) XXX_DiscardUnknown()

func (*RequestPrepare) XXX_Marshal

func (m *RequestPrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestPrepare) XXX_Merge

func (m *RequestPrepare) XXX_Merge(src proto.Message)

func (*RequestPrepare) XXX_Size

func (m *RequestPrepare) XXX_Size() int

func (*RequestPrepare) XXX_Unmarshal

func (m *RequestPrepare) XXX_Unmarshal(b []byte) error

type RequestViewChange

type RequestViewChange struct {
	View                 uint32        `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence             uint32        `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Checkpoints          []*Checkpoint `protobuf:"bytes,3,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"`
	Preps                []*Entry      `protobuf:"bytes,4,rep,name=preps,proto3" json:"preps,omitempty"`
	Prepreps             []*Entry      `protobuf:"bytes,5,rep,name=prepreps,proto3" json:"prepreps,omitempty"`
	Replica              uint32        `protobuf:"varint,6,opt,name=replica,proto3" json:"replica,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*RequestViewChange) Descriptor

func (*RequestViewChange) Descriptor() ([]byte, []int)

func (*RequestViewChange) GetCheckpoints

func (m *RequestViewChange) GetCheckpoints() []*Checkpoint

func (*RequestViewChange) GetPrepreps

func (m *RequestViewChange) GetPrepreps() []*Entry

func (*RequestViewChange) GetPreps

func (m *RequestViewChange) GetPreps() []*Entry

func (*RequestViewChange) GetReplica

func (m *RequestViewChange) GetReplica() uint32

func (*RequestViewChange) GetSequence

func (m *RequestViewChange) GetSequence() uint32

func (*RequestViewChange) GetView

func (m *RequestViewChange) GetView() uint32

func (*RequestViewChange) ProtoMessage

func (*RequestViewChange) ProtoMessage()

func (*RequestViewChange) Reset

func (m *RequestViewChange) Reset()

func (*RequestViewChange) String

func (m *RequestViewChange) String() string

func (*RequestViewChange) XXX_DiscardUnknown

func (m *RequestViewChange) XXX_DiscardUnknown()

func (*RequestViewChange) XXX_Marshal

func (m *RequestViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestViewChange) XXX_Merge

func (m *RequestViewChange) XXX_Merge(src proto.Message)

func (*RequestViewChange) XXX_Size

func (m *RequestViewChange) XXX_Size() int

func (*RequestViewChange) XXX_Unmarshal

func (m *RequestViewChange) XXX_Unmarshal(b []byte) error

type Request_Ack

type Request_Ack struct {
	Ack *RequestAck `protobuf:"bytes,7,opt,name=ack,proto3,oneof"`
}

type Request_Checkpoint

type Request_Checkpoint struct {
	Checkpoint *RequestCheckpoint `protobuf:"bytes,5,opt,name=checkpoint,proto3,oneof"`
}

type Request_Client

type Request_Client struct {
	Client *RequestClient `protobuf:"bytes,1,opt,name=client,proto3,oneof"`
}

type Request_Commit

type Request_Commit struct {
	Commit *RequestCommit `protobuf:"bytes,4,opt,name=commit,proto3,oneof"`
}

type Request_Newview

type Request_Newview struct {
	Newview *RequestNewView `protobuf:"bytes,8,opt,name=newview,proto3,oneof"`
}

type Request_Prepare

type Request_Prepare struct {
	Prepare *RequestPrepare `protobuf:"bytes,3,opt,name=prepare,proto3,oneof"`
}

type Request_Preprepare

type Request_Preprepare struct {
	Preprepare *RequestPrePrepare `protobuf:"bytes,2,opt,name=preprepare,proto3,oneof"`
}

type Request_Viewchange

type Request_Viewchange struct {
	Viewchange *RequestViewChange `protobuf:"bytes,6,opt,name=viewchange,proto3,oneof"`
}

type Result

type Result struct {
	Value                *Block   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) GetValue

func (m *Result) GetValue() *Block

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

type RingSignature

type RingSignature struct {
	Items                []*RingSignatureItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

环签名类型时,签名字段存储的环签名信息

func (*RingSignature) Descriptor

func (*RingSignature) Descriptor() ([]byte, []int)

func (*RingSignature) GetItems

func (m *RingSignature) GetItems() []*RingSignatureItem

func (*RingSignature) ProtoMessage

func (*RingSignature) ProtoMessage()

func (*RingSignature) Reset

func (m *RingSignature) Reset()

func (*RingSignature) String

func (m *RingSignature) String() string

func (*RingSignature) XXX_DiscardUnknown

func (m *RingSignature) XXX_DiscardUnknown()

func (*RingSignature) XXX_Marshal

func (m *RingSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RingSignature) XXX_Merge

func (m *RingSignature) XXX_Merge(src proto.Message)

func (*RingSignature) XXX_Size

func (m *RingSignature) XXX_Size() int

func (*RingSignature) XXX_Unmarshal

func (m *RingSignature) XXX_Unmarshal(b []byte) error

type RingSignatureItem

type RingSignatureItem struct {
	Pubkey               [][]byte `protobuf:"bytes,1,rep,name=pubkey,proto3" json:"pubkey,omitempty"`
	Signature            [][]byte `protobuf:"bytes,2,rep,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

环签名中的一组签名数据

func (*RingSignatureItem) Descriptor

func (*RingSignatureItem) Descriptor() ([]byte, []int)

func (*RingSignatureItem) GetPubkey

func (m *RingSignatureItem) GetPubkey() [][]byte

func (*RingSignatureItem) GetSignature

func (m *RingSignatureItem) GetSignature() [][]byte

func (*RingSignatureItem) ProtoMessage

func (*RingSignatureItem) ProtoMessage()

func (*RingSignatureItem) Reset

func (m *RingSignatureItem) Reset()

func (*RingSignatureItem) String

func (m *RingSignatureItem) String() string

func (*RingSignatureItem) XXX_DiscardUnknown

func (m *RingSignatureItem) XXX_DiscardUnknown()

func (*RingSignatureItem) XXX_Marshal

func (m *RingSignatureItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RingSignatureItem) XXX_Merge

func (m *RingSignatureItem) XXX_Merge(src proto.Message)

func (*RingSignatureItem) XXX_Size

func (m *RingSignatureItem) XXX_Size() int

func (*RingSignatureItem) XXX_Unmarshal

func (m *RingSignatureItem) XXX_Unmarshal(b []byte) error

type SaveSeedByPw

type SaveSeedByPw struct {
	Seed                 string   `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	Passwd               string   `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

存储钱包的种子

seed : 钱包种子
passwd :钱包密码

func (*SaveSeedByPw) Descriptor

func (*SaveSeedByPw) Descriptor() ([]byte, []int)

func (*SaveSeedByPw) GetPasswd

func (m *SaveSeedByPw) GetPasswd() string

func (*SaveSeedByPw) GetSeed

func (m *SaveSeedByPw) GetSeed() string

func (*SaveSeedByPw) ProtoMessage

func (*SaveSeedByPw) ProtoMessage()

func (*SaveSeedByPw) Reset

func (m *SaveSeedByPw) Reset()

func (*SaveSeedByPw) String

func (m *SaveSeedByPw) String() string

func (*SaveSeedByPw) XXX_DiscardUnknown

func (m *SaveSeedByPw) XXX_DiscardUnknown()

func (*SaveSeedByPw) XXX_Marshal

func (m *SaveSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveSeedByPw) XXX_Merge

func (m *SaveSeedByPw) XXX_Merge(src proto.Message)

func (*SaveSeedByPw) XXX_Size

func (m *SaveSeedByPw) XXX_Size() int

func (*SaveSeedByPw) XXX_Unmarshal

func (m *SaveSeedByPw) XXX_Unmarshal(b []byte) error

type Sequence

type Sequence struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Type                 int64    `protobuf:"varint,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Sequence             int64    `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Height               int64    `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AddSeqCallback 推荐的sequence 信息

func (*Sequence) Descriptor

func (*Sequence) Descriptor() ([]byte, []int)

func (*Sequence) GetHash

func (m *Sequence) GetHash() []byte

func (*Sequence) GetHeight

func (m *Sequence) GetHeight() int64

func (*Sequence) GetSequence

func (m *Sequence) GetSequence() int64

func (*Sequence) GetType

func (m *Sequence) GetType() int64

func (*Sequence) ProtoMessage

func (*Sequence) ProtoMessage()

func (*Sequence) Reset

func (m *Sequence) Reset()

func (*Sequence) String

func (m *Sequence) String() string

func (*Sequence) XXX_DiscardUnknown

func (m *Sequence) XXX_DiscardUnknown()

func (*Sequence) XXX_Marshal

func (m *Sequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sequence) XXX_Merge

func (m *Sequence) XXX_Merge(src proto.Message)

func (*Sequence) XXX_Size

func (m *Sequence) XXX_Size() int

func (*Sequence) XXX_Unmarshal

func (m *Sequence) XXX_Unmarshal(b []byte) error

type Signature

type Signature struct {
	Ty     int32  `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	//当ty为5时,格式应该用RingSignature去解析
	Signature            []byte   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

对于一个交易组中的交易,要么全部成功,要么全部失败 这个要好好设计一下 最好交易构成一个链条[prevhash].独立的交易构成链条 只要这个组中有一个执行是出错的,那么就执行不成功 三种签名支持 ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> OnetimeED25519 ty = 5 -> RingBaseonED25519

func (*Signature) Clone

func (sig *Signature) Clone() *Signature

Clone 添加一个浅拷贝函数

func (*Signature) Descriptor

func (*Signature) Descriptor() ([]byte, []int)

func (*Signature) GetPubkey

func (m *Signature) GetPubkey() []byte

func (*Signature) GetSignature

func (m *Signature) GetSignature() []byte

func (*Signature) GetTy

func (m *Signature) GetTy() int32

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signature) XXX_Merge

func (m *Signature) XXX_Merge(src proto.Message)

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

func (m *Signature) XXX_Unmarshal(b []byte) error

type Store

type Store struct {
	// 数据存储格式名称,目前支持mavl,kvdb,kvmvcc,mpt
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// 数据存储驱动类别,目前支持leveldb,goleveldb,memdb,gobadgerdb,ssdb,pegasus
	Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"`
	// 数据文件存储路径
	DbPath string `protobuf:"bytes,3,opt,name=dbPath" json:"dbPath,omitempty"`
	// Cache大小
	DbCache int32 `protobuf:"varint,4,opt,name=dbCache" json:"dbCache,omitempty"`
	// 数据库版本
	LocalDBVersion string `protobuf:"bytes,5,opt,name=localdbVersion" json:"localdbVersion,omitempty"`
	// 数据库版本
	StoreDBVersion string `protobuf:"bytes,5,opt,name=storedbVersion" json:"storedbVersion,omitempty"`
}

Store 配置

type StoreDel

type StoreDel struct {
	StateHash            []byte   `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Height               int64    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreDel) Descriptor

func (*StoreDel) Descriptor() ([]byte, []int)

func (*StoreDel) GetHeight

func (m *StoreDel) GetHeight() int64

func (*StoreDel) GetStateHash

func (m *StoreDel) GetStateHash() []byte

func (*StoreDel) ProtoMessage

func (*StoreDel) ProtoMessage()

func (*StoreDel) Reset

func (m *StoreDel) Reset()

func (*StoreDel) String

func (m *StoreDel) String() string

func (*StoreDel) XXX_DiscardUnknown

func (m *StoreDel) XXX_DiscardUnknown()

func (*StoreDel) XXX_Marshal

func (m *StoreDel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreDel) XXX_Merge

func (m *StoreDel) XXX_Merge(src proto.Message)

func (*StoreDel) XXX_Size

func (m *StoreDel) XXX_Size() int

func (*StoreDel) XXX_Unmarshal

func (m *StoreDel) XXX_Unmarshal(b []byte) error

type StoreGet

type StoreGet struct {
	StateHash            []byte   `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Keys                 [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreGet) Descriptor

func (*StoreGet) Descriptor() ([]byte, []int)

func (*StoreGet) GetKeys

func (m *StoreGet) GetKeys() [][]byte

func (*StoreGet) GetStateHash

func (m *StoreGet) GetStateHash() []byte

func (*StoreGet) ProtoMessage

func (*StoreGet) ProtoMessage()

func (*StoreGet) Reset

func (m *StoreGet) Reset()

func (*StoreGet) String

func (m *StoreGet) String() string

func (*StoreGet) XXX_DiscardUnknown

func (m *StoreGet) XXX_DiscardUnknown()

func (*StoreGet) XXX_Marshal

func (m *StoreGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreGet) XXX_Merge

func (m *StoreGet) XXX_Merge(src proto.Message)

func (*StoreGet) XXX_Size

func (m *StoreGet) XXX_Size() int

func (*StoreGet) XXX_Unmarshal

func (m *StoreGet) XXX_Unmarshal(b []byte) error

type StoreList

type StoreList struct {
	StateHash            []byte   `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Start                []byte   `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End                  []byte   `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	Suffix               []byte   `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Count                int64    `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	Mode                 int64    `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreList) Descriptor

func (*StoreList) Descriptor() ([]byte, []int)

func (*StoreList) GetCount

func (m *StoreList) GetCount() int64

func (*StoreList) GetEnd

func (m *StoreList) GetEnd() []byte

func (*StoreList) GetMode

func (m *StoreList) GetMode() int64

func (*StoreList) GetStart

func (m *StoreList) GetStart() []byte

func (*StoreList) GetStateHash

func (m *StoreList) GetStateHash() []byte

func (*StoreList) GetSuffix

func (m *StoreList) GetSuffix() []byte

func (*StoreList) ProtoMessage

func (*StoreList) ProtoMessage()

func (*StoreList) Reset

func (m *StoreList) Reset()

func (*StoreList) String

func (m *StoreList) String() string

func (*StoreList) XXX_DiscardUnknown

func (m *StoreList) XXX_DiscardUnknown()

func (*StoreList) XXX_Marshal

func (m *StoreList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreList) XXX_Merge

func (m *StoreList) XXX_Merge(src proto.Message)

func (*StoreList) XXX_Size

func (m *StoreList) XXX_Size() int

func (*StoreList) XXX_Unmarshal

func (m *StoreList) XXX_Unmarshal(b []byte) error

type StoreListReply

type StoreListReply struct {
	Start                []byte   `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End                  []byte   `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	Suffix               []byte   `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Count                int64    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Num                  int64    `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"`
	Mode                 int64    `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
	NextKey              []byte   `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	Keys                 [][]byte `protobuf:"bytes,8,rep,name=keys,proto3" json:"keys,omitempty"`
	Values               [][]byte `protobuf:"bytes,9,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreListReply) Descriptor

func (*StoreListReply) Descriptor() ([]byte, []int)

func (*StoreListReply) GetCount

func (m *StoreListReply) GetCount() int64

func (*StoreListReply) GetEnd

func (m *StoreListReply) GetEnd() []byte

func (*StoreListReply) GetKeys

func (m *StoreListReply) GetKeys() [][]byte

func (*StoreListReply) GetMode

func (m *StoreListReply) GetMode() int64

func (*StoreListReply) GetNextKey

func (m *StoreListReply) GetNextKey() []byte

func (*StoreListReply) GetNum

func (m *StoreListReply) GetNum() int64

func (*StoreListReply) GetStart

func (m *StoreListReply) GetStart() []byte

func (*StoreListReply) GetSuffix

func (m *StoreListReply) GetSuffix() []byte

func (*StoreListReply) GetValues

func (m *StoreListReply) GetValues() [][]byte

func (*StoreListReply) ProtoMessage

func (*StoreListReply) ProtoMessage()

func (*StoreListReply) Reset

func (m *StoreListReply) Reset()

func (*StoreListReply) String

func (m *StoreListReply) String() string

func (*StoreListReply) XXX_DiscardUnknown

func (m *StoreListReply) XXX_DiscardUnknown()

func (*StoreListReply) XXX_Marshal

func (m *StoreListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreListReply) XXX_Merge

func (m *StoreListReply) XXX_Merge(src proto.Message)

func (*StoreListReply) XXX_Size

func (m *StoreListReply) XXX_Size() int

func (*StoreListReply) XXX_Unmarshal

func (m *StoreListReply) XXX_Unmarshal(b []byte) error

type StoreNode

type StoreNode struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	LeftHash             []byte   `protobuf:"bytes,3,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
	RightHash            []byte   `protobuf:"bytes,4,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
	Height               int32    `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Size                 int32    `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreNode) Descriptor

func (*StoreNode) Descriptor() ([]byte, []int)

func (*StoreNode) GetHeight

func (m *StoreNode) GetHeight() int32

func (*StoreNode) GetKey

func (m *StoreNode) GetKey() []byte

func (*StoreNode) GetLeftHash

func (m *StoreNode) GetLeftHash() []byte

func (*StoreNode) GetRightHash

func (m *StoreNode) GetRightHash() []byte

func (*StoreNode) GetSize

func (m *StoreNode) GetSize() int32

func (*StoreNode) GetValue

func (m *StoreNode) GetValue() []byte

func (*StoreNode) ProtoMessage

func (*StoreNode) ProtoMessage()

func (*StoreNode) Reset

func (m *StoreNode) Reset()

func (*StoreNode) String

func (m *StoreNode) String() string

func (*StoreNode) XXX_DiscardUnknown

func (m *StoreNode) XXX_DiscardUnknown()

func (*StoreNode) XXX_Marshal

func (m *StoreNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreNode) XXX_Merge

func (m *StoreNode) XXX_Merge(src proto.Message)

func (*StoreNode) XXX_Size

func (m *StoreNode) XXX_Size() int

func (*StoreNode) XXX_Unmarshal

func (m *StoreNode) XXX_Unmarshal(b []byte) error

type StoreReplyValue

type StoreReplyValue struct {
	Values               [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreReplyValue) Descriptor

func (*StoreReplyValue) Descriptor() ([]byte, []int)

func (*StoreReplyValue) GetValues

func (m *StoreReplyValue) GetValues() [][]byte

func (*StoreReplyValue) ProtoMessage

func (*StoreReplyValue) ProtoMessage()

func (*StoreReplyValue) Reset

func (m *StoreReplyValue) Reset()

func (*StoreReplyValue) String

func (m *StoreReplyValue) String() string

func (*StoreReplyValue) XXX_DiscardUnknown

func (m *StoreReplyValue) XXX_DiscardUnknown()

func (*StoreReplyValue) XXX_Marshal

func (m *StoreReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreReplyValue) XXX_Merge

func (m *StoreReplyValue) XXX_Merge(src proto.Message)

func (*StoreReplyValue) XXX_Size

func (m *StoreReplyValue) XXX_Size() int

func (*StoreReplyValue) XXX_Unmarshal

func (m *StoreReplyValue) XXX_Unmarshal(b []byte) error

type StoreSet

type StoreSet struct {
	StateHash            []byte      `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	KV                   []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
	Height               int64       `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*StoreSet) Descriptor

func (*StoreSet) Descriptor() ([]byte, []int)

func (*StoreSet) GetHeight

func (m *StoreSet) GetHeight() int64

func (*StoreSet) GetKV

func (m *StoreSet) GetKV() []*KeyValue

func (*StoreSet) GetStateHash

func (m *StoreSet) GetStateHash() []byte

func (*StoreSet) ProtoMessage

func (*StoreSet) ProtoMessage()

func (*StoreSet) Reset

func (m *StoreSet) Reset()

func (*StoreSet) String

func (m *StoreSet) String() string

func (*StoreSet) XXX_DiscardUnknown

func (m *StoreSet) XXX_DiscardUnknown()

func (*StoreSet) XXX_Marshal

func (m *StoreSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreSet) XXX_Merge

func (m *StoreSet) XXX_Merge(src proto.Message)

func (*StoreSet) XXX_Size

func (m *StoreSet) XXX_Size() int

func (*StoreSet) XXX_Unmarshal

func (m *StoreSet) XXX_Unmarshal(b []byte) error

type StoreSetWithSync

type StoreSetWithSync struct {
	Storeset             *StoreSet `protobuf:"bytes,1,opt,name=storeset,proto3" json:"storeset,omitempty"`
	Sync                 bool      `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"`
	Upgrade              bool      `protobuf:"varint,3,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*StoreSetWithSync) Descriptor

func (*StoreSetWithSync) Descriptor() ([]byte, []int)

func (*StoreSetWithSync) GetStoreset

func (m *StoreSetWithSync) GetStoreset() *StoreSet

func (*StoreSetWithSync) GetSync

func (m *StoreSetWithSync) GetSync() bool

func (*StoreSetWithSync) GetUpgrade

func (m *StoreSetWithSync) GetUpgrade() bool

func (*StoreSetWithSync) ProtoMessage

func (*StoreSetWithSync) ProtoMessage()

func (*StoreSetWithSync) Reset

func (m *StoreSetWithSync) Reset()

func (*StoreSetWithSync) String

func (m *StoreSetWithSync) String() string

func (*StoreSetWithSync) XXX_DiscardUnknown

func (m *StoreSetWithSync) XXX_DiscardUnknown()

func (*StoreSetWithSync) XXX_Marshal

func (m *StoreSetWithSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreSetWithSync) XXX_Merge

func (m *StoreSetWithSync) XXX_Merge(src proto.Message)

func (*StoreSetWithSync) XXX_Size

func (m *StoreSetWithSync) XXX_Size() int

func (*StoreSetWithSync) XXX_Unmarshal

func (m *StoreSetWithSync) XXX_Unmarshal(b []byte) error

type StoreValuePool

type StoreValuePool struct {
	Values               [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

用于存储db Pool数据的Value

func (*StoreValuePool) Descriptor

func (*StoreValuePool) Descriptor() ([]byte, []int)

func (*StoreValuePool) GetValues

func (m *StoreValuePool) GetValues() [][]byte

func (*StoreValuePool) ProtoMessage

func (*StoreValuePool) ProtoMessage()

func (*StoreValuePool) Reset

func (m *StoreValuePool) Reset()

func (*StoreValuePool) String

func (m *StoreValuePool) String() string

func (*StoreValuePool) XXX_DiscardUnknown

func (m *StoreValuePool) XXX_DiscardUnknown()

func (*StoreValuePool) XXX_Marshal

func (m *StoreValuePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreValuePool) XXX_Merge

func (m *StoreValuePool) XXX_Merge(src proto.Message)

func (*StoreValuePool) XXX_Size

func (m *StoreValuePool) XXX_Size() int

func (*StoreValuePool) XXX_Unmarshal

func (m *StoreValuePool) XXX_Unmarshal(b []byte) error

type StringConfig

type StringConfig struct {
	Value                string   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StringConfig) Descriptor

func (*StringConfig) Descriptor() ([]byte, []int)

func (*StringConfig) GetValue

func (m *StringConfig) GetValue() string

func (*StringConfig) ProtoMessage

func (*StringConfig) ProtoMessage()

func (*StringConfig) Reset

func (m *StringConfig) Reset()

func (*StringConfig) String

func (m *StringConfig) String() string

func (*StringConfig) XXX_DiscardUnknown

func (m *StringConfig) XXX_DiscardUnknown()

func (*StringConfig) XXX_Marshal

func (m *StringConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringConfig) XXX_Merge

func (m *StringConfig) XXX_Merge(src proto.Message)

func (*StringConfig) XXX_Size

func (m *StringConfig) XXX_Size() int

func (*StringConfig) XXX_Unmarshal

func (m *StringConfig) XXX_Unmarshal(b []byte) error

type Summary

type Summary struct {
	Sequence             uint32   `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest               []byte   `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Summary) Descriptor

func (*Summary) Descriptor() ([]byte, []int)

func (*Summary) GetDigest

func (m *Summary) GetDigest() []byte

func (*Summary) GetSequence

func (m *Summary) GetSequence() uint32

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) Reset

func (m *Summary) Reset()

func (*Summary) String

func (m *Summary) String() string

func (*Summary) XXX_DiscardUnknown

func (m *Summary) XXX_DiscardUnknown()

func (*Summary) XXX_Marshal

func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Summary) XXX_Merge

func (m *Summary) XXX_Merge(src proto.Message)

func (*Summary) XXX_Size

func (m *Summary) XXX_Size() int

func (*Summary) XXX_Unmarshal

func (m *Summary) XXX_Unmarshal(b []byte) error

type TimeStatus

type TimeStatus struct {
	NtpTime              string   `protobuf:"bytes,1,opt,name=ntpTime,proto3" json:"ntpTime,omitempty"`
	LocalTime            string   `protobuf:"bytes,2,opt,name=localTime,proto3" json:"localTime,omitempty"`
	Diff                 int64    `protobuf:"varint,3,opt,name=diff,proto3" json:"diff,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TimeStatus) Descriptor

func (*TimeStatus) Descriptor() ([]byte, []int)

func (*TimeStatus) GetDiff

func (m *TimeStatus) GetDiff() int64

func (*TimeStatus) GetLocalTime

func (m *TimeStatus) GetLocalTime() string

func (*TimeStatus) GetNtpTime

func (m *TimeStatus) GetNtpTime() string

func (*TimeStatus) ProtoMessage

func (*TimeStatus) ProtoMessage()

func (*TimeStatus) Reset

func (m *TimeStatus) Reset()

func (*TimeStatus) String

func (m *TimeStatus) String() string

func (*TimeStatus) XXX_DiscardUnknown

func (m *TimeStatus) XXX_DiscardUnknown()

func (*TimeStatus) XXX_Marshal

func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeStatus) XXX_Merge

func (m *TimeStatus) XXX_Merge(src proto.Message)

func (*TimeStatus) XXX_Size

func (m *TimeStatus) XXX_Size() int

func (*TimeStatus) XXX_Unmarshal

func (m *TimeStatus) XXX_Unmarshal(b []byte) error

type TotalAmount

type TotalAmount struct {
	// 统计的总数
	Total                int64    `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TotalAmount) Descriptor

func (*TotalAmount) Descriptor() ([]byte, []int)

func (*TotalAmount) GetTotal

func (m *TotalAmount) GetTotal() int64

func (*TotalAmount) ProtoMessage

func (*TotalAmount) ProtoMessage()

func (*TotalAmount) Reset

func (m *TotalAmount) Reset()

func (*TotalAmount) String

func (m *TotalAmount) String() string

func (*TotalAmount) XXX_DiscardUnknown

func (m *TotalAmount) XXX_DiscardUnknown()

func (*TotalAmount) XXX_Marshal

func (m *TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TotalAmount) XXX_Merge

func (m *TotalAmount) XXX_Merge(src proto.Message)

func (*TotalAmount) XXX_Size

func (m *TotalAmount) XXX_Size() int

func (*TotalAmount) XXX_Unmarshal

func (m *TotalAmount) XXX_Unmarshal(b []byte) error

type TotalFee

type TotalFee struct {
	Fee                  int64    `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
	TxCount              int64    `protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

手续费

func (*TotalFee) Descriptor

func (*TotalFee) Descriptor() ([]byte, []int)

func (*TotalFee) GetFee

func (m *TotalFee) GetFee() int64

func (*TotalFee) GetTxCount

func (m *TotalFee) GetTxCount() int64

func (*TotalFee) ProtoMessage

func (*TotalFee) ProtoMessage()

func (*TotalFee) Reset

func (m *TotalFee) Reset()

func (*TotalFee) String

func (m *TotalFee) String() string

func (*TotalFee) XXX_DiscardUnknown

func (m *TotalFee) XXX_DiscardUnknown()

func (*TotalFee) XXX_Marshal

func (m *TotalFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TotalFee) XXX_Merge

func (m *TotalFee) XXX_Merge(src proto.Message)

func (*TotalFee) XXX_Size

func (m *TotalFee) XXX_Size() int

func (*TotalFee) XXX_Unmarshal

func (m *TotalFee) XXX_Unmarshal(b []byte) error

type Transaction

type Transaction struct {
	Execer    []byte     `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	Payload   []byte     `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	Signature *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee       int64      `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
	Expire    int64      `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"`
	//随机ID,可以防止payload 相同的时候,交易重复
	Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	//对方地址,如果没有对方地址,可以为空
	To                   string   `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"`
	GroupCount           int32    `protobuf:"varint,8,opt,name=groupCount,proto3" json:"groupCount,omitempty"`
	Header               []byte   `protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"`
	Next                 []byte   `protobuf:"bytes,10,opt,name=next,proto3" json:"next,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func CacheToTxs

func CacheToTxs(caches []*TransactionCache) (txs []*Transaction)

CacheToTxs 从缓存中获取交易信息

func CallCreateTransaction

func CallCreateTransaction(execName, action string, param Message) (*Transaction, error)

CallCreateTransaction 创建一个交易

func CreateFormatTx

func CreateFormatTx(c *Chain33Config, execName string, payload []byte) (*Transaction, error)

CreateFormatTx 构造交易信息

func FormatTx

func FormatTx(c *Chain33Config, execName string, tx *Transaction) (*Transaction, error)

FormatTx 格式化tx交易

func TransactionSort

func TransactionSort(rawtxs []*Transaction) []*Transaction

TransactionSort:对主链以及平行链交易分类 构造一个map用于临时存储各个子链的交易, 按照title分类,主链交易的title设置成main 并对map按照title进行排序,不然每次遍历map顺序会不一致

func (*Transaction) ActionName

func (tx *Transaction) ActionName() string

ActionName 获取tx交易的Actionname

func (*Transaction) Amount

func (tx *Transaction) Amount() (int64, error)

Amount 解析tx的payload获取amount值

func (*Transaction) Assets

func (tx *Transaction) Assets() ([]*Asset, error)

Assets 获取交易中的资产

func (*Transaction) Check

func (tx *Transaction) Check(cfg *Chain33Config, height, minfee, maxFee int64) error

Check 交易检测

func (*Transaction) CheckSign

func (tx *Transaction) CheckSign() bool

CheckSign tx 有些时候是一个交易组

func (*Transaction) Clone

func (tx *Transaction) Clone() *Transaction

Clone copytx := proto.Clone(tx).(*Transaction) too slow

func (*Transaction) Descriptor

func (*Transaction) Descriptor() ([]byte, []int)

func (*Transaction) From

func (tx *Transaction) From() string

From 交易from地址

func (*Transaction) FullHash

func (tx *Transaction) FullHash() []byte

FullHash 交易的fullhash包含交易的签名信息, 这里做了clone 主要是因为 Encode 可能会修改 tx 的 Size 字段,可能会引起data race

func (*Transaction) GetExecer

func (m *Transaction) GetExecer() []byte

func (*Transaction) GetExpire

func (m *Transaction) GetExpire() int64

func (*Transaction) GetFee

func (m *Transaction) GetFee() int64

func (*Transaction) GetGroupCount

func (m *Transaction) GetGroupCount() int32

func (*Transaction) GetHeader

func (m *Transaction) GetHeader() []byte

func (*Transaction) GetNext

func (m *Transaction) GetNext() []byte

func (*Transaction) GetNonce

func (m *Transaction) GetNonce() int64

func (*Transaction) GetPayload

func (m *Transaction) GetPayload() []byte

func (*Transaction) GetRealFee

func (tx *Transaction) GetRealFee(minFee int64) (int64, error)

GetRealFee 获取交易真实费用

func (*Transaction) GetRealToAddr

func (tx *Transaction) GetRealToAddr() string

GetRealToAddr 解析tx的payload获取real to值

func (*Transaction) GetSignature

func (m *Transaction) GetSignature() *Signature

func (*Transaction) GetTo

func (m *Transaction) GetTo() string

func (*Transaction) GetTxFee

func (tx *Transaction) GetTxFee() int64

GetTxFee 获取交易的费用,区分单笔交易和交易组

func (*Transaction) GetTxGroup

func (tx *Transaction) GetTxGroup() (*Transactions, error)

GetTxGroup 交易组装成交易组格式

func (*Transaction) GetViewFromToAddr

func (tx *Transaction) GetViewFromToAddr() (string, string)

GetViewFromToAddr 解析tx的payload获取view from to 值

func (*Transaction) Hash

func (tx *Transaction) Hash() []byte

Hash 交易的hash不包含header的值,引入tx group的概念后,做了修改

func (*Transaction) HashSign

func (tx *Transaction) HashSign() []byte

HashSign hash 不包含签名,用户通过修改签名无法重新发送交易

func (*Transaction) IsExpire

func (tx *Transaction) IsExpire(cfg *Chain33Config, height, blocktime int64) bool

IsExpire 交易是否过期

func (*Transaction) IsWithdraw

func (tx *Transaction) IsWithdraw() bool

IsWithdraw 判断交易是withdraw交易,需要做from和to地址的swap,方便上层客户理解

func (*Transaction) JSON

func (tx *Transaction) JSON() string

JSON Transaction交易信息转成json结构体

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) SetExpire

func (tx *Transaction) SetExpire(cfg *Chain33Config, expire time.Duration)

SetExpire 设置交易过期时间

func (*Transaction) SetRealFee

func (tx *Transaction) SetRealFee(minFee int64) error

SetRealFee 设置交易真实费用

func (*Transaction) Sign

func (tx *Transaction) Sign(ty int32, priv crypto.PrivKey)

Sign 交易签名

func (*Transaction) Size

func (tx *Transaction) Size() int

Size 交易大小

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Tx

func (tx *Transaction) Tx() *Transaction

Tx 交易详情

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

type TransactionCache

type TransactionCache struct {
	*Transaction
	// contains filtered or unexported fields
}

TransactionCache 交易缓存结构

func NewTransactionCache

func NewTransactionCache(tx *Transaction) *TransactionCache

NewTransactionCache new交易缓存

func TxCacheGet

func TxCacheGet(tx *Transaction) (*TransactionCache, bool)

TxCacheGet 某些交易的cache 加入缓存中,防止重复进行解析或者计算

func TxsToCache

func TxsToCache(txs []*Transaction) (caches []*TransactionCache)

TxsToCache 缓存交易信息

func (*TransactionCache) Check

func (tx *TransactionCache) Check(cfg *Chain33Config, height, minfee, maxFee int64) error

Check 交易缓存中交易组合费用的检测

func (*TransactionCache) CheckSign

func (tx *TransactionCache) CheckSign() bool

CheckSign 检测签名

func (*TransactionCache) GetPayloadValue

func (tx *TransactionCache) GetPayloadValue() (plname string, payload reflect.Value, plerr error)

GetPayloadValue 设置payload 的cache

func (*TransactionCache) GetTotalFee

func (tx *TransactionCache) GetTotalFee(minFee int64) (int64, error)

GetTotalFee 获取交易真实费用

func (*TransactionCache) GetTxGroup

func (tx *TransactionCache) GetTxGroup() (*Transactions, error)

GetTxGroup 获取交易组

func (*TransactionCache) Hash

func (tx *TransactionCache) Hash() []byte

Hash 交易hash

func (*TransactionCache) SetPayloadValue

func (tx *TransactionCache) SetPayloadValue(plname string, payload reflect.Value, plerr error)

SetPayloadValue 设置payload 的cache

func (*TransactionCache) Size

func (tx *TransactionCache) Size() int

Size 交易缓存的大小

func (*TransactionCache) Tx

func (tx *TransactionCache) Tx() *Transaction

Tx 交易缓存中tx信息

type TransactionDetail

type TransactionDetail struct {
	Tx                   *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Receipt              *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Proofs               [][]byte     `protobuf:"bytes,3,rep,name=proofs,proto3" json:"proofs,omitempty"`
	Height               int64        `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Index                int64        `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	Blocktime            int64        `protobuf:"varint,6,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	Amount               int64        `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
	Fromaddr             string       `protobuf:"bytes,8,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
	ActionName           string       `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
	Assets               []*Asset     `protobuf:"bytes,10,rep,name=assets,proto3" json:"assets,omitempty"`
	TxProofs             []*TxProof   `protobuf:"bytes,11,rep,name=txProofs,proto3" json:"txProofs,omitempty"`
	FullHash             []byte       `protobuf:"bytes,12,opt,name=fullHash,proto3" json:"fullHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*TransactionDetail) Descriptor

func (*TransactionDetail) Descriptor() ([]byte, []int)

func (*TransactionDetail) GetActionName

func (m *TransactionDetail) GetActionName() string

func (*TransactionDetail) GetAmount

func (m *TransactionDetail) GetAmount() int64

func (*TransactionDetail) GetAssets

func (m *TransactionDetail) GetAssets() []*Asset

func (*TransactionDetail) GetBlocktime

func (m *TransactionDetail) GetBlocktime() int64

func (*TransactionDetail) GetFromaddr

func (m *TransactionDetail) GetFromaddr() string

func (*TransactionDetail) GetFullHash

func (m *TransactionDetail) GetFullHash() []byte

func (*TransactionDetail) GetHeight

func (m *TransactionDetail) GetHeight() int64

func (*TransactionDetail) GetIndex

func (m *TransactionDetail) GetIndex() int64

func (*TransactionDetail) GetProofs

func (m *TransactionDetail) GetProofs() [][]byte

func (*TransactionDetail) GetReceipt

func (m *TransactionDetail) GetReceipt() *ReceiptData

func (*TransactionDetail) GetTx

func (m *TransactionDetail) GetTx() *Transaction

func (*TransactionDetail) GetTxProofs

func (m *TransactionDetail) GetTxProofs() []*TxProof

func (*TransactionDetail) ProtoMessage

func (*TransactionDetail) ProtoMessage()

func (*TransactionDetail) Reset

func (m *TransactionDetail) Reset()

func (*TransactionDetail) String

func (m *TransactionDetail) String() string

func (*TransactionDetail) XXX_DiscardUnknown

func (m *TransactionDetail) XXX_DiscardUnknown()

func (*TransactionDetail) XXX_Marshal

func (m *TransactionDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionDetail) XXX_Merge

func (m *TransactionDetail) XXX_Merge(src proto.Message)

func (*TransactionDetail) XXX_Size

func (m *TransactionDetail) XXX_Size() int

func (*TransactionDetail) XXX_Unmarshal

func (m *TransactionDetail) XXX_Unmarshal(b []byte) error

type TransactionDetails

type TransactionDetails struct {
	Txs                  []*TransactionDetail `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*TransactionDetails) Descriptor

func (*TransactionDetails) Descriptor() ([]byte, []int)

func (*TransactionDetails) GetTxs

func (m *TransactionDetails) GetTxs() []*TransactionDetail

func (*TransactionDetails) ProtoMessage

func (*TransactionDetails) ProtoMessage()

func (*TransactionDetails) Reset

func (m *TransactionDetails) Reset()

func (*TransactionDetails) String

func (m *TransactionDetails) String() string

func (*TransactionDetails) XXX_DiscardUnknown

func (m *TransactionDetails) XXX_DiscardUnknown()

func (*TransactionDetails) XXX_Marshal

func (m *TransactionDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionDetails) XXX_Merge

func (m *TransactionDetails) XXX_Merge(src proto.Message)

func (*TransactionDetails) XXX_Size

func (m *TransactionDetails) XXX_Size() int

func (*TransactionDetails) XXX_Unmarshal

func (m *TransactionDetails) XXX_Unmarshal(b []byte) error

type Transactions

type Transactions struct {
	Txs                  []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func CreateTxGroup

func CreateTxGroup(txs []*Transaction, feeRate int64) (*Transactions, error)

CreateTxGroup 创建组交易, feeRate传入交易费率, 建议通过系统GetProperFee获取

func (*Transactions) Check

func (txgroup *Transactions) Check(cfg *Chain33Config, height, minfee, maxFee int64) error

Check height == 0 的时候,不做检查

func (*Transactions) CheckSign

func (txgroup *Transactions) CheckSign() bool

CheckSign 检测交易组的签名

func (*Transactions) CheckWithFork

func (txgroup *Transactions) CheckWithFork(cfg *Chain33Config, checkFork, paraFork bool, height, minfee, maxFee int64) error

CheckWithFork 和fork 无关的有个检查函数

func (*Transactions) Descriptor

func (*Transactions) Descriptor() ([]byte, []int)

func (*Transactions) GetTxGroup

func (txgroup *Transactions) GetTxGroup() *Transactions

GetTxGroup 获取交易组

func (*Transactions) GetTxs

func (m *Transactions) GetTxs() []*Transaction

func (*Transactions) IsExpire

func (txgroup *Transactions) IsExpire(cfg *Chain33Config, height, blocktime int64) bool

IsExpire 交易是否过期

func (*Transactions) ProtoMessage

func (*Transactions) ProtoMessage()

func (*Transactions) RebuiltGroup

func (txgroup *Transactions) RebuiltGroup()

RebuiltGroup 交易内容有变化时需要重新构建交易组

func (*Transactions) Reset

func (m *Transactions) Reset()

func (*Transactions) SetExpire

func (txgroup *Transactions) SetExpire(cfg *Chain33Config, n int, expire time.Duration)

SetExpire 设置交易组中交易的过期时间

func (*Transactions) SignN

func (txgroup *Transactions) SignN(n int, ty int32, priv crypto.PrivKey) error

SignN 对交易组的第n笔交易签名

func (*Transactions) String

func (m *Transactions) String() string

func (*Transactions) Tx

func (txgroup *Transactions) Tx() *Transaction

Tx 这比用于检查的交易,包含了所有的交易。 主要是为了兼容原来的设计

func (*Transactions) XXX_DiscardUnknown

func (m *Transactions) XXX_DiscardUnknown()

func (*Transactions) XXX_Marshal

func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transactions) XXX_Merge

func (m *Transactions) XXX_Merge(src proto.Message)

func (*Transactions) XXX_Size

func (m *Transactions) XXX_Size() int

func (*Transactions) XXX_Unmarshal

func (m *Transactions) XXX_Unmarshal(b []byte) error

type TxDetail

type TxDetail struct {
	Index                uint32       `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Tx                   *Transaction `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
	Receipt              *ReceiptData `protobuf:"bytes,3,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Proofs               [][]byte     `protobuf:"bytes,4,rep,name=proofs,proto3" json:"proofs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

交易的详情: index:本交易在block中索引值,用于proof的证明 tx:本交易内容 receipt:本交易在主链的执行回执 proofs:本交易hash在block中merkel中的路径

func (*TxDetail) Descriptor

func (*TxDetail) Descriptor() ([]byte, []int)

func (*TxDetail) GetIndex

func (m *TxDetail) GetIndex() uint32

func (*TxDetail) GetProofs

func (m *TxDetail) GetProofs() [][]byte

func (*TxDetail) GetReceipt

func (m *TxDetail) GetReceipt() *ReceiptData

func (*TxDetail) GetTx

func (m *TxDetail) GetTx() *Transaction

func (*TxDetail) ProtoMessage

func (*TxDetail) ProtoMessage()

func (*TxDetail) Reset

func (m *TxDetail) Reset()

func (*TxDetail) String

func (m *TxDetail) String() string

func (*TxDetail) XXX_DiscardUnknown

func (m *TxDetail) XXX_DiscardUnknown()

func (*TxDetail) XXX_Marshal

func (m *TxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxDetail) XXX_Merge

func (m *TxDetail) XXX_Merge(src proto.Message)

func (*TxDetail) XXX_Size

func (m *TxDetail) XXX_Size() int

func (*TxDetail) XXX_Unmarshal

func (m *TxDetail) XXX_Unmarshal(b []byte) error

type TxGroup

type TxGroup interface {
	Tx() *Transaction
	GetTxGroup() (*Transactions, error)
	CheckSign() bool
}

TxGroup 交易组的接口,Transactions 和 Transaction 都符合这个接口

type TxHash

type TxHash struct {
	Hash                 string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TxHash) Descriptor

func (*TxHash) Descriptor() ([]byte, []int)

func (*TxHash) GetHash

func (m *TxHash) GetHash() string

func (*TxHash) ProtoMessage

func (*TxHash) ProtoMessage()

func (*TxHash) Reset

func (m *TxHash) Reset()

func (*TxHash) String

func (m *TxHash) String() string

func (*TxHash) XXX_DiscardUnknown

func (m *TxHash) XXX_DiscardUnknown()

func (*TxHash) XXX_Marshal

func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxHash) XXX_Merge

func (m *TxHash) XXX_Merge(src proto.Message)

func (*TxHash) XXX_Size

func (m *TxHash) XXX_Size() int

func (*TxHash) XXX_Unmarshal

func (m *TxHash) XXX_Unmarshal(b []byte) error

type TxHashList

type TxHashList struct {
	Hashes               [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	Count                int64    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Expire               []int64  `protobuf:"varint,3,rep,packed,name=expire,proto3" json:"expire,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TxHashList) Descriptor

func (*TxHashList) Descriptor() ([]byte, []int)

func (*TxHashList) GetCount

func (m *TxHashList) GetCount() int64

func (*TxHashList) GetExpire

func (m *TxHashList) GetExpire() []int64

func (*TxHashList) GetHashes

func (m *TxHashList) GetHashes() [][]byte

func (*TxHashList) ProtoMessage

func (*TxHashList) ProtoMessage()

func (*TxHashList) Reset

func (m *TxHashList) Reset()

func (*TxHashList) String

func (m *TxHashList) String() string

func (*TxHashList) XXX_DiscardUnknown

func (m *TxHashList) XXX_DiscardUnknown()

func (*TxHashList) XXX_Marshal

func (m *TxHashList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxHashList) XXX_Merge

func (m *TxHashList) XXX_Merge(src proto.Message)

func (*TxHashList) XXX_Size

func (m *TxHashList) XXX_Size() int

func (*TxHashList) XXX_Unmarshal

func (m *TxHashList) XXX_Unmarshal(b []byte) error

type TxProof

type TxProof struct {
	Proofs               [][]byte `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
	Index                uint32   `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	RootHash             []byte   `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

使用多层merkle树之后的proof证明结构体

func (*TxProof) Descriptor

func (*TxProof) Descriptor() ([]byte, []int)

func (*TxProof) GetIndex

func (m *TxProof) GetIndex() uint32

func (*TxProof) GetProofs

func (m *TxProof) GetProofs() [][]byte

func (*TxProof) GetRootHash

func (m *TxProof) GetRootHash() []byte

func (*TxProof) ProtoMessage

func (*TxProof) ProtoMessage()

func (*TxProof) Reset

func (m *TxProof) Reset()

func (*TxProof) String

func (m *TxProof) String() string

func (*TxProof) XXX_DiscardUnknown

func (m *TxProof) XXX_DiscardUnknown()

func (*TxProof) XXX_Marshal

func (m *TxProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxProof) XXX_Merge

func (m *TxProof) XXX_Merge(src proto.Message)

func (*TxProof) XXX_Size

func (m *TxProof) XXX_Size() int

func (*TxProof) XXX_Unmarshal

func (m *TxProof) XXX_Unmarshal(b []byte) error

type TxResult

type TxResult struct {
	Height               int64        `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Index                int32        `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Tx                   *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	Receiptdate          *ReceiptData `protobuf:"bytes,4,opt,name=receiptdate,proto3" json:"receiptdate,omitempty"`
	Blocktime            int64        `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	ActionName           string       `protobuf:"bytes,6,opt,name=actionName,proto3" json:"actionName,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*TxResult) Descriptor

func (*TxResult) Descriptor() ([]byte, []int)

func (*TxResult) GetActionName

func (m *TxResult) GetActionName() string

func (*TxResult) GetBlocktime

func (m *TxResult) GetBlocktime() int64

func (*TxResult) GetHeight

func (m *TxResult) GetHeight() int64

func (*TxResult) GetIndex

func (m *TxResult) GetIndex() int32

func (*TxResult) GetReceiptdate

func (m *TxResult) GetReceiptdate() *ReceiptData

func (*TxResult) GetTx

func (m *TxResult) GetTx() *Transaction

func (*TxResult) ProtoMessage

func (*TxResult) ProtoMessage()

func (*TxResult) Reset

func (m *TxResult) Reset()

func (*TxResult) String

func (m *TxResult) String() string

func (*TxResult) XXX_DiscardUnknown

func (m *TxResult) XXX_DiscardUnknown()

func (*TxResult) XXX_Marshal

func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxResult) XXX_Merge

func (m *TxResult) XXX_Merge(src proto.Message)

func (*TxResult) XXX_Size

func (m *TxResult) XXX_Size() int

func (*TxResult) XXX_Unmarshal

func (m *TxResult) XXX_Unmarshal(b []byte) error

type UnimplementedChain33Server

type UnimplementedChain33Server struct {
}

UnimplementedChain33Server can be embedded to have forward compatible implementations.

func (*UnimplementedChain33Server) CloseQueue

func (*UnimplementedChain33Server) CloseQueue(ctx context.Context, req *ReqNil) (*Reply, error)

func (*UnimplementedChain33Server) CreateNoBalanceTransaction

func (*UnimplementedChain33Server) CreateNoBalanceTransaction(ctx context.Context, req *NoBalanceTx) (*ReplySignRawTx, error)

func (*UnimplementedChain33Server) CreateNoBalanceTxs

func (*UnimplementedChain33Server) CreateNoBalanceTxs(ctx context.Context, req *NoBalanceTxs) (*ReplySignRawTx, error)

func (*UnimplementedChain33Server) CreateRawTransaction

func (*UnimplementedChain33Server) CreateRawTransaction(ctx context.Context, req *CreateTx) (*UnsignTx, error)

func (*UnimplementedChain33Server) CreateRawTxGroup

func (*UnimplementedChain33Server) CreateTransaction

func (*UnimplementedChain33Server) CreateTransaction(ctx context.Context, req *CreateTxIn) (*UnsignTx, error)

func (*UnimplementedChain33Server) DumpPrivkey

func (*UnimplementedChain33Server) DumpPrivkeysFile

func (*UnimplementedChain33Server) DumpPrivkeysFile(ctx context.Context, req *ReqPrivkeysFile) (*Reply, error)

func (*UnimplementedChain33Server) ExecWallet

func (*UnimplementedChain33Server) GenSeed

func (*UnimplementedChain33Server) GetAccounts

func (*UnimplementedChain33Server) GetAddrOverview

func (*UnimplementedChain33Server) GetAddrOverview(ctx context.Context, req *ReqAddr) (*AddrOverview, error)

func (*UnimplementedChain33Server) GetAllExecBalance

func (*UnimplementedChain33Server) GetBalance

func (*UnimplementedChain33Server) GetBlockByHashes

func (*UnimplementedChain33Server) GetBlockByHashes(ctx context.Context, req *ReqHashes) (*BlockDetails, error)

func (*UnimplementedChain33Server) GetBlockBySeq

func (*UnimplementedChain33Server) GetBlockBySeq(ctx context.Context, req *Int64) (*BlockSeq, error)

func (*UnimplementedChain33Server) GetBlockHash

func (*UnimplementedChain33Server) GetBlockHash(ctx context.Context, req *ReqInt) (*ReplyHash, error)

func (*UnimplementedChain33Server) GetBlockOverview

func (*UnimplementedChain33Server) GetBlockOverview(ctx context.Context, req *ReqHash) (*BlockOverview, error)

func (*UnimplementedChain33Server) GetBlocks

func (*UnimplementedChain33Server) GetBlocks(ctx context.Context, req *ReqBlocks) (*Reply, error)

func (*UnimplementedChain33Server) GetFatalFailure

func (*UnimplementedChain33Server) GetFatalFailure(ctx context.Context, req *ReqNil) (*Int32, error)

func (*UnimplementedChain33Server) GetFork

func (*UnimplementedChain33Server) GetFork(ctx context.Context, req *ReqKey) (*Int64, error)

func (*UnimplementedChain33Server) GetHeaders

func (*UnimplementedChain33Server) GetHeaders(ctx context.Context, req *ReqBlocks) (*Headers, error)

func (*UnimplementedChain33Server) GetHexTxByHash

func (*UnimplementedChain33Server) GetHexTxByHash(ctx context.Context, req *ReqHash) (*HexTx, error)

func (*UnimplementedChain33Server) GetLastBlockSequence

func (*UnimplementedChain33Server) GetLastBlockSequence(ctx context.Context, req *ReqNil) (*Int64, error)

func (*UnimplementedChain33Server) GetLastHeader

func (*UnimplementedChain33Server) GetLastHeader(ctx context.Context, req *ReqNil) (*Header, error)

func (*UnimplementedChain33Server) GetLastMemPool

func (*UnimplementedChain33Server) GetLastMemPool(ctx context.Context, req *ReqNil) (*ReplyTxList, error)

func (*UnimplementedChain33Server) GetMemPool

func (*UnimplementedChain33Server) GetParaTxByHeight

func (*UnimplementedChain33Server) GetParaTxByTitle

func (*UnimplementedChain33Server) GetPeerInfo

func (*UnimplementedChain33Server) GetProperFee

func (*UnimplementedChain33Server) GetSeed

func (*UnimplementedChain33Server) GetSequenceByHash

func (*UnimplementedChain33Server) GetSequenceByHash(ctx context.Context, req *ReqHash) (*Int64, error)

func (*UnimplementedChain33Server) GetTransactionByAddr

func (*UnimplementedChain33Server) GetTransactionByAddr(ctx context.Context, req *ReqAddr) (*ReplyTxInfos, error)

func (*UnimplementedChain33Server) GetTransactionByHashes

func (*UnimplementedChain33Server) GetTransactionByHashes(ctx context.Context, req *ReqHashes) (*TransactionDetails, error)

func (*UnimplementedChain33Server) GetWalletStatus

func (*UnimplementedChain33Server) GetWalletStatus(ctx context.Context, req *ReqNil) (*WalletStatus, error)

func (*UnimplementedChain33Server) ImportPrivkey

func (*UnimplementedChain33Server) ImportPrivkeysFile

func (*UnimplementedChain33Server) ImportPrivkeysFile(ctx context.Context, req *ReqPrivkeysFile) (*Reply, error)

func (*UnimplementedChain33Server) IsNtpClockSync

func (*UnimplementedChain33Server) IsNtpClockSync(ctx context.Context, req *ReqNil) (*Reply, error)

func (*UnimplementedChain33Server) IsSync

func (*UnimplementedChain33Server) LoadParaTxByTitle

func (*UnimplementedChain33Server) Lock

func (*UnimplementedChain33Server) MergeBalance

func (*UnimplementedChain33Server) NetInfo

func (*UnimplementedChain33Server) NewAccount

func (*UnimplementedChain33Server) QueryChain

func (*UnimplementedChain33Server) QueryConsensus

func (*UnimplementedChain33Server) QueryConsensus(ctx context.Context, req *ChainExecutor) (*Reply, error)

func (*UnimplementedChain33Server) QueryRandNum

func (*UnimplementedChain33Server) QueryTransaction

func (*UnimplementedChain33Server) QueryTransaction(ctx context.Context, req *ReqHash) (*TransactionDetail, error)

func (*UnimplementedChain33Server) SaveSeed

func (*UnimplementedChain33Server) SendToAddress

func (*UnimplementedChain33Server) SendTransaction

func (*UnimplementedChain33Server) SendTransaction(ctx context.Context, req *Transaction) (*Reply, error)

func (*UnimplementedChain33Server) SetLabl

func (*UnimplementedChain33Server) SetPasswd

func (*UnimplementedChain33Server) SetTxFee

func (*UnimplementedChain33Server) SignRawTx

func (*UnimplementedChain33Server) UnLock

func (*UnimplementedChain33Server) Version

func (*UnimplementedChain33Server) WalletTransactionList

type UnimplementedP2PgserviceServer

type UnimplementedP2PgserviceServer struct {
}

UnimplementedP2PgserviceServer can be embedded to have forward compatible implementations.

func (*UnimplementedP2PgserviceServer) BroadCastBlock

func (*UnimplementedP2PgserviceServer) BroadCastBlock(ctx context.Context, req *P2PBlock) (*Reply, error)

func (*UnimplementedP2PgserviceServer) BroadCastTx

func (*UnimplementedP2PgserviceServer) BroadCastTx(ctx context.Context, req *P2PTx) (*Reply, error)

func (*UnimplementedP2PgserviceServer) CollectInPeers

func (*UnimplementedP2PgserviceServer) CollectInPeers(ctx context.Context, req *P2PPing) (*PeerList, error)

func (*UnimplementedP2PgserviceServer) CollectInPeers2

func (*UnimplementedP2PgserviceServer) CollectInPeers2(ctx context.Context, req *P2PPing) (*PeersReply, error)

func (*UnimplementedP2PgserviceServer) GetAddr

func (*UnimplementedP2PgserviceServer) GetAddrList

func (*UnimplementedP2PgserviceServer) GetBlocks

func (*UnimplementedP2PgserviceServer) GetData

func (*UnimplementedP2PgserviceServer) GetHeaders

func (*UnimplementedP2PgserviceServer) GetMemPool

func (*UnimplementedP2PgserviceServer) GetPeerInfo

func (*UnimplementedP2PgserviceServer) Ping

func (*UnimplementedP2PgserviceServer) ServerStreamRead

func (*UnimplementedP2PgserviceServer) ServerStreamSend

func (*UnimplementedP2PgserviceServer) SoftVersion

func (*UnimplementedP2PgserviceServer) SoftVersion(ctx context.Context, req *P2PPing) (*Reply, error)

func (*UnimplementedP2PgserviceServer) Version

func (*UnimplementedP2PgserviceServer) Version2

type UnsignTx

type UnsignTx struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnsignTx) Descriptor

func (*UnsignTx) Descriptor() ([]byte, []int)

func (*UnsignTx) GetData

func (m *UnsignTx) GetData() []byte

func (*UnsignTx) ProtoMessage

func (*UnsignTx) ProtoMessage()

func (*UnsignTx) Reset

func (m *UnsignTx) Reset()

func (*UnsignTx) String

func (m *UnsignTx) String() string

func (*UnsignTx) XXX_DiscardUnknown

func (m *UnsignTx) XXX_DiscardUnknown()

func (*UnsignTx) XXX_Marshal

func (m *UnsignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnsignTx) XXX_Merge

func (m *UnsignTx) XXX_Merge(src proto.Message)

func (*UnsignTx) XXX_Size

func (m *UnsignTx) XXX_Size() int

func (*UnsignTx) XXX_Unmarshal

func (m *UnsignTx) XXX_Unmarshal(b []byte) error

type UpgradeMeta

type UpgradeMeta struct {
	Starting             bool     `protobuf:"varint,1,opt,name=starting,proto3" json:"starting,omitempty"`
	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Height               int64    `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpgradeMeta) Descriptor

func (*UpgradeMeta) Descriptor() ([]byte, []int)

func (*UpgradeMeta) GetHeight

func (m *UpgradeMeta) GetHeight() int64

func (*UpgradeMeta) GetStarting

func (m *UpgradeMeta) GetStarting() bool

func (*UpgradeMeta) GetVersion

func (m *UpgradeMeta) GetVersion() string

func (*UpgradeMeta) ProtoMessage

func (*UpgradeMeta) ProtoMessage()

func (*UpgradeMeta) Reset

func (m *UpgradeMeta) Reset()

func (*UpgradeMeta) String

func (m *UpgradeMeta) String() string

func (*UpgradeMeta) XXX_DiscardUnknown

func (m *UpgradeMeta) XXX_DiscardUnknown()

func (*UpgradeMeta) XXX_Marshal

func (m *UpgradeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpgradeMeta) XXX_Merge

func (m *UpgradeMeta) XXX_Merge(src proto.Message)

func (*UpgradeMeta) XXX_Size

func (m *UpgradeMeta) XXX_Size() int

func (*UpgradeMeta) XXX_Unmarshal

func (m *UpgradeMeta) XXX_Unmarshal(b []byte) error

type UserWrite

type UserWrite struct {
	Topic                string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Content              string   `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserWrite) Descriptor

func (*UserWrite) Descriptor() ([]byte, []int)

func (*UserWrite) GetContent

func (m *UserWrite) GetContent() string

func (*UserWrite) GetTopic

func (m *UserWrite) GetTopic() string

func (*UserWrite) ProtoMessage

func (*UserWrite) ProtoMessage()

func (*UserWrite) Reset

func (m *UserWrite) Reset()

func (*UserWrite) String

func (m *UserWrite) String() string

func (*UserWrite) XXX_DiscardUnknown

func (m *UserWrite) XXX_DiscardUnknown()

func (*UserWrite) XXX_Marshal

func (m *UserWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserWrite) XXX_Merge

func (m *UserWrite) XXX_Merge(src proto.Message)

func (*UserWrite) XXX_Size

func (m *UserWrite) XXX_Size() int

func (*UserWrite) XXX_Unmarshal

func (m *UserWrite) XXX_Unmarshal(b []byte) error

type VersionInfo

type VersionInfo struct {
	Title                string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	App                  string   `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	Chain33              string   `protobuf:"bytes,3,opt,name=chain33,proto3" json:"chain33,omitempty"`
	LocalDb              string   `protobuf:"bytes,4,opt,name=localDb,proto3" json:"localDb,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* 当前软件版本信息

func (*VersionInfo) Descriptor

func (*VersionInfo) Descriptor() ([]byte, []int)

func (*VersionInfo) GetApp

func (m *VersionInfo) GetApp() string

func (*VersionInfo) GetChain33

func (m *VersionInfo) GetChain33() string

func (*VersionInfo) GetLocalDb

func (m *VersionInfo) GetLocalDb() string

func (*VersionInfo) GetTitle

func (m *VersionInfo) GetTitle() string

func (*VersionInfo) ProtoMessage

func (*VersionInfo) ProtoMessage()

func (*VersionInfo) Reset

func (m *VersionInfo) Reset()

func (*VersionInfo) String

func (m *VersionInfo) String() string

func (*VersionInfo) XXX_DiscardUnknown

func (m *VersionInfo) XXX_DiscardUnknown()

func (*VersionInfo) XXX_Marshal

func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionInfo) XXX_Merge

func (m *VersionInfo) XXX_Merge(src proto.Message)

func (*VersionInfo) XXX_Size

func (m *VersionInfo) XXX_Size() int

func (*VersionInfo) XXX_Unmarshal

func (m *VersionInfo) XXX_Unmarshal(b []byte) error

type Versions

type Versions struct {
	P2Pversion           int32    `protobuf:"varint,1,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
	Softversion          string   `protobuf:"bytes,2,opt,name=softversion,proto3" json:"softversion,omitempty"`
	Peername             string   `protobuf:"bytes,3,opt,name=peername,proto3" json:"peername,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* p2p 协议和软件版本

func (*Versions) Descriptor

func (*Versions) Descriptor() ([]byte, []int)

func (*Versions) GetP2Pversion

func (m *Versions) GetP2Pversion() int32

func (*Versions) GetPeername

func (m *Versions) GetPeername() string

func (*Versions) GetSoftversion

func (m *Versions) GetSoftversion() string

func (*Versions) ProtoMessage

func (*Versions) ProtoMessage()

func (*Versions) Reset

func (m *Versions) Reset()

func (*Versions) String

func (m *Versions) String() string

func (*Versions) XXX_DiscardUnknown

func (m *Versions) XXX_DiscardUnknown()

func (*Versions) XXX_Marshal

func (m *Versions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Versions) XXX_Merge

func (m *Versions) XXX_Merge(src proto.Message)

func (*Versions) XXX_Size

func (m *Versions) XXX_Size() int

func (*Versions) XXX_Unmarshal

func (m *Versions) XXX_Unmarshal(b []byte) error

type ViewChange

type ViewChange struct {
	Viewchanger          uint32   `protobuf:"varint,1,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
	Digest               []byte   `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ViewChange) Descriptor

func (*ViewChange) Descriptor() ([]byte, []int)

func (*ViewChange) GetDigest

func (m *ViewChange) GetDigest() []byte

func (*ViewChange) GetViewchanger

func (m *ViewChange) GetViewchanger() uint32

func (*ViewChange) ProtoMessage

func (*ViewChange) ProtoMessage()

func (*ViewChange) Reset

func (m *ViewChange) Reset()

func (*ViewChange) String

func (m *ViewChange) String() string

func (*ViewChange) XXX_DiscardUnknown

func (m *ViewChange) XXX_DiscardUnknown()

func (*ViewChange) XXX_Marshal

func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ViewChange) XXX_Merge

func (m *ViewChange) XXX_Merge(src proto.Message)

func (*ViewChange) XXX_Size

func (m *ViewChange) XXX_Size() int

func (*ViewChange) XXX_Unmarshal

func (m *ViewChange) XXX_Unmarshal(b []byte) error

type Wallet

type Wallet struct {
	// 交易发送最低手续费,单位0.00000001BTY(1e-8),默认100000,即0.001BTY
	MinFee int64 `protobuf:"varint,1,opt,name=minFee" json:"minFee,omitempty"`
	// walletdb驱动名
	Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"`
	// walletdb路径
	DbPath string `protobuf:"bytes,3,opt,name=dbPath" json:"dbPath,omitempty"`
	// walletdb缓存大小
	DbCache int32 `protobuf:"varint,4,opt,name=dbCache" json:"dbCache,omitempty"`
	// 钱包发送交易签名方式
	SignType string `protobuf:"bytes,5,opt,name=signType" json:"signType,omitempty"`
}

Wallet 配置

type WalletAccount

type WalletAccount struct {
	Acc                  *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WalletAccount) Descriptor

func (*WalletAccount) Descriptor() ([]byte, []int)

func (*WalletAccount) GetAcc

func (m *WalletAccount) GetAcc() *Account

func (*WalletAccount) GetLabel

func (m *WalletAccount) GetLabel() string

func (*WalletAccount) ProtoMessage

func (*WalletAccount) ProtoMessage()

func (*WalletAccount) Reset

func (m *WalletAccount) Reset()

func (*WalletAccount) String

func (m *WalletAccount) String() string

func (*WalletAccount) XXX_DiscardUnknown

func (m *WalletAccount) XXX_DiscardUnknown()

func (*WalletAccount) XXX_Marshal

func (m *WalletAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletAccount) XXX_Merge

func (m *WalletAccount) XXX_Merge(src proto.Message)

func (*WalletAccount) XXX_Size

func (m *WalletAccount) XXX_Size() int

func (*WalletAccount) XXX_Unmarshal

func (m *WalletAccount) XXX_Unmarshal(b []byte) error

type WalletAccountStore

type WalletAccountStore struct {
	Privkey              string   `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Addr                 string   `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	TimeStamp            string   `protobuf:"bytes,4,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

钱包模块存贮的账户信息

privkey : 账户地址对应的私钥
label :账户地址对应的标签
addr :账户地址
timeStamp :创建账户时的时标

func (*WalletAccountStore) Descriptor

func (*WalletAccountStore) Descriptor() ([]byte, []int)

func (*WalletAccountStore) GetAddr

func (m *WalletAccountStore) GetAddr() string

func (*WalletAccountStore) GetLabel

func (m *WalletAccountStore) GetLabel() string

func (*WalletAccountStore) GetPrivkey

func (m *WalletAccountStore) GetPrivkey() string

func (*WalletAccountStore) GetTimeStamp

func (m *WalletAccountStore) GetTimeStamp() string

func (*WalletAccountStore) ProtoMessage

func (*WalletAccountStore) ProtoMessage()

func (*WalletAccountStore) Reset

func (m *WalletAccountStore) Reset()

func (*WalletAccountStore) String

func (m *WalletAccountStore) String() string

func (*WalletAccountStore) XXX_DiscardUnknown

func (m *WalletAccountStore) XXX_DiscardUnknown()

func (*WalletAccountStore) XXX_Marshal

func (m *WalletAccountStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletAccountStore) XXX_Merge

func (m *WalletAccountStore) XXX_Merge(src proto.Message)

func (*WalletAccountStore) XXX_Size

func (m *WalletAccountStore) XXX_Size() int

func (*WalletAccountStore) XXX_Unmarshal

func (m *WalletAccountStore) XXX_Unmarshal(b []byte) error

type WalletAccounts

type WalletAccounts struct {
	Wallets              []*WalletAccount `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*WalletAccounts) Descriptor

func (*WalletAccounts) Descriptor() ([]byte, []int)

func (*WalletAccounts) GetWallets

func (m *WalletAccounts) GetWallets() []*WalletAccount

func (*WalletAccounts) ProtoMessage

func (*WalletAccounts) ProtoMessage()

func (*WalletAccounts) Reset

func (m *WalletAccounts) Reset()

func (*WalletAccounts) String

func (m *WalletAccounts) String() string

func (*WalletAccounts) XXX_DiscardUnknown

func (m *WalletAccounts) XXX_DiscardUnknown()

func (*WalletAccounts) XXX_Marshal

func (m *WalletAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletAccounts) XXX_Merge

func (m *WalletAccounts) XXX_Merge(src proto.Message)

func (*WalletAccounts) XXX_Size

func (m *WalletAccounts) XXX_Size() int

func (*WalletAccounts) XXX_Unmarshal

func (m *WalletAccounts) XXX_Unmarshal(b []byte) error

type WalletPwHash

type WalletPwHash struct {
	PwHash               []byte   `protobuf:"bytes,1,opt,name=pwHash,proto3" json:"pwHash,omitempty"`
	Randstr              string   `protobuf:"bytes,2,opt,name=randstr,proto3" json:"randstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

钱包模块通过一个随机值对钱包密码加密

pwHash : 对钱包密码和一个随机值组合进行哈希计算
randstr :对钱包密码加密的一个随机值

func (*WalletPwHash) Descriptor

func (*WalletPwHash) Descriptor() ([]byte, []int)

func (*WalletPwHash) GetPwHash

func (m *WalletPwHash) GetPwHash() []byte

func (*WalletPwHash) GetRandstr

func (m *WalletPwHash) GetRandstr() string

func (*WalletPwHash) ProtoMessage

func (*WalletPwHash) ProtoMessage()

func (*WalletPwHash) Reset

func (m *WalletPwHash) Reset()

func (*WalletPwHash) String

func (m *WalletPwHash) String() string

func (*WalletPwHash) XXX_DiscardUnknown

func (m *WalletPwHash) XXX_DiscardUnknown()

func (*WalletPwHash) XXX_Marshal

func (m *WalletPwHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletPwHash) XXX_Merge

func (m *WalletPwHash) XXX_Merge(src proto.Message)

func (*WalletPwHash) XXX_Size

func (m *WalletPwHash) XXX_Size() int

func (*WalletPwHash) XXX_Unmarshal

func (m *WalletPwHash) XXX_Unmarshal(b []byte) error

type WalletStatus

type WalletStatus struct {
	IsWalletLock         bool     `protobuf:"varint,1,opt,name=isWalletLock,proto3" json:"isWalletLock,omitempty"`
	IsAutoMining         bool     `protobuf:"varint,2,opt,name=isAutoMining,proto3" json:"isAutoMining,omitempty"`
	IsHasSeed            bool     `protobuf:"varint,3,opt,name=isHasSeed,proto3" json:"isHasSeed,omitempty"`
	IsTicketLock         bool     `protobuf:"varint,4,opt,name=isTicketLock,proto3" json:"isTicketLock,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

钱包当前的状态

isWalletLock : 钱包是否锁状态,true锁定,false解锁
isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
isHasSeed : 钱包是否有种子,true已有,false没有
isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账

func (*WalletStatus) Descriptor

func (*WalletStatus) Descriptor() ([]byte, []int)

func (*WalletStatus) GetIsAutoMining

func (m *WalletStatus) GetIsAutoMining() bool

func (*WalletStatus) GetIsHasSeed

func (m *WalletStatus) GetIsHasSeed() bool

func (*WalletStatus) GetIsTicketLock

func (m *WalletStatus) GetIsTicketLock() bool

func (*WalletStatus) GetIsWalletLock

func (m *WalletStatus) GetIsWalletLock() bool

func (*WalletStatus) ProtoMessage

func (*WalletStatus) ProtoMessage()

func (*WalletStatus) Reset

func (m *WalletStatus) Reset()

func (*WalletStatus) String

func (m *WalletStatus) String() string

func (*WalletStatus) XXX_DiscardUnknown

func (m *WalletStatus) XXX_DiscardUnknown()

func (*WalletStatus) XXX_Marshal

func (m *WalletStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletStatus) XXX_Merge

func (m *WalletStatus) XXX_Merge(src proto.Message)

func (*WalletStatus) XXX_Size

func (m *WalletStatus) XXX_Size() int

func (*WalletStatus) XXX_Unmarshal

func (m *WalletStatus) XXX_Unmarshal(b []byte) error

type WalletTxDetail

type WalletTxDetail struct {
	Tx                   *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Receipt              *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Height               int64        `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Index                int64        `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Blocktime            int64        `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	Amount               int64        `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
	Fromaddr             string       `protobuf:"bytes,7,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
	Txhash               []byte       `protobuf:"bytes,8,opt,name=txhash,proto3" json:"txhash,omitempty"`
	ActionName           string       `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
	Payload              []byte       `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

钱包模块存贮的tx交易详细信息

	 tx : tx交易信息
	 receipt :交易收据信息
	 height :交易所在的区块高度
	 index :交易所在区块中的索引
	 blocktime :交易所在区块的时标
	 amount :交易量
	 fromaddr :交易打出地址
	 txhash : 交易对应的哈希值
	 actionName  :交易对应的函数调用
  payload: 保存额外的一些信息,主要是给插件使用

func (*WalletTxDetail) Descriptor

func (*WalletTxDetail) Descriptor() ([]byte, []int)

func (*WalletTxDetail) GetActionName

func (m *WalletTxDetail) GetActionName() string

func (*WalletTxDetail) GetAmount

func (m *WalletTxDetail) GetAmount() int64

func (*WalletTxDetail) GetBlocktime

func (m *WalletTxDetail) GetBlocktime() int64

func (*WalletTxDetail) GetFromaddr

func (m *WalletTxDetail) GetFromaddr() string

func (*WalletTxDetail) GetHeight

func (m *WalletTxDetail) GetHeight() int64

func (*WalletTxDetail) GetIndex

func (m *WalletTxDetail) GetIndex() int64

func (*WalletTxDetail) GetPayload

func (m *WalletTxDetail) GetPayload() []byte

func (*WalletTxDetail) GetReceipt

func (m *WalletTxDetail) GetReceipt() *ReceiptData

func (*WalletTxDetail) GetTx

func (m *WalletTxDetail) GetTx() *Transaction

func (*WalletTxDetail) GetTxhash

func (m *WalletTxDetail) GetTxhash() []byte

func (*WalletTxDetail) ProtoMessage

func (*WalletTxDetail) ProtoMessage()

func (*WalletTxDetail) Reset

func (m *WalletTxDetail) Reset()

func (*WalletTxDetail) String

func (m *WalletTxDetail) String() string

func (*WalletTxDetail) XXX_DiscardUnknown

func (m *WalletTxDetail) XXX_DiscardUnknown()

func (*WalletTxDetail) XXX_Marshal

func (m *WalletTxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletTxDetail) XXX_Merge

func (m *WalletTxDetail) XXX_Merge(src proto.Message)

func (*WalletTxDetail) XXX_Size

func (m *WalletTxDetail) XXX_Size() int

func (*WalletTxDetail) XXX_Unmarshal

func (m *WalletTxDetail) XXX_Unmarshal(b []byte) error

type WalletTxDetails

type WalletTxDetails struct {
	TxDetails            []*WalletTxDetail `protobuf:"bytes,1,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*WalletTxDetails) Descriptor

func (*WalletTxDetails) Descriptor() ([]byte, []int)

func (*WalletTxDetails) GetTxDetails

func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail

func (*WalletTxDetails) ProtoMessage

func (*WalletTxDetails) ProtoMessage()

func (*WalletTxDetails) Reset

func (m *WalletTxDetails) Reset()

func (*WalletTxDetails) String

func (m *WalletTxDetails) String() string

func (*WalletTxDetails) XXX_DiscardUnknown

func (m *WalletTxDetails) XXX_DiscardUnknown()

func (*WalletTxDetails) XXX_Marshal

func (m *WalletTxDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletTxDetails) XXX_Merge

func (m *WalletTxDetails) XXX_Merge(src proto.Message)

func (*WalletTxDetails) XXX_Size

func (m *WalletTxDetails) XXX_Size() int

func (*WalletTxDetails) XXX_Unmarshal

func (m *WalletTxDetails) XXX_Unmarshal(b []byte) error

type WalletUnLock

type WalletUnLock struct {
	Passwd               string   `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
	Timeout              int64    `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	WalletOrTicket       bool     `protobuf:"varint,3,opt,name=walletOrTicket,proto3" json:"walletOrTicket,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

钱包解锁

passwd : 钱包密码
timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包

func (*WalletUnLock) Descriptor

func (*WalletUnLock) Descriptor() ([]byte, []int)

func (*WalletUnLock) GetPasswd

func (m *WalletUnLock) GetPasswd() string

func (*WalletUnLock) GetTimeout

func (m *WalletUnLock) GetTimeout() int64

func (*WalletUnLock) GetWalletOrTicket

func (m *WalletUnLock) GetWalletOrTicket() bool

func (*WalletUnLock) ProtoMessage

func (*WalletUnLock) ProtoMessage()

func (*WalletUnLock) Reset

func (m *WalletUnLock) Reset()

func (*WalletUnLock) String

func (m *WalletUnLock) String() string

func (*WalletUnLock) XXX_DiscardUnknown

func (m *WalletUnLock) XXX_DiscardUnknown()

func (*WalletUnLock) XXX_Marshal

func (m *WalletUnLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletUnLock) XXX_Merge

func (m *WalletUnLock) XXX_Merge(src proto.Message)

func (*WalletUnLock) XXX_Size

func (m *WalletUnLock) XXX_Size() int

func (*WalletUnLock) XXX_Unmarshal

func (m *WalletUnLock) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
Package chaincfg 实现chain33的基础配置相关功能
Package chaincfg 实现chain33的基础配置相关功能
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON.
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL