Commit 1d9e819e authored by kingwang's avatar kingwang Committed by 33cn

update 04/04

parent cc23b645
...@@ -345,6 +345,8 @@ func (n *Node) nodeReBalance() { ...@@ -345,6 +345,8 @@ func (n *Node) nodeReBalance() {
if localBlockHeight-peerBlockHeight < 2048 { if localBlockHeight-peerBlockHeight < 2048 {
log.Info("noReBalance", "Repalce node new node", MinCacheInBoundPeer.Addr(), "old node", MaxInBoundPeer.Addr()) log.Info("noReBalance", "Repalce node new node", MinCacheInBoundPeer.Addr(), "old node", MaxInBoundPeer.Addr())
n.addPeer(MinCacheInBoundPeer) n.addPeer(MinCacheInBoundPeer)
n.nodeInfo.addrBook.AddAddress(MinCacheInBoundPeer.peerAddr, nil)
n.remove(MaxInBoundPeer.Addr()) n.remove(MaxInBoundPeer.Addr())
n.RemoveCachePeer(MinCacheInBoundPeer.Addr()) n.RemoveCachePeer(MinCacheInBoundPeer.Addr())
} }
......
...@@ -414,7 +414,7 @@ func (p *Peer) readStream() { ...@@ -414,7 +414,7 @@ func (p *Peer) readStream() {
msg := p.node.nodeInfo.client.NewMessage("mempool", pb.EventTx, tx.GetTx()) msg := p.node.nodeInfo.client.NewMessage("mempool", pb.EventTx, tx.GetTx())
errs := p.node.nodeInfo.client.Send(msg, false) errs := p.node.nodeInfo.client.Send(msg, false)
if errs != nil { if errs != nil {
log.Error("send", "to mempool EventTx msg Error", err.Error()) log.Error("send", "to mempool EventTx msg Error", errs.Error())
} }
//Filter.RegRecvData(txhash) //登记 //Filter.RegRecvData(txhash) //登记
} }
......
...@@ -19,6 +19,7 @@ import ( ...@@ -19,6 +19,7 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
_ "google.golang.org/grpc/encoding/gzip" // register gzip _ "google.golang.org/grpc/encoding/gzip" // register gzip
"google.golang.org/grpc/keepalive"
) )
var ( var (
...@@ -168,6 +169,13 @@ func NewGRpcServer(c queue.Client, api client.QueueProtocolAPI) *Grpcserver { ...@@ -168,6 +169,13 @@ func NewGRpcServer(c queue.Client, api client.QueueProtocolAPI) *Grpcserver {
credsOps := grpc.Creds(creds) credsOps := grpc.Creds(creds)
opts = append(opts, credsOps) opts = append(opts, credsOps)
} }
kp := keepalive.EnforcementPolicy{
MinTime: 10 * time.Second,
PermitWithoutStream: true,
}
opts = append(opts, grpc.KeepaliveEnforcementPolicy(kp))
server := grpc.NewServer(opts...) server := grpc.NewServer(opts...)
s.s = server s.s = server
types.RegisterChain33Server(server, s.grpc) types.RegisterChain33Server(server, s.grpc)
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: account.proto // source: account.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
account.proto
blockchain.proto
common.proto
db.proto
executor.proto
p2p.proto
pbft.proto
rpc.proto
statistic.proto
transaction.proto
wallet.proto
It has these top-level messages:
Account
ReceiptExecAccountTransfer
ReceiptAccountTransfer
ReceiptAccountMint
ReceiptAccountBurn
ReqBalance
Accounts
ExecAccount
AllExecBalance
ReqAllExecBalance
Header
Block
Blocks
BlockSeqCB
BlockSeqCBs
BlockSeq
BlockPid
BlockDetails
Headers
HeadersPid
BlockOverview
BlockDetail
Receipts
PrivacyKV
PrivacyKVToken
ReceiptsAndPrivacyKV
ReceiptCheckTxList
ChainStatus
ReqBlocks
MempoolSize
ReplyBlockHeight
BlockBody
IsCaughtUp
IsNtpClockSync
ChainExecutor
BlockSequence
BlockSequences
ParaChainBlockDetail
Reply
ReqString
ReplyString
ReplyStrings
ReqInt
Int64
ReqHash
ReplyHash
ReqNil
ReqHashes
ReplyHashes
KeyValue
TxHash
TimeStatus
ReqKey
ReqRandHash
VersionInfo
LeafNode
InnerNode
MAVLProof
StoreNode
LocalDBSet
LocalDBList
LocalDBGet
LocalReplyValue
StoreSet
StoreDel
StoreSetWithSync
StoreGet
StoreReplyValue
StoreList
StoreListReply
PruneData
StoreValuePool
Genesis
ExecTxList
Query
CreateTxIn
ArrayConfig
StringConfig
Int32Config
ConfigItem
ModifyConfig
ReceiptConfig
ReplyConfig
HistoryCertStore
P2PGetPeerInfo
P2PPeerInfo
P2PVersion
P2PVerAck
P2PPing
P2PPong
P2PGetAddr
P2PAddr
P2PAddrList
P2PExternalInfo
P2PGetBlocks
P2PGetMempool
P2PInv
Inventory
P2PGetData
P2PTx
P2PBlock
Versions
BroadCastData
P2PGetHeaders
P2PHeaders
InvData
InvDatas
Peer
PeerList
NodeNetInfo
PeersReply
PeersInfo
Operation
Checkpoint
Entry
ViewChange
Summary
Result
Request
RequestClient
RequestPrePrepare
RequestPrepare
RequestCommit
RequestCheckpoint
RequestViewChange
RequestAck
RequestNewView
ClientReply
TotalFee
ReqGetTotalCoins
ReplyGetTotalCoins
IterateRangeByStateHash
TicketStatistic
TicketMinerInfo
TotalAmount
ReqGetExecBalance
ExecBalanceItem
ReplyGetExecBalance
AssetsGenesis
AssetsTransferToExec
AssetsWithdraw
AssetsTransfer
Asset
CreateTx
ReWriteRawTx
CreateTransactionGroup
UnsignTx
NoBalanceTx
SignedTx
Transaction
Transactions
RingSignature
RingSignatureItem
Signature
AddrOverview
ReqAddr
ReqPrivacy
HexTx
ReplyTxInfo
ReqTxList
ReplyTxList
ReplyProperFee
TxHashList
ReplyTxInfos
ReceiptLog
Receipt
ReceiptData
TxResult
TransactionDetail
TransactionDetails
ReqAddrs
ReqDecodeRawTransaction
UserWrite
UpgradeMeta
WalletTxDetail
WalletTxDetails
WalletAccountStore
WalletPwHash
WalletStatus
WalletAccounts
WalletAccount
WalletUnLock
GenSeedLang
GetSeedByPw
SaveSeedByPw
ReplySeed
ReqWalletSetPasswd
ReqNewAccount
ReqWalletTransactionList
ReqWalletImportPrivkey
ReqWalletSendToAddress
ReqWalletSetFee
ReqWalletSetLabel
ReqWalletMergeBalance
ReqTokenPreCreate
ReqTokenFinishCreate
ReqTokenRevokeCreate
ReqModifyConfig
ReqSignRawTx
ReplySignRawTx
ReportErrEvent
Int32
ReqCreateTransaction
ReqAccountList
*/
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
...@@ -243,19 +24,42 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package ...@@ -243,19 +24,42 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Account 的信息 // Account 的信息
type Account struct { type Account struct {
// coins标识,目前只有0 一个值 // coins标识,目前只有0 一个值
Currency int32 `protobuf:"varint,1,opt,name=currency" json:"currency,omitempty"` Currency int32 `protobuf:"varint,1,opt,name=currency,proto3" json:"currency,omitempty"`
// 账户可用余额 //账户可用余额
Balance int64 `protobuf:"varint,2,opt,name=balance" json:"balance,omitempty"` Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
// 账户冻结余额 //账户冻结余额
Frozen int64 `protobuf:"varint,3,opt,name=frozen" json:"frozen,omitempty"` Frozen int64 `protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
// 账户的地址 //账户的地址
Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,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 (m *Account) Reset() { *m = Account{} } func (m *Account) Reset() { *m = Account{} }
func (m *Account) String() string { return proto.CompactTextString(m) } func (m *Account) String() string { return proto.CompactTextString(m) }
func (*Account) ProtoMessage() {} func (*Account) ProtoMessage() {}
func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (*Account) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{0}
}
func (m *Account) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Account.Unmarshal(m, b)
}
func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Account.Marshal(b, m, deterministic)
}
func (m *Account) XXX_Merge(src proto.Message) {
xxx_messageInfo_Account.Merge(m, src)
}
func (m *Account) XXX_Size() int {
return xxx_messageInfo_Account.Size(m)
}
func (m *Account) XXX_DiscardUnknown() {
xxx_messageInfo_Account.DiscardUnknown(m)
}
var xxx_messageInfo_Account proto.InternalMessageInfo
func (m *Account) GetCurrency() int32 { func (m *Account) GetCurrency() int32 {
if m != nil { if m != nil {
...@@ -285,20 +89,43 @@ func (m *Account) GetAddr() string { ...@@ -285,20 +89,43 @@ func (m *Account) GetAddr() string {
return "" return ""
} }
// 账户余额改变的一个交易回报(合约内) //账户余额改变的一个交易回报(合约内)
type ReceiptExecAccountTransfer struct { type ReceiptExecAccountTransfer struct {
// 合约地址 //合约地址
ExecAddr string `protobuf:"bytes,1,opt,name=execAddr" json:"execAddr,omitempty"` ExecAddr string `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
// 转移前 //转移前
Prev *Account `protobuf:"bytes,2,opt,name=prev" json:"prev,omitempty"` Prev *Account `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
// 转移后 //转移后
Current *Account `protobuf:"bytes,3,opt,name=current" json:"current,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 (m *ReceiptExecAccountTransfer) Reset() { *m = ReceiptExecAccountTransfer{} } func (m *ReceiptExecAccountTransfer) Reset() { *m = ReceiptExecAccountTransfer{} }
func (m *ReceiptExecAccountTransfer) String() string { return proto.CompactTextString(m) } func (m *ReceiptExecAccountTransfer) String() string { return proto.CompactTextString(m) }
func (*ReceiptExecAccountTransfer) ProtoMessage() {} func (*ReceiptExecAccountTransfer) ProtoMessage() {}
func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{1}
}
func (m *ReceiptExecAccountTransfer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptExecAccountTransfer.Unmarshal(m, b)
}
func (m *ReceiptExecAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptExecAccountTransfer.Marshal(b, m, deterministic)
}
func (m *ReceiptExecAccountTransfer) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptExecAccountTransfer.Merge(m, src)
}
func (m *ReceiptExecAccountTransfer) XXX_Size() int {
return xxx_messageInfo_ReceiptExecAccountTransfer.Size(m)
}
func (m *ReceiptExecAccountTransfer) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptExecAccountTransfer.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptExecAccountTransfer proto.InternalMessageInfo
func (m *ReceiptExecAccountTransfer) GetExecAddr() string { func (m *ReceiptExecAccountTransfer) GetExecAddr() string {
if m != nil { if m != nil {
...@@ -321,18 +148,41 @@ func (m *ReceiptExecAccountTransfer) GetCurrent() *Account { ...@@ -321,18 +148,41 @@ func (m *ReceiptExecAccountTransfer) GetCurrent() *Account {
return nil return nil
} }
// 账户余额改变的一个交易回报(coins内) //账户余额改变的一个交易回报(coins内)
type ReceiptAccountTransfer struct { type ReceiptAccountTransfer struct {
// 转移前 //转移前
Prev *Account `protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"` Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
// 转移后 //转移后
Current *Account `protobuf:"bytes,2,opt,name=current" json:"current,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 (m *ReceiptAccountTransfer) Reset() { *m = ReceiptAccountTransfer{} } func (m *ReceiptAccountTransfer) Reset() { *m = ReceiptAccountTransfer{} }
func (m *ReceiptAccountTransfer) String() string { return proto.CompactTextString(m) } func (m *ReceiptAccountTransfer) String() string { return proto.CompactTextString(m) }
func (*ReceiptAccountTransfer) ProtoMessage() {} func (*ReceiptAccountTransfer) ProtoMessage() {}
func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{2}
}
func (m *ReceiptAccountTransfer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptAccountTransfer.Unmarshal(m, b)
}
func (m *ReceiptAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptAccountTransfer.Marshal(b, m, deterministic)
}
func (m *ReceiptAccountTransfer) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptAccountTransfer.Merge(m, src)
}
func (m *ReceiptAccountTransfer) XXX_Size() int {
return xxx_messageInfo_ReceiptAccountTransfer.Size(m)
}
func (m *ReceiptAccountTransfer) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptAccountTransfer.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptAccountTransfer proto.InternalMessageInfo
func (m *ReceiptAccountTransfer) GetPrev() *Account { func (m *ReceiptAccountTransfer) GetPrev() *Account {
if m != nil { if m != nil {
...@@ -348,18 +198,41 @@ func (m *ReceiptAccountTransfer) GetCurrent() *Account { ...@@ -348,18 +198,41 @@ func (m *ReceiptAccountTransfer) GetCurrent() *Account {
return nil return nil
} }
// 铸币账户余额增加 //铸币账户余额增加
type ReceiptAccountMint struct { type ReceiptAccountMint struct {
// 铸币前 //铸币前
Prev *Account `protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"` Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
// 铸币后 //铸币后
Current *Account `protobuf:"bytes,2,opt,name=current" json:"current,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 (m *ReceiptAccountMint) Reset() { *m = ReceiptAccountMint{} }
func (m *ReceiptAccountMint) String() string { return proto.CompactTextString(m) }
func (*ReceiptAccountMint) ProtoMessage() {}
func (*ReceiptAccountMint) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{3}
}
func (m *ReceiptAccountMint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptAccountMint.Unmarshal(m, b)
}
func (m *ReceiptAccountMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptAccountMint.Marshal(b, m, deterministic)
}
func (m *ReceiptAccountMint) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptAccountMint.Merge(m, src)
}
func (m *ReceiptAccountMint) XXX_Size() int {
return xxx_messageInfo_ReceiptAccountMint.Size(m)
}
func (m *ReceiptAccountMint) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptAccountMint.DiscardUnknown(m)
} }
func (m *ReceiptAccountMint) Reset() { *m = ReceiptAccountMint{} } var xxx_messageInfo_ReceiptAccountMint proto.InternalMessageInfo
func (m *ReceiptAccountMint) String() string { return proto.CompactTextString(m) }
func (*ReceiptAccountMint) ProtoMessage() {}
func (*ReceiptAccountMint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ReceiptAccountMint) GetPrev() *Account { func (m *ReceiptAccountMint) GetPrev() *Account {
if m != nil { if m != nil {
...@@ -376,14 +249,37 @@ func (m *ReceiptAccountMint) GetCurrent() *Account { ...@@ -376,14 +249,37 @@ func (m *ReceiptAccountMint) GetCurrent() *Account {
} }
type ReceiptAccountBurn struct { type ReceiptAccountBurn struct {
Prev *Account `protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"` Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *Account `protobuf:"bytes,2,opt,name=current" json:"current,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 (m *ReceiptAccountBurn) Reset() { *m = ReceiptAccountBurn{} }
func (m *ReceiptAccountBurn) String() string { return proto.CompactTextString(m) }
func (*ReceiptAccountBurn) ProtoMessage() {}
func (*ReceiptAccountBurn) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{4}
}
func (m *ReceiptAccountBurn) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptAccountBurn.Unmarshal(m, b)
}
func (m *ReceiptAccountBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptAccountBurn.Marshal(b, m, deterministic)
}
func (m *ReceiptAccountBurn) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptAccountBurn.Merge(m, src)
}
func (m *ReceiptAccountBurn) XXX_Size() int {
return xxx_messageInfo_ReceiptAccountBurn.Size(m)
}
func (m *ReceiptAccountBurn) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptAccountBurn.DiscardUnknown(m)
} }
func (m *ReceiptAccountBurn) Reset() { *m = ReceiptAccountBurn{} } var xxx_messageInfo_ReceiptAccountBurn proto.InternalMessageInfo
func (m *ReceiptAccountBurn) String() string { return proto.CompactTextString(m) }
func (*ReceiptAccountBurn) ProtoMessage() {}
func (*ReceiptAccountBurn) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ReceiptAccountBurn) GetPrev() *Account { func (m *ReceiptAccountBurn) GetPrev() *Account {
if m != nil { if m != nil {
...@@ -399,21 +295,44 @@ func (m *ReceiptAccountBurn) GetCurrent() *Account { ...@@ -399,21 +295,44 @@ func (m *ReceiptAccountBurn) GetCurrent() *Account {
return nil return nil
} }
// 查询一个地址列表在某个执行器中余额 //查询一个地址列表在某个执行器中余额
type ReqBalance struct { type ReqBalance struct {
// 地址列表 //地址列表
Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"` Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
// 执行器名称 //执行器名称
Execer string `protobuf:"bytes,2,opt,name=execer" json:"execer,omitempty"` Execer string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
StateHash string `protobuf:"bytes,3,opt,name=stateHash" json:"stateHash,omitempty"` StateHash string `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
AssetExec string `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec" json:"asset_exec,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" json:"asset_symbol,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 (m *ReqBalance) Reset() { *m = ReqBalance{} } func (m *ReqBalance) Reset() { *m = ReqBalance{} }
func (m *ReqBalance) String() string { return proto.CompactTextString(m) } func (m *ReqBalance) String() string { return proto.CompactTextString(m) }
func (*ReqBalance) ProtoMessage() {} func (*ReqBalance) ProtoMessage() {}
func (*ReqBalance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (*ReqBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{5}
}
func (m *ReqBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqBalance.Unmarshal(m, b)
}
func (m *ReqBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqBalance.Marshal(b, m, deterministic)
}
func (m *ReqBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqBalance.Merge(m, src)
}
func (m *ReqBalance) XXX_Size() int {
return xxx_messageInfo_ReqBalance.Size(m)
}
func (m *ReqBalance) XXX_DiscardUnknown() {
xxx_messageInfo_ReqBalance.DiscardUnknown(m)
}
var xxx_messageInfo_ReqBalance proto.InternalMessageInfo
func (m *ReqBalance) GetAddresses() []string { func (m *ReqBalance) GetAddresses() []string {
if m != nil { if m != nil {
...@@ -452,13 +371,36 @@ func (m *ReqBalance) GetAssetSymbol() string { ...@@ -452,13 +371,36 @@ func (m *ReqBalance) GetAssetSymbol() string {
// Account 的列表 // Account 的列表
type Accounts struct { type Accounts struct {
Acc []*Account `protobuf:"bytes,1,rep,name=acc" json:"acc,omitempty"` Acc []*Account `protobuf:"bytes,1,rep,name=acc,proto3" json:"acc,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Accounts) Reset() { *m = Accounts{} }
func (m *Accounts) String() string { return proto.CompactTextString(m) }
func (*Accounts) ProtoMessage() {}
func (*Accounts) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{6}
} }
func (m *Accounts) Reset() { *m = Accounts{} } func (m *Accounts) XXX_Unmarshal(b []byte) error {
func (m *Accounts) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_Accounts.Unmarshal(m, b)
func (*Accounts) ProtoMessage() {} }
func (*Accounts) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *Accounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Accounts.Marshal(b, m, deterministic)
}
func (m *Accounts) XXX_Merge(src proto.Message) {
xxx_messageInfo_Accounts.Merge(m, src)
}
func (m *Accounts) XXX_Size() int {
return xxx_messageInfo_Accounts.Size(m)
}
func (m *Accounts) XXX_DiscardUnknown() {
xxx_messageInfo_Accounts.DiscardUnknown(m)
}
var xxx_messageInfo_Accounts proto.InternalMessageInfo
func (m *Accounts) GetAcc() []*Account { func (m *Accounts) GetAcc() []*Account {
if m != nil { if m != nil {
...@@ -468,14 +410,37 @@ func (m *Accounts) GetAcc() []*Account { ...@@ -468,14 +410,37 @@ func (m *Accounts) GetAcc() []*Account {
} }
type ExecAccount struct { type ExecAccount struct {
Execer string `protobuf:"bytes,1,opt,name=execer" json:"execer,omitempty"` Execer string `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
Account *Account `protobuf:"bytes,2,opt,name=account" json:"account,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 (m *ExecAccount) Reset() { *m = ExecAccount{} }
func (m *ExecAccount) String() string { return proto.CompactTextString(m) }
func (*ExecAccount) ProtoMessage() {}
func (*ExecAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{7}
}
func (m *ExecAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecAccount.Unmarshal(m, b)
}
func (m *ExecAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecAccount.Marshal(b, m, deterministic)
}
func (m *ExecAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecAccount.Merge(m, src)
}
func (m *ExecAccount) XXX_Size() int {
return xxx_messageInfo_ExecAccount.Size(m)
}
func (m *ExecAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ExecAccount.DiscardUnknown(m)
} }
func (m *ExecAccount) Reset() { *m = ExecAccount{} } var xxx_messageInfo_ExecAccount proto.InternalMessageInfo
func (m *ExecAccount) String() string { return proto.CompactTextString(m) }
func (*ExecAccount) ProtoMessage() {}
func (*ExecAccount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *ExecAccount) GetExecer() string { func (m *ExecAccount) GetExecer() string {
if m != nil { if m != nil {
...@@ -492,14 +457,37 @@ func (m *ExecAccount) GetAccount() *Account { ...@@ -492,14 +457,37 @@ func (m *ExecAccount) GetAccount() *Account {
} }
type AllExecBalance struct { type AllExecBalance struct {
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
ExecAccount []*ExecAccount `protobuf:"bytes,2,rep,name=ExecAccount" json:"ExecAccount,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 (m *AllExecBalance) Reset() { *m = AllExecBalance{} }
func (m *AllExecBalance) String() string { return proto.CompactTextString(m) }
func (*AllExecBalance) ProtoMessage() {}
func (*AllExecBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{8}
}
func (m *AllExecBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AllExecBalance.Unmarshal(m, b)
}
func (m *AllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AllExecBalance.Marshal(b, m, deterministic)
}
func (m *AllExecBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_AllExecBalance.Merge(m, src)
}
func (m *AllExecBalance) XXX_Size() int {
return xxx_messageInfo_AllExecBalance.Size(m)
}
func (m *AllExecBalance) XXX_DiscardUnknown() {
xxx_messageInfo_AllExecBalance.DiscardUnknown(m)
} }
func (m *AllExecBalance) Reset() { *m = AllExecBalance{} } var xxx_messageInfo_AllExecBalance proto.InternalMessageInfo
func (m *AllExecBalance) String() string { return proto.CompactTextString(m) }
func (*AllExecBalance) ProtoMessage() {}
func (*AllExecBalance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *AllExecBalance) GetAddr() string { func (m *AllExecBalance) GetAddr() string {
if m != nil { if m != nil {
...@@ -516,19 +504,42 @@ func (m *AllExecBalance) GetExecAccount() []*ExecAccount { ...@@ -516,19 +504,42 @@ func (m *AllExecBalance) GetExecAccount() []*ExecAccount {
} }
type ReqAllExecBalance struct { type ReqAllExecBalance struct {
// 地址列表 //地址列表
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
// 执行器名称 //执行器名称
Execer string `protobuf:"bytes,2,opt,name=execer" json:"execer,omitempty"` Execer string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
StateHash string `protobuf:"bytes,3,opt,name=stateHash" json:"stateHash,omitempty"` StateHash string `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
AssetExec string `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec" json:"asset_exec,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" json:"asset_symbol,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 (m *ReqAllExecBalance) Reset() { *m = ReqAllExecBalance{} }
func (m *ReqAllExecBalance) String() string { return proto.CompactTextString(m) }
func (*ReqAllExecBalance) ProtoMessage() {}
func (*ReqAllExecBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_8e28828dcb8d24f0, []int{9}
}
func (m *ReqAllExecBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqAllExecBalance.Unmarshal(m, b)
}
func (m *ReqAllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqAllExecBalance.Marshal(b, m, deterministic)
}
func (m *ReqAllExecBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqAllExecBalance.Merge(m, src)
}
func (m *ReqAllExecBalance) XXX_Size() int {
return xxx_messageInfo_ReqAllExecBalance.Size(m)
}
func (m *ReqAllExecBalance) XXX_DiscardUnknown() {
xxx_messageInfo_ReqAllExecBalance.DiscardUnknown(m)
} }
func (m *ReqAllExecBalance) Reset() { *m = ReqAllExecBalance{} } var xxx_messageInfo_ReqAllExecBalance proto.InternalMessageInfo
func (m *ReqAllExecBalance) String() string { return proto.CompactTextString(m) }
func (*ReqAllExecBalance) ProtoMessage() {}
func (*ReqAllExecBalance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *ReqAllExecBalance) GetAddr() string { func (m *ReqAllExecBalance) GetAddr() string {
if m != nil { if m != nil {
...@@ -578,9 +589,9 @@ func init() { ...@@ -578,9 +589,9 @@ func init() {
proto.RegisterType((*ReqAllExecBalance)(nil), "types.ReqAllExecBalance") proto.RegisterType((*ReqAllExecBalance)(nil), "types.ReqAllExecBalance")
} }
func init() { proto.RegisterFile("account.proto", fileDescriptor0) } func init() { proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) }
var fileDescriptor0 = []byte{ var fileDescriptor_8e28828dcb8d24f0 = []byte{
// 434 bytes of a gzipped FileDescriptorProto // 434 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x54, 0xcd, 0x6e, 0x13, 0x31, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x54, 0xcd, 0x6e, 0x13, 0x31,
0x10, 0x96, 0xf3, 0xd3, 0x74, 0x27, 0x50, 0x09, 0x1f, 0x2a, 0xab, 0xa2, 0x62, 0xf1, 0x69, 0x0f, 0x10, 0x96, 0xf3, 0xd3, 0x74, 0x27, 0x50, 0x09, 0x1f, 0x2a, 0xab, 0xa2, 0x62, 0xf1, 0x69, 0x0f,
......
...@@ -3,42 +3,74 @@ ...@@ -3,42 +3,74 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// 区块头信息 // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
//区块头信息
// version : 版本信息 // version : 版本信息
// parentHash :父哈希 // parentHash :父哈希
// txHash : 交易根哈希 // txHash : 交易根哈希
// stateHash :状态哈希 // stateHash :状态哈希
// height : 区块高度 // height : 区块高度
// blockTime :区块产生时的时标 // blockTime :区块产生时的时标
// txCount : 区块上所有交易个数 // txCount : 区块上所有交易个数
// difficulty :区块难度系数, // difficulty :区块难度系数,
// signature :交易签名 // signature :交易签名
type Header struct { type Header struct {
Version int64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
ParentHash []byte `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,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"` TxHash []byte `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
StateHash []byte `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Height int64 `protobuf:"varint,5,opt,name=height" json:"height,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
BlockTime int64 `protobuf:"varint,6,opt,name=blockTime" json:"blockTime,omitempty"` BlockTime int64 `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
TxCount int64 `protobuf:"varint,9,opt,name=txCount" json:"txCount,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"` Hash []byte `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
Difficulty uint32 `protobuf:"varint,11,opt,name=difficulty" json:"difficulty,omitempty"` Difficulty uint32 `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
Signature *Signature `protobuf:"bytes,8,opt,name=signature" json:"signature,omitempty"` Signature *Signature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *Header) Reset() { *m = Header{} } XXX_sizecache int32 `json:"-"`
func (m *Header) String() string { return proto.CompactTextString(m) } }
func (*Header) ProtoMessage() {}
func (*Header) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } func (m *Header) Reset() { *m = Header{} }
func (m *Header) String() string { return proto.CompactTextString(m) }
func (*Header) ProtoMessage() {}
func (*Header) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{0}
}
func (m *Header) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Header.Unmarshal(m, b)
}
func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Header.Marshal(b, m, deterministic)
}
func (m *Header) XXX_Merge(src proto.Message) {
xxx_messageInfo_Header.Merge(m, src)
}
func (m *Header) XXX_Size() int {
return xxx_messageInfo_Header.Size(m)
}
func (m *Header) XXX_DiscardUnknown() {
xxx_messageInfo_Header.DiscardUnknown(m)
}
var xxx_messageInfo_Header proto.InternalMessageInfo
func (m *Header) GetVersion() int64 { func (m *Header) GetVersion() int64 {
if m != nil { if m != nil {
...@@ -113,23 +145,46 @@ func (m *Header) GetSignature() *Signature { ...@@ -113,23 +145,46 @@ func (m *Header) GetSignature() *Signature {
// 参考Header解释 // 参考Header解释
// mainHash 平行链上使用的字段,代表这个区块的主链hash // mainHash 平行链上使用的字段,代表这个区块的主链hash
type Block struct { type Block struct {
Version int64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
ParentHash []byte `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,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"` TxHash []byte `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
StateHash []byte `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Height int64 `protobuf:"varint,5,opt,name=height" json:"height,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
BlockTime int64 `protobuf:"varint,6,opt,name=blockTime" json:"blockTime,omitempty"` BlockTime int64 `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
Difficulty uint32 `protobuf:"varint,11,opt,name=difficulty" json:"difficulty,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"` MainHash []byte `protobuf:"bytes,12,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight int64 `protobuf:"varint,13,opt,name=mainHeight" json:"mainHeight,omitempty"` MainHeight int64 `protobuf:"varint,13,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
Signature *Signature `protobuf:"bytes,8,opt,name=signature" json:"signature,omitempty"` Signature *Signature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
Txs []*Transaction `protobuf:"bytes,7,rep,name=txs" json:"txs,omitempty"` Txs []*Transaction `protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *Block) Reset() { *m = Block{} } XXX_sizecache int32 `json:"-"`
func (m *Block) String() string { return proto.CompactTextString(m) } }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{1}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (m *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(m, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetVersion() int64 { func (m *Block) GetVersion() int64 {
if m != nil { if m != nil {
...@@ -209,13 +264,36 @@ func (m *Block) GetTxs() []*Transaction { ...@@ -209,13 +264,36 @@ func (m *Block) GetTxs() []*Transaction {
} }
type Blocks struct { type Blocks struct {
Items []*Block `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` 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 (m *Blocks) Reset() { *m = Blocks{} }
func (m *Blocks) String() string { return proto.CompactTextString(m) }
func (*Blocks) ProtoMessage() {}
func (*Blocks) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{2}
}
func (m *Blocks) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Blocks.Unmarshal(m, b)
}
func (m *Blocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Blocks.Marshal(b, m, deterministic)
}
func (m *Blocks) XXX_Merge(src proto.Message) {
xxx_messageInfo_Blocks.Merge(m, src)
}
func (m *Blocks) XXX_Size() int {
return xxx_messageInfo_Blocks.Size(m)
}
func (m *Blocks) XXX_DiscardUnknown() {
xxx_messageInfo_Blocks.DiscardUnknown(m)
} }
func (m *Blocks) Reset() { *m = Blocks{} } var xxx_messageInfo_Blocks proto.InternalMessageInfo
func (m *Blocks) String() string { return proto.CompactTextString(m) }
func (*Blocks) ProtoMessage() {}
func (*Blocks) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *Blocks) GetItems() []*Block { func (m *Blocks) GetItems() []*Block {
if m != nil { if m != nil {
...@@ -225,15 +303,38 @@ func (m *Blocks) GetItems() []*Block { ...@@ -225,15 +303,38 @@ func (m *Blocks) GetItems() []*Block {
} }
type BlockSeqCB struct { type BlockSeqCB struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
URL string `protobuf:"bytes,2,opt,name=URL" json:"URL,omitempty"` URL string `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"`
Encode string `protobuf:"bytes,3,opt,name=encode" json:"encode,omitempty"` Encode string `protobuf:"bytes,3,opt,name=encode,proto3" json:"encode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockSeqCB) Reset() { *m = BlockSeqCB{} }
func (m *BlockSeqCB) String() string { return proto.CompactTextString(m) }
func (*BlockSeqCB) ProtoMessage() {}
func (*BlockSeqCB) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{3}
} }
func (m *BlockSeqCB) Reset() { *m = BlockSeqCB{} } func (m *BlockSeqCB) XXX_Unmarshal(b []byte) error {
func (m *BlockSeqCB) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_BlockSeqCB.Unmarshal(m, b)
func (*BlockSeqCB) ProtoMessage() {} }
func (*BlockSeqCB) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} } func (m *BlockSeqCB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockSeqCB.Marshal(b, m, deterministic)
}
func (m *BlockSeqCB) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockSeqCB.Merge(m, src)
}
func (m *BlockSeqCB) XXX_Size() int {
return xxx_messageInfo_BlockSeqCB.Size(m)
}
func (m *BlockSeqCB) XXX_DiscardUnknown() {
xxx_messageInfo_BlockSeqCB.DiscardUnknown(m)
}
var xxx_messageInfo_BlockSeqCB proto.InternalMessageInfo
func (m *BlockSeqCB) GetName() string { func (m *BlockSeqCB) GetName() string {
if m != nil { if m != nil {
...@@ -257,13 +358,36 @@ func (m *BlockSeqCB) GetEncode() string { ...@@ -257,13 +358,36 @@ func (m *BlockSeqCB) GetEncode() string {
} }
type BlockSeqCBs struct { type BlockSeqCBs struct {
Items []*BlockSeqCB `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` 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 (m *BlockSeqCBs) Reset() { *m = BlockSeqCBs{} } func (m *BlockSeqCBs) Reset() { *m = BlockSeqCBs{} }
func (m *BlockSeqCBs) String() string { return proto.CompactTextString(m) } func (m *BlockSeqCBs) String() string { return proto.CompactTextString(m) }
func (*BlockSeqCBs) ProtoMessage() {} func (*BlockSeqCBs) ProtoMessage() {}
func (*BlockSeqCBs) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } func (*BlockSeqCBs) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{4}
}
func (m *BlockSeqCBs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockSeqCBs.Unmarshal(m, b)
}
func (m *BlockSeqCBs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockSeqCBs.Marshal(b, m, deterministic)
}
func (m *BlockSeqCBs) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockSeqCBs.Merge(m, src)
}
func (m *BlockSeqCBs) XXX_Size() int {
return xxx_messageInfo_BlockSeqCBs.Size(m)
}
func (m *BlockSeqCBs) XXX_DiscardUnknown() {
xxx_messageInfo_BlockSeqCBs.DiscardUnknown(m)
}
var xxx_messageInfo_BlockSeqCBs proto.InternalMessageInfo
func (m *BlockSeqCBs) GetItems() []*BlockSeqCB { func (m *BlockSeqCBs) GetItems() []*BlockSeqCB {
if m != nil { if m != nil {
...@@ -273,15 +397,38 @@ func (m *BlockSeqCBs) GetItems() []*BlockSeqCB { ...@@ -273,15 +397,38 @@ func (m *BlockSeqCBs) GetItems() []*BlockSeqCB {
} }
type BlockSeq struct { type BlockSeq struct {
Num int64 `protobuf:"varint,1,opt,name=num" json:"num,omitempty"` Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
Seq *BlockSequence `protobuf:"bytes,2,opt,name=seq" json:"seq,omitempty"` Seq *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
Detail *BlockDetail `protobuf:"bytes,3,opt,name=detail" json:"detail,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 (m *BlockSeq) Reset() { *m = BlockSeq{} }
func (m *BlockSeq) String() string { return proto.CompactTextString(m) }
func (*BlockSeq) ProtoMessage() {}
func (*BlockSeq) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{5}
}
func (m *BlockSeq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockSeq.Unmarshal(m, b)
}
func (m *BlockSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockSeq.Marshal(b, m, deterministic)
}
func (m *BlockSeq) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockSeq.Merge(m, src)
}
func (m *BlockSeq) XXX_Size() int {
return xxx_messageInfo_BlockSeq.Size(m)
}
func (m *BlockSeq) XXX_DiscardUnknown() {
xxx_messageInfo_BlockSeq.DiscardUnknown(m)
} }
func (m *BlockSeq) Reset() { *m = BlockSeq{} } var xxx_messageInfo_BlockSeq proto.InternalMessageInfo
func (m *BlockSeq) String() string { return proto.CompactTextString(m) }
func (*BlockSeq) ProtoMessage() {}
func (*BlockSeq) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *BlockSeq) GetNum() int64 { func (m *BlockSeq) GetNum() int64 {
if m != nil { if m != nil {
...@@ -304,16 +451,39 @@ func (m *BlockSeq) GetDetail() *BlockDetail { ...@@ -304,16 +451,39 @@ func (m *BlockSeq) GetDetail() *BlockDetail {
return nil return nil
} }
// 节点ID以及对应的Block //节点ID以及对应的Block
type BlockPid struct { type BlockPid struct {
Pid string `protobuf:"bytes,1,opt,name=pid" json:"pid,omitempty"` Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
Block *Block `protobuf:"bytes,2,opt,name=block" json:"block,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:"-"`
} }
func (m *BlockPid) Reset() { *m = BlockPid{} } func (m *BlockPid) Reset() { *m = BlockPid{} }
func (m *BlockPid) String() string { return proto.CompactTextString(m) } func (m *BlockPid) String() string { return proto.CompactTextString(m) }
func (*BlockPid) ProtoMessage() {} func (*BlockPid) ProtoMessage() {}
func (*BlockPid) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } func (*BlockPid) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{6}
}
func (m *BlockPid) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockPid.Unmarshal(m, b)
}
func (m *BlockPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockPid.Marshal(b, m, deterministic)
}
func (m *BlockPid) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockPid.Merge(m, src)
}
func (m *BlockPid) XXX_Size() int {
return xxx_messageInfo_BlockPid.Size(m)
}
func (m *BlockPid) XXX_DiscardUnknown() {
xxx_messageInfo_BlockPid.DiscardUnknown(m)
}
var xxx_messageInfo_BlockPid proto.InternalMessageInfo
func (m *BlockPid) GetPid() string { func (m *BlockPid) GetPid() string {
if m != nil { if m != nil {
...@@ -331,13 +501,36 @@ func (m *BlockPid) GetBlock() *Block { ...@@ -331,13 +501,36 @@ func (m *BlockPid) GetBlock() *Block {
// resp // resp
type BlockDetails struct { type BlockDetails struct {
Items []*BlockDetail `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` Items []*BlockDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlockDetails) Reset() { *m = BlockDetails{} } func (m *BlockDetails) Reset() { *m = BlockDetails{} }
func (m *BlockDetails) String() string { return proto.CompactTextString(m) } func (m *BlockDetails) String() string { return proto.CompactTextString(m) }
func (*BlockDetails) ProtoMessage() {} func (*BlockDetails) ProtoMessage() {}
func (*BlockDetails) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} } func (*BlockDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{7}
}
func (m *BlockDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockDetails.Unmarshal(m, b)
}
func (m *BlockDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockDetails.Marshal(b, m, deterministic)
}
func (m *BlockDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockDetails.Merge(m, src)
}
func (m *BlockDetails) XXX_Size() int {
return xxx_messageInfo_BlockDetails.Size(m)
}
func (m *BlockDetails) XXX_DiscardUnknown() {
xxx_messageInfo_BlockDetails.DiscardUnknown(m)
}
var xxx_messageInfo_BlockDetails proto.InternalMessageInfo
func (m *BlockDetails) GetItems() []*BlockDetail { func (m *BlockDetails) GetItems() []*BlockDetail {
if m != nil { if m != nil {
...@@ -348,13 +541,36 @@ func (m *BlockDetails) GetItems() []*BlockDetail { ...@@ -348,13 +541,36 @@ func (m *BlockDetails) GetItems() []*BlockDetail {
// resp // resp
type Headers struct { type Headers struct {
Items []*Header `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` Items []*Header `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Headers) Reset() { *m = Headers{} } func (m *Headers) Reset() { *m = Headers{} }
func (m *Headers) String() string { return proto.CompactTextString(m) } func (m *Headers) String() string { return proto.CompactTextString(m) }
func (*Headers) ProtoMessage() {} func (*Headers) ProtoMessage() {}
func (*Headers) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} } func (*Headers) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{8}
}
func (m *Headers) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Headers.Unmarshal(m, b)
}
func (m *Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Headers.Marshal(b, m, deterministic)
}
func (m *Headers) XXX_Merge(src proto.Message) {
xxx_messageInfo_Headers.Merge(m, src)
}
func (m *Headers) XXX_Size() int {
return xxx_messageInfo_Headers.Size(m)
}
func (m *Headers) XXX_DiscardUnknown() {
xxx_messageInfo_Headers.DiscardUnknown(m)
}
var xxx_messageInfo_Headers proto.InternalMessageInfo
func (m *Headers) GetItems() []*Header { func (m *Headers) GetItems() []*Header {
if m != nil { if m != nil {
...@@ -364,14 +580,37 @@ func (m *Headers) GetItems() []*Header { ...@@ -364,14 +580,37 @@ func (m *Headers) GetItems() []*Header {
} }
type HeadersPid struct { type HeadersPid struct {
Pid string `protobuf:"bytes,1,opt,name=pid" json:"pid,omitempty"` Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
Headers *Headers `protobuf:"bytes,2,opt,name=headers" json:"headers,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 (m *HeadersPid) Reset() { *m = HeadersPid{} }
func (m *HeadersPid) String() string { return proto.CompactTextString(m) }
func (*HeadersPid) ProtoMessage() {}
func (*HeadersPid) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{9}
} }
func (m *HeadersPid) Reset() { *m = HeadersPid{} } func (m *HeadersPid) XXX_Unmarshal(b []byte) error {
func (m *HeadersPid) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_HeadersPid.Unmarshal(m, b)
func (*HeadersPid) ProtoMessage() {} }
func (*HeadersPid) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} } func (m *HeadersPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HeadersPid.Marshal(b, m, deterministic)
}
func (m *HeadersPid) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeadersPid.Merge(m, src)
}
func (m *HeadersPid) XXX_Size() int {
return xxx_messageInfo_HeadersPid.Size(m)
}
func (m *HeadersPid) XXX_DiscardUnknown() {
xxx_messageInfo_HeadersPid.DiscardUnknown(m)
}
var xxx_messageInfo_HeadersPid proto.InternalMessageInfo
func (m *HeadersPid) GetPid() string { func (m *HeadersPid) GetPid() string {
if m != nil { if m != nil {
...@@ -387,20 +626,43 @@ func (m *HeadersPid) GetHeaders() *Headers { ...@@ -387,20 +626,43 @@ func (m *HeadersPid) GetHeaders() *Headers {
return nil return nil
} }
// 区块视图 //区块视图
// head : 区块头信息 // head : 区块头信息
// txCount :区块上交易个数 // txCount :区块上交易个数
// txHashes : 区块上交易的哈希列表 // txHashes : 区块上交易的哈希列表
type BlockOverview struct { type BlockOverview struct {
Head *Header `protobuf:"bytes,1,opt,name=head" json:"head,omitempty"` Head *Header `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
TxCount int64 `protobuf:"varint,2,opt,name=txCount" json:"txCount,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"` TxHashes [][]byte `protobuf:"bytes,3,rep,name=txHashes,proto3" json:"txHashes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlockOverview) Reset() { *m = BlockOverview{} } func (m *BlockOverview) Reset() { *m = BlockOverview{} }
func (m *BlockOverview) String() string { return proto.CompactTextString(m) } func (m *BlockOverview) String() string { return proto.CompactTextString(m) }
func (*BlockOverview) ProtoMessage() {} func (*BlockOverview) ProtoMessage() {}
func (*BlockOverview) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} } func (*BlockOverview) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{10}
}
func (m *BlockOverview) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockOverview.Unmarshal(m, b)
}
func (m *BlockOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockOverview.Marshal(b, m, deterministic)
}
func (m *BlockOverview) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockOverview.Merge(m, src)
}
func (m *BlockOverview) XXX_Size() int {
return xxx_messageInfo_BlockOverview.Size(m)
}
func (m *BlockOverview) XXX_DiscardUnknown() {
xxx_messageInfo_BlockOverview.DiscardUnknown(m)
}
var xxx_messageInfo_BlockOverview proto.InternalMessageInfo
func (m *BlockOverview) GetHead() *Header { func (m *BlockOverview) GetHead() *Header {
if m != nil { if m != nil {
...@@ -423,20 +685,43 @@ func (m *BlockOverview) GetTxHashes() [][]byte { ...@@ -423,20 +685,43 @@ func (m *BlockOverview) GetTxHashes() [][]byte {
return nil return nil
} }
// 区块详细信息 //区块详细信息
// block : 区块信息 // block : 区块信息
// receipts :区块上所有交易的收据信息列表 // receipts :区块上所有交易的收据信息列表
type BlockDetail struct { type BlockDetail struct {
Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
Receipts []*ReceiptData `protobuf:"bytes,2,rep,name=receipts" json:"receipts,omitempty"` Receipts []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
KV []*KeyValue `protobuf:"bytes,3,rep,name=KV" json:"KV,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"` PrevStatusHash []byte `protobuf:"bytes,4,opt,name=prevStatusHash,proto3" json:"prevStatusHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockDetail) Reset() { *m = BlockDetail{} }
func (m *BlockDetail) String() string { return proto.CompactTextString(m) }
func (*BlockDetail) ProtoMessage() {}
func (*BlockDetail) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{11}
}
func (m *BlockDetail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockDetail.Unmarshal(m, b)
}
func (m *BlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockDetail.Marshal(b, m, deterministic)
}
func (m *BlockDetail) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockDetail.Merge(m, src)
}
func (m *BlockDetail) XXX_Size() int {
return xxx_messageInfo_BlockDetail.Size(m)
}
func (m *BlockDetail) XXX_DiscardUnknown() {
xxx_messageInfo_BlockDetail.DiscardUnknown(m)
} }
func (m *BlockDetail) Reset() { *m = BlockDetail{} } var xxx_messageInfo_BlockDetail proto.InternalMessageInfo
func (m *BlockDetail) String() string { return proto.CompactTextString(m) }
func (*BlockDetail) ProtoMessage() {}
func (*BlockDetail) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
func (m *BlockDetail) GetBlock() *Block { func (m *BlockDetail) GetBlock() *Block {
if m != nil { if m != nil {
...@@ -467,13 +752,36 @@ func (m *BlockDetail) GetPrevStatusHash() []byte { ...@@ -467,13 +752,36 @@ func (m *BlockDetail) GetPrevStatusHash() []byte {
} }
type Receipts struct { type Receipts struct {
Receipts []*Receipt `protobuf:"bytes,1,rep,name=receipts" json:"receipts,omitempty"` 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 (m *Receipts) Reset() { *m = Receipts{} }
func (m *Receipts) String() string { return proto.CompactTextString(m) }
func (*Receipts) ProtoMessage() {}
func (*Receipts) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{12}
}
func (m *Receipts) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Receipts.Unmarshal(m, b)
}
func (m *Receipts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Receipts.Marshal(b, m, deterministic)
}
func (m *Receipts) XXX_Merge(src proto.Message) {
xxx_messageInfo_Receipts.Merge(m, src)
}
func (m *Receipts) XXX_Size() int {
return xxx_messageInfo_Receipts.Size(m)
}
func (m *Receipts) XXX_DiscardUnknown() {
xxx_messageInfo_Receipts.DiscardUnknown(m)
} }
func (m *Receipts) Reset() { *m = Receipts{} } var xxx_messageInfo_Receipts proto.InternalMessageInfo
func (m *Receipts) String() string { return proto.CompactTextString(m) }
func (*Receipts) ProtoMessage() {}
func (*Receipts) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
func (m *Receipts) GetReceipts() []*Receipt { func (m *Receipts) GetReceipts() []*Receipt {
if m != nil { if m != nil {
...@@ -483,13 +791,36 @@ func (m *Receipts) GetReceipts() []*Receipt { ...@@ -483,13 +791,36 @@ func (m *Receipts) GetReceipts() []*Receipt {
} }
type PrivacyKV struct { type PrivacyKV struct {
PrivacyKVToken []*PrivacyKVToken `protobuf:"bytes,1,rep,name=privacyKVToken" json:"privacyKVToken,omitempty"` PrivacyKVToken []*PrivacyKVToken `protobuf:"bytes,1,rep,name=privacyKVToken,proto3" json:"privacyKVToken,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PrivacyKV) Reset() { *m = PrivacyKV{} }
func (m *PrivacyKV) String() string { return proto.CompactTextString(m) }
func (*PrivacyKV) ProtoMessage() {}
func (*PrivacyKV) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{13}
}
func (m *PrivacyKV) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PrivacyKV.Unmarshal(m, b)
}
func (m *PrivacyKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PrivacyKV.Marshal(b, m, deterministic)
}
func (m *PrivacyKV) XXX_Merge(src proto.Message) {
xxx_messageInfo_PrivacyKV.Merge(m, src)
}
func (m *PrivacyKV) XXX_Size() int {
return xxx_messageInfo_PrivacyKV.Size(m)
}
func (m *PrivacyKV) XXX_DiscardUnknown() {
xxx_messageInfo_PrivacyKV.DiscardUnknown(m)
} }
func (m *PrivacyKV) Reset() { *m = PrivacyKV{} } var xxx_messageInfo_PrivacyKV proto.InternalMessageInfo
func (m *PrivacyKV) String() string { return proto.CompactTextString(m) }
func (*PrivacyKV) ProtoMessage() {}
func (*PrivacyKV) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken { func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken {
if m != nil { if m != nil {
...@@ -499,16 +830,39 @@ func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken { ...@@ -499,16 +830,39 @@ func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken {
} }
type PrivacyKVToken struct { type PrivacyKVToken struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"` Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
TxIndex int32 `protobuf:"varint,2,opt,name=txIndex" json:"txIndex,omitempty"` TxIndex int32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
Txhash []byte `protobuf:"bytes,3,opt,name=txhash,proto3" json:"txhash,omitempty"` Txhash []byte `protobuf:"bytes,3,opt,name=txhash,proto3" json:"txhash,omitempty"`
KV []*KeyValue `protobuf:"bytes,4,rep,name=KV" json:"KV,omitempty"` KV []*KeyValue `protobuf:"bytes,4,rep,name=KV,proto3" json:"KV,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PrivacyKVToken) Reset() { *m = PrivacyKVToken{} } func (m *PrivacyKVToken) Reset() { *m = PrivacyKVToken{} }
func (m *PrivacyKVToken) String() string { return proto.CompactTextString(m) } func (m *PrivacyKVToken) String() string { return proto.CompactTextString(m) }
func (*PrivacyKVToken) ProtoMessage() {} func (*PrivacyKVToken) ProtoMessage() {}
func (*PrivacyKVToken) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} } func (*PrivacyKVToken) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{14}
}
func (m *PrivacyKVToken) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PrivacyKVToken.Unmarshal(m, b)
}
func (m *PrivacyKVToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PrivacyKVToken.Marshal(b, m, deterministic)
}
func (m *PrivacyKVToken) XXX_Merge(src proto.Message) {
xxx_messageInfo_PrivacyKVToken.Merge(m, src)
}
func (m *PrivacyKVToken) XXX_Size() int {
return xxx_messageInfo_PrivacyKVToken.Size(m)
}
func (m *PrivacyKVToken) XXX_DiscardUnknown() {
xxx_messageInfo_PrivacyKVToken.DiscardUnknown(m)
}
var xxx_messageInfo_PrivacyKVToken proto.InternalMessageInfo
func (m *PrivacyKVToken) GetToken() string { func (m *PrivacyKVToken) GetToken() string {
if m != nil { if m != nil {
...@@ -539,14 +893,37 @@ func (m *PrivacyKVToken) GetKV() []*KeyValue { ...@@ -539,14 +893,37 @@ func (m *PrivacyKVToken) GetKV() []*KeyValue {
} }
type ReceiptsAndPrivacyKV struct { type ReceiptsAndPrivacyKV struct {
Receipts *Receipts `protobuf:"bytes,1,opt,name=receipts" json:"receipts,omitempty"` Receipts *Receipts `protobuf:"bytes,1,opt,name=receipts,proto3" json:"receipts,omitempty"`
PrivacyKV *PrivacyKV `protobuf:"bytes,2,opt,name=privacyKV" json:"privacyKV,omitempty"` PrivacyKV *PrivacyKV `protobuf:"bytes,2,opt,name=privacyKV,proto3" json:"privacyKV,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptsAndPrivacyKV) Reset() { *m = ReceiptsAndPrivacyKV{} } func (m *ReceiptsAndPrivacyKV) Reset() { *m = ReceiptsAndPrivacyKV{} }
func (m *ReceiptsAndPrivacyKV) String() string { return proto.CompactTextString(m) } func (m *ReceiptsAndPrivacyKV) String() string { return proto.CompactTextString(m) }
func (*ReceiptsAndPrivacyKV) ProtoMessage() {} func (*ReceiptsAndPrivacyKV) ProtoMessage() {}
func (*ReceiptsAndPrivacyKV) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{15} } func (*ReceiptsAndPrivacyKV) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{15}
}
func (m *ReceiptsAndPrivacyKV) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptsAndPrivacyKV.Unmarshal(m, b)
}
func (m *ReceiptsAndPrivacyKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptsAndPrivacyKV.Marshal(b, m, deterministic)
}
func (m *ReceiptsAndPrivacyKV) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptsAndPrivacyKV.Merge(m, src)
}
func (m *ReceiptsAndPrivacyKV) XXX_Size() int {
return xxx_messageInfo_ReceiptsAndPrivacyKV.Size(m)
}
func (m *ReceiptsAndPrivacyKV) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptsAndPrivacyKV.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptsAndPrivacyKV proto.InternalMessageInfo
func (m *ReceiptsAndPrivacyKV) GetReceipts() *Receipts { func (m *ReceiptsAndPrivacyKV) GetReceipts() *Receipts {
if m != nil { if m != nil {
...@@ -563,13 +940,36 @@ func (m *ReceiptsAndPrivacyKV) GetPrivacyKV() *PrivacyKV { ...@@ -563,13 +940,36 @@ func (m *ReceiptsAndPrivacyKV) GetPrivacyKV() *PrivacyKV {
} }
type ReceiptCheckTxList struct { type ReceiptCheckTxList struct {
Errs []string `protobuf:"bytes,1,rep,name=errs" json:"errs,omitempty"` 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 (m *ReceiptCheckTxList) Reset() { *m = ReceiptCheckTxList{} }
func (m *ReceiptCheckTxList) String() string { return proto.CompactTextString(m) }
func (*ReceiptCheckTxList) ProtoMessage() {}
func (*ReceiptCheckTxList) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{16}
}
func (m *ReceiptCheckTxList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptCheckTxList.Unmarshal(m, b)
}
func (m *ReceiptCheckTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptCheckTxList.Marshal(b, m, deterministic)
}
func (m *ReceiptCheckTxList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptCheckTxList.Merge(m, src)
}
func (m *ReceiptCheckTxList) XXX_Size() int {
return xxx_messageInfo_ReceiptCheckTxList.Size(m)
}
func (m *ReceiptCheckTxList) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptCheckTxList.DiscardUnknown(m)
} }
func (m *ReceiptCheckTxList) Reset() { *m = ReceiptCheckTxList{} } var xxx_messageInfo_ReceiptCheckTxList proto.InternalMessageInfo
func (m *ReceiptCheckTxList) String() string { return proto.CompactTextString(m) }
func (*ReceiptCheckTxList) ProtoMessage() {}
func (*ReceiptCheckTxList) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{16} }
func (m *ReceiptCheckTxList) GetErrs() []string { func (m *ReceiptCheckTxList) GetErrs() []string {
if m != nil { if m != nil {
...@@ -578,20 +978,43 @@ func (m *ReceiptCheckTxList) GetErrs() []string { ...@@ -578,20 +978,43 @@ func (m *ReceiptCheckTxList) GetErrs() []string {
return nil return nil
} }
// 区块链状态 //区块链状态
// currentHeight : 区块最新高度 // currentHeight : 区块最新高度
// mempoolSize :内存池大小 // mempoolSize :内存池大小
// msgQueueSize : 消息队列大小 // msgQueueSize : 消息队列大小
type ChainStatus struct { type ChainStatus struct {
CurrentHeight int64 `protobuf:"varint,1,opt,name=currentHeight" json:"currentHeight,omitempty"` CurrentHeight int64 `protobuf:"varint,1,opt,name=currentHeight,proto3" json:"currentHeight,omitempty"`
MempoolSize int64 `protobuf:"varint,2,opt,name=mempoolSize" json:"mempoolSize,omitempty"` MempoolSize int64 `protobuf:"varint,2,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
MsgQueueSize int64 `protobuf:"varint,3,opt,name=msgQueueSize" json:"msgQueueSize,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:"-"`
}
func (m *ChainStatus) Reset() { *m = ChainStatus{} }
func (m *ChainStatus) String() string { return proto.CompactTextString(m) }
func (*ChainStatus) ProtoMessage() {}
func (*ChainStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{17}
} }
func (m *ChainStatus) Reset() { *m = ChainStatus{} } func (m *ChainStatus) XXX_Unmarshal(b []byte) error {
func (m *ChainStatus) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_ChainStatus.Unmarshal(m, b)
func (*ChainStatus) ProtoMessage() {} }
func (*ChainStatus) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{17} } func (m *ChainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChainStatus.Marshal(b, m, deterministic)
}
func (m *ChainStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChainStatus.Merge(m, src)
}
func (m *ChainStatus) XXX_Size() int {
return xxx_messageInfo_ChainStatus.Size(m)
}
func (m *ChainStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ChainStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ChainStatus proto.InternalMessageInfo
func (m *ChainStatus) GetCurrentHeight() int64 { func (m *ChainStatus) GetCurrentHeight() int64 {
if m != nil { if m != nil {
...@@ -614,22 +1037,45 @@ func (m *ChainStatus) GetMsgQueueSize() int64 { ...@@ -614,22 +1037,45 @@ func (m *ChainStatus) GetMsgQueueSize() int64 {
return 0 return 0
} }
// 获取区块信息 //获取区块信息
// start : 获取区块的开始高度 // start : 获取区块的开始高度
// end :获取区块的结束高度 // end :获取区块的结束高度
// Isdetail : 是否需要获取区块的详细信息 // Isdetail : 是否需要获取区块的详细信息
// pid : peer列表 // pid : peer列表
type ReqBlocks struct { type ReqBlocks struct {
Start int64 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
IsDetail bool `protobuf:"varint,3,opt,name=isDetail" json:"isDetail,omitempty"` IsDetail bool `protobuf:"varint,3,opt,name=isDetail,proto3" json:"isDetail,omitempty"`
Pid []string `protobuf:"bytes,4,rep,name=pid" json:"pid,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:"-"`
} }
func (m *ReqBlocks) Reset() { *m = ReqBlocks{} } func (m *ReqBlocks) Reset() { *m = ReqBlocks{} }
func (m *ReqBlocks) String() string { return proto.CompactTextString(m) } func (m *ReqBlocks) String() string { return proto.CompactTextString(m) }
func (*ReqBlocks) ProtoMessage() {} func (*ReqBlocks) ProtoMessage() {}
func (*ReqBlocks) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{18} } func (*ReqBlocks) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{18}
}
func (m *ReqBlocks) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqBlocks.Unmarshal(m, b)
}
func (m *ReqBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqBlocks.Marshal(b, m, deterministic)
}
func (m *ReqBlocks) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqBlocks.Merge(m, src)
}
func (m *ReqBlocks) XXX_Size() int {
return xxx_messageInfo_ReqBlocks.Size(m)
}
func (m *ReqBlocks) XXX_DiscardUnknown() {
xxx_messageInfo_ReqBlocks.DiscardUnknown(m)
}
var xxx_messageInfo_ReqBlocks proto.InternalMessageInfo
func (m *ReqBlocks) GetStart() int64 { func (m *ReqBlocks) GetStart() int64 {
if m != nil { if m != nil {
...@@ -660,13 +1106,36 @@ func (m *ReqBlocks) GetPid() []string { ...@@ -660,13 +1106,36 @@ func (m *ReqBlocks) GetPid() []string {
} }
type MempoolSize struct { type MempoolSize struct {
Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` 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 (m *MempoolSize) Reset() { *m = MempoolSize{} } func (m *MempoolSize) Reset() { *m = MempoolSize{} }
func (m *MempoolSize) String() string { return proto.CompactTextString(m) } func (m *MempoolSize) String() string { return proto.CompactTextString(m) }
func (*MempoolSize) ProtoMessage() {} func (*MempoolSize) ProtoMessage() {}
func (*MempoolSize) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{19} } func (*MempoolSize) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{19}
}
func (m *MempoolSize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MempoolSize.Unmarshal(m, b)
}
func (m *MempoolSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MempoolSize.Marshal(b, m, deterministic)
}
func (m *MempoolSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_MempoolSize.Merge(m, src)
}
func (m *MempoolSize) XXX_Size() int {
return xxx_messageInfo_MempoolSize.Size(m)
}
func (m *MempoolSize) XXX_DiscardUnknown() {
xxx_messageInfo_MempoolSize.DiscardUnknown(m)
}
var xxx_messageInfo_MempoolSize proto.InternalMessageInfo
func (m *MempoolSize) GetSize() int64 { func (m *MempoolSize) GetSize() int64 {
if m != nil { if m != nil {
...@@ -676,13 +1145,36 @@ func (m *MempoolSize) GetSize() int64 { ...@@ -676,13 +1145,36 @@ func (m *MempoolSize) GetSize() int64 {
} }
type ReplyBlockHeight struct { type ReplyBlockHeight struct {
Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"` 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 (m *ReplyBlockHeight) Reset() { *m = ReplyBlockHeight{} } func (m *ReplyBlockHeight) Reset() { *m = ReplyBlockHeight{} }
func (m *ReplyBlockHeight) String() string { return proto.CompactTextString(m) } func (m *ReplyBlockHeight) String() string { return proto.CompactTextString(m) }
func (*ReplyBlockHeight) ProtoMessage() {} func (*ReplyBlockHeight) ProtoMessage() {}
func (*ReplyBlockHeight) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{20} } func (*ReplyBlockHeight) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{20}
}
func (m *ReplyBlockHeight) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyBlockHeight.Unmarshal(m, b)
}
func (m *ReplyBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyBlockHeight.Marshal(b, m, deterministic)
}
func (m *ReplyBlockHeight) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyBlockHeight.Merge(m, src)
}
func (m *ReplyBlockHeight) XXX_Size() int {
return xxx_messageInfo_ReplyBlockHeight.Size(m)
}
func (m *ReplyBlockHeight) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyBlockHeight.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyBlockHeight proto.InternalMessageInfo
func (m *ReplyBlockHeight) GetHeight() int64 { func (m *ReplyBlockHeight) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -691,20 +1183,43 @@ func (m *ReplyBlockHeight) GetHeight() int64 { ...@@ -691,20 +1183,43 @@ func (m *ReplyBlockHeight) GetHeight() int64 {
return 0 return 0
} }
// 区块体信息 //区块体信息
// txs : 区块上所有交易列表 // txs : 区块上所有交易列表
// receipts :区块上所有交易的收据信息列表 // receipts :区块上所有交易的收据信息列表
type BlockBody struct { type BlockBody struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs" json:"txs,omitempty"` Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
Receipts []*ReceiptData `protobuf:"bytes,2,rep,name=receipts" json:"receipts,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"` MainHash []byte `protobuf:"bytes,3,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight int64 `protobuf:"varint,4,opt,name=mainHeight" json:"mainHeight,omitempty"` MainHeight int64 `protobuf:"varint,4,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockBody) Reset() { *m = BlockBody{} }
func (m *BlockBody) String() string { return proto.CompactTextString(m) }
func (*BlockBody) ProtoMessage() {}
func (*BlockBody) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{21}
} }
func (m *BlockBody) Reset() { *m = BlockBody{} } func (m *BlockBody) XXX_Unmarshal(b []byte) error {
func (m *BlockBody) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_BlockBody.Unmarshal(m, b)
func (*BlockBody) ProtoMessage() {} }
func (*BlockBody) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{21} } func (m *BlockBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockBody.Marshal(b, m, deterministic)
}
func (m *BlockBody) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockBody.Merge(m, src)
}
func (m *BlockBody) XXX_Size() int {
return xxx_messageInfo_BlockBody.Size(m)
}
func (m *BlockBody) XXX_DiscardUnknown() {
xxx_messageInfo_BlockBody.DiscardUnknown(m)
}
var xxx_messageInfo_BlockBody proto.InternalMessageInfo
func (m *BlockBody) GetTxs() []*Transaction { func (m *BlockBody) GetTxs() []*Transaction {
if m != nil { if m != nil {
...@@ -736,13 +1251,36 @@ func (m *BlockBody) GetMainHeight() int64 { ...@@ -736,13 +1251,36 @@ func (m *BlockBody) GetMainHeight() int64 {
// 区块追赶主链状态,用于判断本节点区块是否已经同步好 // 区块追赶主链状态,用于判断本节点区块是否已经同步好
type IsCaughtUp struct { type IsCaughtUp struct {
Iscaughtup bool `protobuf:"varint,1,opt,name=Iscaughtup" json:"Iscaughtup,omitempty"` 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 (m *IsCaughtUp) Reset() { *m = IsCaughtUp{} } func (m *IsCaughtUp) Reset() { *m = IsCaughtUp{} }
func (m *IsCaughtUp) String() string { return proto.CompactTextString(m) } func (m *IsCaughtUp) String() string { return proto.CompactTextString(m) }
func (*IsCaughtUp) ProtoMessage() {} func (*IsCaughtUp) ProtoMessage() {}
func (*IsCaughtUp) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{22} } func (*IsCaughtUp) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{22}
}
func (m *IsCaughtUp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IsCaughtUp.Unmarshal(m, b)
}
func (m *IsCaughtUp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IsCaughtUp.Marshal(b, m, deterministic)
}
func (m *IsCaughtUp) XXX_Merge(src proto.Message) {
xxx_messageInfo_IsCaughtUp.Merge(m, src)
}
func (m *IsCaughtUp) XXX_Size() int {
return xxx_messageInfo_IsCaughtUp.Size(m)
}
func (m *IsCaughtUp) XXX_DiscardUnknown() {
xxx_messageInfo_IsCaughtUp.DiscardUnknown(m)
}
var xxx_messageInfo_IsCaughtUp proto.InternalMessageInfo
func (m *IsCaughtUp) GetIscaughtup() bool { func (m *IsCaughtUp) GetIscaughtup() bool {
if m != nil { if m != nil {
...@@ -753,13 +1291,36 @@ func (m *IsCaughtUp) GetIscaughtup() bool { ...@@ -753,13 +1291,36 @@ func (m *IsCaughtUp) GetIscaughtup() bool {
// ntp时钟状态 // ntp时钟状态
type IsNtpClockSync struct { type IsNtpClockSync struct {
Isntpclocksync bool `protobuf:"varint,1,opt,name=isntpclocksync" json:"isntpclocksync,omitempty"` Isntpclocksync bool `protobuf:"varint,1,opt,name=isntpclocksync,proto3" json:"isntpclocksync,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IsNtpClockSync) Reset() { *m = IsNtpClockSync{} }
func (m *IsNtpClockSync) String() string { return proto.CompactTextString(m) }
func (*IsNtpClockSync) ProtoMessage() {}
func (*IsNtpClockSync) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{23}
}
func (m *IsNtpClockSync) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IsNtpClockSync.Unmarshal(m, b)
}
func (m *IsNtpClockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IsNtpClockSync.Marshal(b, m, deterministic)
}
func (m *IsNtpClockSync) XXX_Merge(src proto.Message) {
xxx_messageInfo_IsNtpClockSync.Merge(m, src)
}
func (m *IsNtpClockSync) XXX_Size() int {
return xxx_messageInfo_IsNtpClockSync.Size(m)
}
func (m *IsNtpClockSync) XXX_DiscardUnknown() {
xxx_messageInfo_IsNtpClockSync.DiscardUnknown(m)
} }
func (m *IsNtpClockSync) Reset() { *m = IsNtpClockSync{} } var xxx_messageInfo_IsNtpClockSync proto.InternalMessageInfo
func (m *IsNtpClockSync) String() string { return proto.CompactTextString(m) }
func (*IsNtpClockSync) ProtoMessage() {}
func (*IsNtpClockSync) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{23} }
func (m *IsNtpClockSync) GetIsntpclocksync() bool { func (m *IsNtpClockSync) GetIsntpclocksync() bool {
if m != nil { if m != nil {
...@@ -769,18 +1330,41 @@ func (m *IsNtpClockSync) GetIsntpclocksync() bool { ...@@ -769,18 +1330,41 @@ func (m *IsNtpClockSync) GetIsntpclocksync() bool {
} }
type ChainExecutor struct { type ChainExecutor struct {
Driver string `protobuf:"bytes,1,opt,name=driver" json:"driver,omitempty"` Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
FuncName string `protobuf:"bytes,2,opt,name=funcName" json:"funcName,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"` StateHash []byte `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Param []byte `protobuf:"bytes,4,opt,name=param,proto3" json:"param,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"` 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 (m *ChainExecutor) Reset() { *m = ChainExecutor{} } func (m *ChainExecutor) Reset() { *m = ChainExecutor{} }
func (m *ChainExecutor) String() string { return proto.CompactTextString(m) } func (m *ChainExecutor) String() string { return proto.CompactTextString(m) }
func (*ChainExecutor) ProtoMessage() {} func (*ChainExecutor) ProtoMessage() {}
func (*ChainExecutor) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} } func (*ChainExecutor) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{24}
}
func (m *ChainExecutor) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChainExecutor.Unmarshal(m, b)
}
func (m *ChainExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChainExecutor.Marshal(b, m, deterministic)
}
func (m *ChainExecutor) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChainExecutor.Merge(m, src)
}
func (m *ChainExecutor) XXX_Size() int {
return xxx_messageInfo_ChainExecutor.Size(m)
}
func (m *ChainExecutor) XXX_DiscardUnknown() {
xxx_messageInfo_ChainExecutor.DiscardUnknown(m)
}
var xxx_messageInfo_ChainExecutor proto.InternalMessageInfo
func (m *ChainExecutor) GetDriver() string { func (m *ChainExecutor) GetDriver() string {
if m != nil { if m != nil {
...@@ -819,14 +1403,37 @@ func (m *ChainExecutor) GetExtra() []byte { ...@@ -819,14 +1403,37 @@ func (m *ChainExecutor) GetExtra() []byte {
// 通过block hash记录block的操作类型及add/del:1/2 // 通过block hash记录block的操作类型及add/del:1/2
type BlockSequence struct { type BlockSequence struct {
Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
Type int64 `protobuf:"varint,2,opt,name=Type" json:"Type,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:"-"`
}
func (m *BlockSequence) Reset() { *m = BlockSequence{} }
func (m *BlockSequence) String() string { return proto.CompactTextString(m) }
func (*BlockSequence) ProtoMessage() {}
func (*BlockSequence) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{25}
}
func (m *BlockSequence) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockSequence.Unmarshal(m, b)
}
func (m *BlockSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockSequence.Marshal(b, m, deterministic)
}
func (m *BlockSequence) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockSequence.Merge(m, src)
}
func (m *BlockSequence) XXX_Size() int {
return xxx_messageInfo_BlockSequence.Size(m)
}
func (m *BlockSequence) XXX_DiscardUnknown() {
xxx_messageInfo_BlockSequence.DiscardUnknown(m)
} }
func (m *BlockSequence) Reset() { *m = BlockSequence{} } var xxx_messageInfo_BlockSequence proto.InternalMessageInfo
func (m *BlockSequence) String() string { return proto.CompactTextString(m) }
func (*BlockSequence) ProtoMessage() {}
func (*BlockSequence) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{25} }
func (m *BlockSequence) GetHash() []byte { func (m *BlockSequence) GetHash() []byte {
if m != nil { if m != nil {
...@@ -844,13 +1451,36 @@ func (m *BlockSequence) GetType() int64 { ...@@ -844,13 +1451,36 @@ func (m *BlockSequence) GetType() int64 {
// resp // resp
type BlockSequences struct { type BlockSequences struct {
Items []*BlockSequence `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` Items []*BlockSequence `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockSequences) Reset() { *m = BlockSequences{} }
func (m *BlockSequences) String() string { return proto.CompactTextString(m) }
func (*BlockSequences) ProtoMessage() {}
func (*BlockSequences) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{26}
} }
func (m *BlockSequences) Reset() { *m = BlockSequences{} } func (m *BlockSequences) XXX_Unmarshal(b []byte) error {
func (m *BlockSequences) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_BlockSequences.Unmarshal(m, b)
func (*BlockSequences) ProtoMessage() {} }
func (*BlockSequences) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{26} } func (m *BlockSequences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockSequences.Marshal(b, m, deterministic)
}
func (m *BlockSequences) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockSequences.Merge(m, src)
}
func (m *BlockSequences) XXX_Size() int {
return xxx_messageInfo_BlockSequences.Size(m)
}
func (m *BlockSequences) XXX_DiscardUnknown() {
xxx_messageInfo_BlockSequences.DiscardUnknown(m)
}
var xxx_messageInfo_BlockSequences proto.InternalMessageInfo
func (m *BlockSequences) GetItems() []*BlockSequence { func (m *BlockSequences) GetItems() []*BlockSequence {
if m != nil { if m != nil {
...@@ -859,18 +1489,41 @@ func (m *BlockSequences) GetItems() []*BlockSequence { ...@@ -859,18 +1489,41 @@ func (m *BlockSequences) GetItems() []*BlockSequence {
return nil return nil
} }
// 平行链区块详细信息 //平行链区块详细信息
// blockdetail : 区块详细信息 // blockdetail : 区块详细信息
// sequence :区块序列号 // sequence :区块序列号
type ParaChainBlockDetail struct { type ParaChainBlockDetail struct {
Blockdetail *BlockDetail `protobuf:"bytes,1,opt,name=blockdetail" json:"blockdetail,omitempty"` Blockdetail *BlockDetail `protobuf:"bytes,1,opt,name=blockdetail,proto3" json:"blockdetail,omitempty"`
Sequence int64 `protobuf:"varint,2,opt,name=sequence" json:"sequence,omitempty"` Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParaChainBlockDetail) Reset() { *m = ParaChainBlockDetail{} }
func (m *ParaChainBlockDetail) String() string { return proto.CompactTextString(m) }
func (*ParaChainBlockDetail) ProtoMessage() {}
func (*ParaChainBlockDetail) Descriptor() ([]byte, []int) {
return fileDescriptor_e9ac6287ce250c9a, []int{27}
}
func (m *ParaChainBlockDetail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParaChainBlockDetail.Unmarshal(m, b)
}
func (m *ParaChainBlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParaChainBlockDetail.Marshal(b, m, deterministic)
}
func (m *ParaChainBlockDetail) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParaChainBlockDetail.Merge(m, src)
}
func (m *ParaChainBlockDetail) XXX_Size() int {
return xxx_messageInfo_ParaChainBlockDetail.Size(m)
}
func (m *ParaChainBlockDetail) XXX_DiscardUnknown() {
xxx_messageInfo_ParaChainBlockDetail.DiscardUnknown(m)
} }
func (m *ParaChainBlockDetail) Reset() { *m = ParaChainBlockDetail{} } var xxx_messageInfo_ParaChainBlockDetail proto.InternalMessageInfo
func (m *ParaChainBlockDetail) String() string { return proto.CompactTextString(m) }
func (*ParaChainBlockDetail) ProtoMessage() {}
func (*ParaChainBlockDetail) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{27} }
func (m *ParaChainBlockDetail) GetBlockdetail() *BlockDetail { func (m *ParaChainBlockDetail) GetBlockdetail() *BlockDetail {
if m != nil { if m != nil {
...@@ -917,9 +1570,9 @@ func init() { ...@@ -917,9 +1570,9 @@ func init() {
proto.RegisterType((*ParaChainBlockDetail)(nil), "types.ParaChainBlockDetail") proto.RegisterType((*ParaChainBlockDetail)(nil), "types.ParaChainBlockDetail")
} }
func init() { proto.RegisterFile("blockchain.proto", fileDescriptor1) } func init() { proto.RegisterFile("blockchain.proto", fileDescriptor_e9ac6287ce250c9a) }
var fileDescriptor1 = []byte{ var fileDescriptor_e9ac6287ce250c9a = []byte{
// 1135 bytes of a gzipped FileDescriptorProto // 1135 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0xdd, 0x6e, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
0x14, 0xd6, 0xfa, 0x2f, 0xf6, 0xf1, 0x0f, 0xe9, 0xc8, 0x20, 0x2b, 0x02, 0xea, 0x0e, 0x55, 0xb1, 0x14, 0xd6, 0xfa, 0x2f, 0xf6, 0xf1, 0x0f, 0xe9, 0xc8, 0x20, 0x2b, 0x02, 0xea, 0x0e, 0x55, 0xb1,
......
...@@ -3,24 +3,56 @@ ...@@ -3,24 +3,56 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Reply struct { type Reply struct {
IsOk bool `protobuf:"varint,1,opt,name=isOk" json:"isOk,omitempty"` IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,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 (m *Reply) Reset() { *m = Reply{} }
func (m *Reply) String() string { return proto.CompactTextString(m) }
func (*Reply) ProtoMessage() {}
func (*Reply) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{0}
}
func (m *Reply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Reply.Unmarshal(m, b)
}
func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Reply.Marshal(b, m, deterministic)
}
func (m *Reply) XXX_Merge(src proto.Message) {
xxx_messageInfo_Reply.Merge(m, src)
}
func (m *Reply) XXX_Size() int {
return xxx_messageInfo_Reply.Size(m)
}
func (m *Reply) XXX_DiscardUnknown() {
xxx_messageInfo_Reply.DiscardUnknown(m)
} }
func (m *Reply) Reset() { *m = Reply{} } var xxx_messageInfo_Reply proto.InternalMessageInfo
func (m *Reply) String() string { return proto.CompactTextString(m) }
func (*Reply) ProtoMessage() {}
func (*Reply) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *Reply) GetIsOk() bool { func (m *Reply) GetIsOk() bool {
if m != nil { if m != nil {
...@@ -37,13 +69,36 @@ func (m *Reply) GetMsg() []byte { ...@@ -37,13 +69,36 @@ func (m *Reply) GetMsg() []byte {
} }
type ReqString struct { type ReqString struct {
Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` 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 (m *ReqString) Reset() { *m = ReqString{} }
func (m *ReqString) String() string { return proto.CompactTextString(m) }
func (*ReqString) ProtoMessage() {}
func (*ReqString) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{1}
}
func (m *ReqString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqString.Unmarshal(m, b)
}
func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqString.Marshal(b, m, deterministic)
}
func (m *ReqString) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqString.Merge(m, src)
}
func (m *ReqString) XXX_Size() int {
return xxx_messageInfo_ReqString.Size(m)
}
func (m *ReqString) XXX_DiscardUnknown() {
xxx_messageInfo_ReqString.DiscardUnknown(m)
} }
func (m *ReqString) Reset() { *m = ReqString{} } var xxx_messageInfo_ReqString proto.InternalMessageInfo
func (m *ReqString) String() string { return proto.CompactTextString(m) }
func (*ReqString) ProtoMessage() {}
func (*ReqString) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *ReqString) GetData() string { func (m *ReqString) GetData() string {
if m != nil { if m != nil {
...@@ -53,13 +108,36 @@ func (m *ReqString) GetData() string { ...@@ -53,13 +108,36 @@ func (m *ReqString) GetData() string {
} }
type ReplyString struct { type ReplyString struct {
Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` 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 (m *ReplyString) Reset() { *m = ReplyString{} } func (m *ReplyString) Reset() { *m = ReplyString{} }
func (m *ReplyString) String() string { return proto.CompactTextString(m) } func (m *ReplyString) String() string { return proto.CompactTextString(m) }
func (*ReplyString) ProtoMessage() {} func (*ReplyString) ProtoMessage() {}
func (*ReplyString) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} } func (*ReplyString) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{2}
}
func (m *ReplyString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyString.Unmarshal(m, b)
}
func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyString.Marshal(b, m, deterministic)
}
func (m *ReplyString) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyString.Merge(m, src)
}
func (m *ReplyString) XXX_Size() int {
return xxx_messageInfo_ReplyString.Size(m)
}
func (m *ReplyString) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyString.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyString proto.InternalMessageInfo
func (m *ReplyString) GetData() string { func (m *ReplyString) GetData() string {
if m != nil { if m != nil {
...@@ -69,13 +147,36 @@ func (m *ReplyString) GetData() string { ...@@ -69,13 +147,36 @@ func (m *ReplyString) GetData() string {
} }
type ReplyStrings struct { type ReplyStrings struct {
Datas []string `protobuf:"bytes,1,rep,name=datas" json:"datas,omitempty"` 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 (m *ReplyStrings) Reset() { *m = ReplyStrings{} } func (m *ReplyStrings) Reset() { *m = ReplyStrings{} }
func (m *ReplyStrings) String() string { return proto.CompactTextString(m) } func (m *ReplyStrings) String() string { return proto.CompactTextString(m) }
func (*ReplyStrings) ProtoMessage() {} func (*ReplyStrings) ProtoMessage() {}
func (*ReplyStrings) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} } func (*ReplyStrings) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{3}
}
func (m *ReplyStrings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyStrings.Unmarshal(m, b)
}
func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyStrings.Marshal(b, m, deterministic)
}
func (m *ReplyStrings) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyStrings.Merge(m, src)
}
func (m *ReplyStrings) XXX_Size() int {
return xxx_messageInfo_ReplyStrings.Size(m)
}
func (m *ReplyStrings) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyStrings.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyStrings proto.InternalMessageInfo
func (m *ReplyStrings) GetDatas() []string { func (m *ReplyStrings) GetDatas() []string {
if m != nil { if m != nil {
...@@ -85,13 +186,36 @@ func (m *ReplyStrings) GetDatas() []string { ...@@ -85,13 +186,36 @@ func (m *ReplyStrings) GetDatas() []string {
} }
type ReqInt struct { type ReqInt struct {
Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"` 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 (m *ReqInt) Reset() { *m = ReqInt{} } func (m *ReqInt) Reset() { *m = ReqInt{} }
func (m *ReqInt) String() string { return proto.CompactTextString(m) } func (m *ReqInt) String() string { return proto.CompactTextString(m) }
func (*ReqInt) ProtoMessage() {} func (*ReqInt) ProtoMessage() {}
func (*ReqInt) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} } func (*ReqInt) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{4}
}
func (m *ReqInt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqInt.Unmarshal(m, b)
}
func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqInt.Marshal(b, m, deterministic)
}
func (m *ReqInt) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqInt.Merge(m, src)
}
func (m *ReqInt) XXX_Size() int {
return xxx_messageInfo_ReqInt.Size(m)
}
func (m *ReqInt) XXX_DiscardUnknown() {
xxx_messageInfo_ReqInt.DiscardUnknown(m)
}
var xxx_messageInfo_ReqInt proto.InternalMessageInfo
func (m *ReqInt) GetHeight() int64 { func (m *ReqInt) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -101,13 +225,36 @@ func (m *ReqInt) GetHeight() int64 { ...@@ -101,13 +225,36 @@ func (m *ReqInt) GetHeight() int64 {
} }
type Int64 struct { type Int64 struct {
Data int64 `protobuf:"varint,1,opt,name=data" json:"data,omitempty"` 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 (m *Int64) Reset() { *m = Int64{} } func (m *Int64) Reset() { *m = Int64{} }
func (m *Int64) String() string { return proto.CompactTextString(m) } func (m *Int64) String() string { return proto.CompactTextString(m) }
func (*Int64) ProtoMessage() {} func (*Int64) ProtoMessage() {}
func (*Int64) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} } func (*Int64) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{5}
}
func (m *Int64) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Int64.Unmarshal(m, b)
}
func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Int64.Marshal(b, m, deterministic)
}
func (m *Int64) XXX_Merge(src proto.Message) {
xxx_messageInfo_Int64.Merge(m, src)
}
func (m *Int64) XXX_Size() int {
return xxx_messageInfo_Int64.Size(m)
}
func (m *Int64) XXX_DiscardUnknown() {
xxx_messageInfo_Int64.DiscardUnknown(m)
}
var xxx_messageInfo_Int64 proto.InternalMessageInfo
func (m *Int64) GetData() int64 { func (m *Int64) GetData() int64 {
if m != nil { if m != nil {
...@@ -117,14 +264,37 @@ func (m *Int64) GetData() int64 { ...@@ -117,14 +264,37 @@ func (m *Int64) GetData() int64 {
} }
type ReqHash struct { type ReqHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Upgrade bool `protobuf:"varint,2,opt,name=upgrade" json:"upgrade,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 (m *ReqHash) Reset() { *m = ReqHash{} }
func (m *ReqHash) String() string { return proto.CompactTextString(m) }
func (*ReqHash) ProtoMessage() {}
func (*ReqHash) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{6}
} }
func (m *ReqHash) Reset() { *m = ReqHash{} } func (m *ReqHash) XXX_Unmarshal(b []byte) error {
func (m *ReqHash) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_ReqHash.Unmarshal(m, b)
func (*ReqHash) ProtoMessage() {} }
func (*ReqHash) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} } func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqHash.Marshal(b, m, deterministic)
}
func (m *ReqHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqHash.Merge(m, src)
}
func (m *ReqHash) XXX_Size() int {
return xxx_messageInfo_ReqHash.Size(m)
}
func (m *ReqHash) XXX_DiscardUnknown() {
xxx_messageInfo_ReqHash.DiscardUnknown(m)
}
var xxx_messageInfo_ReqHash proto.InternalMessageInfo
func (m *ReqHash) GetHash() []byte { func (m *ReqHash) GetHash() []byte {
if m != nil { if m != nil {
...@@ -141,13 +311,36 @@ func (m *ReqHash) GetUpgrade() bool { ...@@ -141,13 +311,36 @@ func (m *ReqHash) GetUpgrade() bool {
} }
type ReplyHash struct { type ReplyHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 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 (m *ReplyHash) Reset() { *m = ReplyHash{} } func (m *ReplyHash) Reset() { *m = ReplyHash{} }
func (m *ReplyHash) String() string { return proto.CompactTextString(m) } func (m *ReplyHash) String() string { return proto.CompactTextString(m) }
func (*ReplyHash) ProtoMessage() {} func (*ReplyHash) ProtoMessage() {}
func (*ReplyHash) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} } func (*ReplyHash) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{7}
}
func (m *ReplyHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyHash.Unmarshal(m, b)
}
func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyHash.Marshal(b, m, deterministic)
}
func (m *ReplyHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyHash.Merge(m, src)
}
func (m *ReplyHash) XXX_Size() int {
return xxx_messageInfo_ReplyHash.Size(m)
}
func (m *ReplyHash) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyHash.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyHash proto.InternalMessageInfo
func (m *ReplyHash) GetHash() []byte { func (m *ReplyHash) GetHash() []byte {
if m != nil { if m != nil {
...@@ -157,21 +350,67 @@ func (m *ReplyHash) GetHash() []byte { ...@@ -157,21 +350,67 @@ func (m *ReplyHash) GetHash() []byte {
} }
type ReqNil struct { type ReqNil struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqNil) Reset() { *m = ReqNil{} }
func (m *ReqNil) String() string { return proto.CompactTextString(m) }
func (*ReqNil) ProtoMessage() {}
func (*ReqNil) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{8}
}
func (m *ReqNil) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqNil.Unmarshal(m, b)
}
func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqNil.Marshal(b, m, deterministic)
}
func (m *ReqNil) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqNil.Merge(m, src)
}
func (m *ReqNil) XXX_Size() int {
return xxx_messageInfo_ReqNil.Size(m)
}
func (m *ReqNil) XXX_DiscardUnknown() {
xxx_messageInfo_ReqNil.DiscardUnknown(m)
} }
func (m *ReqNil) Reset() { *m = ReqNil{} } var xxx_messageInfo_ReqNil proto.InternalMessageInfo
func (m *ReqNil) String() string { return proto.CompactTextString(m) }
func (*ReqNil) ProtoMessage() {}
func (*ReqNil) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
type ReqHashes struct { type ReqHashes struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` 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 (m *ReqHashes) Reset() { *m = ReqHashes{} }
func (m *ReqHashes) String() string { return proto.CompactTextString(m) }
func (*ReqHashes) ProtoMessage() {}
func (*ReqHashes) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{9}
}
func (m *ReqHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqHashes.Unmarshal(m, b)
}
func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqHashes.Marshal(b, m, deterministic)
}
func (m *ReqHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqHashes.Merge(m, src)
}
func (m *ReqHashes) XXX_Size() int {
return xxx_messageInfo_ReqHashes.Size(m)
}
func (m *ReqHashes) XXX_DiscardUnknown() {
xxx_messageInfo_ReqHashes.DiscardUnknown(m)
} }
func (m *ReqHashes) Reset() { *m = ReqHashes{} } var xxx_messageInfo_ReqHashes proto.InternalMessageInfo
func (m *ReqHashes) String() string { return proto.CompactTextString(m) }
func (*ReqHashes) ProtoMessage() {}
func (*ReqHashes) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
func (m *ReqHashes) GetHashes() [][]byte { func (m *ReqHashes) GetHashes() [][]byte {
if m != nil { if m != nil {
...@@ -181,13 +420,36 @@ func (m *ReqHashes) GetHashes() [][]byte { ...@@ -181,13 +420,36 @@ func (m *ReqHashes) GetHashes() [][]byte {
} }
type ReplyHashes struct { type ReplyHashes struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` 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 (m *ReplyHashes) Reset() { *m = ReplyHashes{} } func (m *ReplyHashes) Reset() { *m = ReplyHashes{} }
func (m *ReplyHashes) String() string { return proto.CompactTextString(m) } func (m *ReplyHashes) String() string { return proto.CompactTextString(m) }
func (*ReplyHashes) ProtoMessage() {} func (*ReplyHashes) ProtoMessage() {}
func (*ReplyHashes) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} } func (*ReplyHashes) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{10}
}
func (m *ReplyHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyHashes.Unmarshal(m, b)
}
func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyHashes.Marshal(b, m, deterministic)
}
func (m *ReplyHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyHashes.Merge(m, src)
}
func (m *ReplyHashes) XXX_Size() int {
return xxx_messageInfo_ReplyHashes.Size(m)
}
func (m *ReplyHashes) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyHashes.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyHashes proto.InternalMessageInfo
func (m *ReplyHashes) GetHashes() [][]byte { func (m *ReplyHashes) GetHashes() [][]byte {
if m != nil { if m != nil {
...@@ -197,14 +459,37 @@ func (m *ReplyHashes) GetHashes() [][]byte { ...@@ -197,14 +459,37 @@ func (m *ReplyHashes) GetHashes() [][]byte {
} }
type KeyValue struct { type KeyValue struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,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 (m *KeyValue) Reset() { *m = KeyValue{} } func (m *KeyValue) Reset() { *m = KeyValue{} }
func (m *KeyValue) String() string { return proto.CompactTextString(m) } func (m *KeyValue) String() string { return proto.CompactTextString(m) }
func (*KeyValue) ProtoMessage() {} func (*KeyValue) ProtoMessage() {}
func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} } func (*KeyValue) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{11}
}
func (m *KeyValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyValue.Unmarshal(m, b)
}
func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic)
}
func (m *KeyValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyValue.Merge(m, src)
}
func (m *KeyValue) XXX_Size() int {
return xxx_messageInfo_KeyValue.Size(m)
}
func (m *KeyValue) XXX_DiscardUnknown() {
xxx_messageInfo_KeyValue.DiscardUnknown(m)
}
var xxx_messageInfo_KeyValue proto.InternalMessageInfo
func (m *KeyValue) GetKey() []byte { func (m *KeyValue) GetKey() []byte {
if m != nil { if m != nil {
...@@ -221,13 +506,36 @@ func (m *KeyValue) GetValue() []byte { ...@@ -221,13 +506,36 @@ func (m *KeyValue) GetValue() []byte {
} }
type TxHash struct { type TxHash struct {
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` 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 (m *TxHash) Reset() { *m = TxHash{} } func (m *TxHash) Reset() { *m = TxHash{} }
func (m *TxHash) String() string { return proto.CompactTextString(m) } func (m *TxHash) String() string { return proto.CompactTextString(m) }
func (*TxHash) ProtoMessage() {} func (*TxHash) ProtoMessage() {}
func (*TxHash) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{12} } func (*TxHash) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{12}
}
func (m *TxHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxHash.Unmarshal(m, b)
}
func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxHash.Marshal(b, m, deterministic)
}
func (m *TxHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxHash.Merge(m, src)
}
func (m *TxHash) XXX_Size() int {
return xxx_messageInfo_TxHash.Size(m)
}
func (m *TxHash) XXX_DiscardUnknown() {
xxx_messageInfo_TxHash.DiscardUnknown(m)
}
var xxx_messageInfo_TxHash proto.InternalMessageInfo
func (m *TxHash) GetHash() string { func (m *TxHash) GetHash() string {
if m != nil { if m != nil {
...@@ -237,15 +545,38 @@ func (m *TxHash) GetHash() string { ...@@ -237,15 +545,38 @@ func (m *TxHash) GetHash() string {
} }
type TimeStatus struct { type TimeStatus struct {
NtpTime string `protobuf:"bytes,1,opt,name=ntpTime" json:"ntpTime,omitempty"` NtpTime string `protobuf:"bytes,1,opt,name=ntpTime,proto3" json:"ntpTime,omitempty"`
LocalTime string `protobuf:"bytes,2,opt,name=localTime" json:"localTime,omitempty"` LocalTime string `protobuf:"bytes,2,opt,name=localTime,proto3" json:"localTime,omitempty"`
Diff int64 `protobuf:"varint,3,opt,name=diff" json:"diff,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 (m *TimeStatus) Reset() { *m = TimeStatus{} } func (m *TimeStatus) Reset() { *m = TimeStatus{} }
func (m *TimeStatus) String() string { return proto.CompactTextString(m) } func (m *TimeStatus) String() string { return proto.CompactTextString(m) }
func (*TimeStatus) ProtoMessage() {} func (*TimeStatus) ProtoMessage() {}
func (*TimeStatus) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{13} } func (*TimeStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{13}
}
func (m *TimeStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TimeStatus.Unmarshal(m, b)
}
func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TimeStatus.Marshal(b, m, deterministic)
}
func (m *TimeStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_TimeStatus.Merge(m, src)
}
func (m *TimeStatus) XXX_Size() int {
return xxx_messageInfo_TimeStatus.Size(m)
}
func (m *TimeStatus) XXX_DiscardUnknown() {
xxx_messageInfo_TimeStatus.DiscardUnknown(m)
}
var xxx_messageInfo_TimeStatus proto.InternalMessageInfo
func (m *TimeStatus) GetNtpTime() string { func (m *TimeStatus) GetNtpTime() string {
if m != nil { if m != nil {
...@@ -269,13 +600,36 @@ func (m *TimeStatus) GetDiff() int64 { ...@@ -269,13 +600,36 @@ func (m *TimeStatus) GetDiff() int64 {
} }
type ReqKey struct { type ReqKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 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 (m *ReqKey) Reset() { *m = ReqKey{} }
func (m *ReqKey) String() string { return proto.CompactTextString(m) }
func (*ReqKey) ProtoMessage() {}
func (*ReqKey) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{14}
}
func (m *ReqKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqKey.Unmarshal(m, b)
}
func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqKey.Marshal(b, m, deterministic)
}
func (m *ReqKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqKey.Merge(m, src)
}
func (m *ReqKey) XXX_Size() int {
return xxx_messageInfo_ReqKey.Size(m)
}
func (m *ReqKey) XXX_DiscardUnknown() {
xxx_messageInfo_ReqKey.DiscardUnknown(m)
} }
func (m *ReqKey) Reset() { *m = ReqKey{} } var xxx_messageInfo_ReqKey proto.InternalMessageInfo
func (m *ReqKey) String() string { return proto.CompactTextString(m) }
func (*ReqKey) ProtoMessage() {}
func (*ReqKey) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{14} }
func (m *ReqKey) GetKey() []byte { func (m *ReqKey) GetKey() []byte {
if m != nil { if m != nil {
...@@ -285,16 +639,39 @@ func (m *ReqKey) GetKey() []byte { ...@@ -285,16 +639,39 @@ func (m *ReqKey) GetKey() []byte {
} }
type ReqRandHash struct { type ReqRandHash struct {
ExecName string `protobuf:"bytes,1,opt,name=execName" json:"execName,omitempty"` ExecName string `protobuf:"bytes,1,opt,name=execName,proto3" json:"execName,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
BlockNum int64 `protobuf:"varint,3,opt,name=blockNum" json:"blockNum,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"` 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 (m *ReqRandHash) Reset() { *m = ReqRandHash{} }
func (m *ReqRandHash) String() string { return proto.CompactTextString(m) }
func (*ReqRandHash) ProtoMessage() {}
func (*ReqRandHash) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{15}
}
func (m *ReqRandHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqRandHash.Unmarshal(m, b)
}
func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqRandHash.Marshal(b, m, deterministic)
}
func (m *ReqRandHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqRandHash.Merge(m, src)
}
func (m *ReqRandHash) XXX_Size() int {
return xxx_messageInfo_ReqRandHash.Size(m)
}
func (m *ReqRandHash) XXX_DiscardUnknown() {
xxx_messageInfo_ReqRandHash.DiscardUnknown(m)
} }
func (m *ReqRandHash) Reset() { *m = ReqRandHash{} } var xxx_messageInfo_ReqRandHash proto.InternalMessageInfo
func (m *ReqRandHash) String() string { return proto.CompactTextString(m) }
func (*ReqRandHash) ProtoMessage() {}
func (*ReqRandHash) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{15} }
func (m *ReqRandHash) GetExecName() string { func (m *ReqRandHash) GetExecName() string {
if m != nil { if m != nil {
...@@ -324,19 +701,42 @@ func (m *ReqRandHash) GetHash() []byte { ...@@ -324,19 +701,42 @@ func (m *ReqRandHash) GetHash() []byte {
return nil return nil
} }
// * //*
// 当前软件版本信息 //当前软件版本信息
type VersionInfo struct { type VersionInfo struct {
Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
App string `protobuf:"bytes,2,opt,name=app" json:"app,omitempty"` App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
Chain33 string `protobuf:"bytes,3,opt,name=chain33" json:"chain33,omitempty"` Chain33 string `protobuf:"bytes,3,opt,name=chain33,proto3" json:"chain33,omitempty"`
LocalDb string `protobuf:"bytes,4,opt,name=localDb" json:"localDb,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 (m *VersionInfo) Reset() { *m = VersionInfo{} }
func (m *VersionInfo) String() string { return proto.CompactTextString(m) }
func (*VersionInfo) ProtoMessage() {}
func (*VersionInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{16}
}
func (m *VersionInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VersionInfo.Unmarshal(m, b)
}
func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VersionInfo.Marshal(b, m, deterministic)
}
func (m *VersionInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_VersionInfo.Merge(m, src)
}
func (m *VersionInfo) XXX_Size() int {
return xxx_messageInfo_VersionInfo.Size(m)
}
func (m *VersionInfo) XXX_DiscardUnknown() {
xxx_messageInfo_VersionInfo.DiscardUnknown(m)
} }
func (m *VersionInfo) Reset() { *m = VersionInfo{} } var xxx_messageInfo_VersionInfo proto.InternalMessageInfo
func (m *VersionInfo) String() string { return proto.CompactTextString(m) }
func (*VersionInfo) ProtoMessage() {}
func (*VersionInfo) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{16} }
func (m *VersionInfo) GetTitle() string { func (m *VersionInfo) GetTitle() string {
if m != nil { if m != nil {
...@@ -386,9 +786,9 @@ func init() { ...@@ -386,9 +786,9 @@ func init() {
proto.RegisterType((*VersionInfo)(nil), "types.VersionInfo") proto.RegisterType((*VersionInfo)(nil), "types.VersionInfo")
} }
func init() { proto.RegisterFile("common.proto", fileDescriptor2) } func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) }
var fileDescriptor2 = []byte{ var fileDescriptor_555bd8c177793206 = []byte{
// 456 bytes of a gzipped FileDescriptorProto // 456 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xdf, 0x8b, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xdf, 0x8b, 0xd3, 0x40,
0x10, 0xa6, 0xcd, 0xb5, 0x97, 0xcc, 0xe5, 0x41, 0x82, 0x48, 0x38, 0x4f, 0xae, 0xae, 0x0a, 0x7d, 0x10, 0xa6, 0xcd, 0xb5, 0x97, 0xcc, 0xe5, 0x41, 0x82, 0x48, 0x38, 0x4f, 0xae, 0xae, 0x0a, 0x7d,
......
...@@ -3,27 +3,59 @@ ...@@ -3,27 +3,59 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// merkle avl tree // merkle avl tree
type LeafNode struct { type LeafNode struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"` Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size" json:"size,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 (m *LeafNode) Reset() { *m = LeafNode{} }
func (m *LeafNode) String() string { return proto.CompactTextString(m) }
func (*LeafNode) ProtoMessage() {}
func (*LeafNode) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{0}
}
func (m *LeafNode) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LeafNode.Unmarshal(m, b)
}
func (m *LeafNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LeafNode.Marshal(b, m, deterministic)
}
func (m *LeafNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_LeafNode.Merge(m, src)
}
func (m *LeafNode) XXX_Size() int {
return xxx_messageInfo_LeafNode.Size(m)
}
func (m *LeafNode) XXX_DiscardUnknown() {
xxx_messageInfo_LeafNode.DiscardUnknown(m)
} }
func (m *LeafNode) Reset() { *m = LeafNode{} } var xxx_messageInfo_LeafNode proto.InternalMessageInfo
func (m *LeafNode) String() string { return proto.CompactTextString(m) }
func (*LeafNode) ProtoMessage() {}
func (*LeafNode) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *LeafNode) GetKey() []byte { func (m *LeafNode) GetKey() []byte {
if m != nil { if m != nil {
...@@ -54,16 +86,39 @@ func (m *LeafNode) GetSize() int32 { ...@@ -54,16 +86,39 @@ func (m *LeafNode) GetSize() int32 {
} }
type InnerNode struct { type InnerNode struct {
LeftHash []byte `protobuf:"bytes,1,opt,name=leftHash,proto3" json:"leftHash,omitempty"` LeftHash []byte `protobuf:"bytes,1,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
RightHash []byte `protobuf:"bytes,2,opt,name=rightHash,proto3" json:"rightHash,omitempty"` RightHash []byte `protobuf:"bytes,2,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"` Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size" json:"size,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 (m *InnerNode) Reset() { *m = InnerNode{} }
func (m *InnerNode) String() string { return proto.CompactTextString(m) }
func (*InnerNode) ProtoMessage() {}
func (*InnerNode) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{1}
}
func (m *InnerNode) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InnerNode.Unmarshal(m, b)
}
func (m *InnerNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InnerNode.Marshal(b, m, deterministic)
}
func (m *InnerNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_InnerNode.Merge(m, src)
}
func (m *InnerNode) XXX_Size() int {
return xxx_messageInfo_InnerNode.Size(m)
}
func (m *InnerNode) XXX_DiscardUnknown() {
xxx_messageInfo_InnerNode.DiscardUnknown(m)
} }
func (m *InnerNode) Reset() { *m = InnerNode{} } var xxx_messageInfo_InnerNode proto.InternalMessageInfo
func (m *InnerNode) String() string { return proto.CompactTextString(m) }
func (*InnerNode) ProtoMessage() {}
func (*InnerNode) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
func (m *InnerNode) GetLeftHash() []byte { func (m *InnerNode) GetLeftHash() []byte {
if m != nil { if m != nil {
...@@ -94,15 +149,38 @@ func (m *InnerNode) GetSize() int32 { ...@@ -94,15 +149,38 @@ func (m *InnerNode) GetSize() int32 {
} }
type MAVLProof struct { type MAVLProof struct {
LeafHash []byte `protobuf:"bytes,1,opt,name=leafHash,proto3" json:"leafHash,omitempty"` LeafHash []byte `protobuf:"bytes,1,opt,name=leafHash,proto3" json:"leafHash,omitempty"`
InnerNodes []*InnerNode `protobuf:"bytes,2,rep,name=innerNodes" json:"innerNodes,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"` 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 (m *MAVLProof) Reset() { *m = MAVLProof{} } func (m *MAVLProof) Reset() { *m = MAVLProof{} }
func (m *MAVLProof) String() string { return proto.CompactTextString(m) } func (m *MAVLProof) String() string { return proto.CompactTextString(m) }
func (*MAVLProof) ProtoMessage() {} func (*MAVLProof) ProtoMessage() {}
func (*MAVLProof) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} } func (*MAVLProof) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{2}
}
func (m *MAVLProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MAVLProof.Unmarshal(m, b)
}
func (m *MAVLProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MAVLProof.Marshal(b, m, deterministic)
}
func (m *MAVLProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_MAVLProof.Merge(m, src)
}
func (m *MAVLProof) XXX_Size() int {
return xxx_messageInfo_MAVLProof.Size(m)
}
func (m *MAVLProof) XXX_DiscardUnknown() {
xxx_messageInfo_MAVLProof.DiscardUnknown(m)
}
var xxx_messageInfo_MAVLProof proto.InternalMessageInfo
func (m *MAVLProof) GetLeafHash() []byte { func (m *MAVLProof) GetLeafHash() []byte {
if m != nil { if m != nil {
...@@ -126,18 +204,41 @@ func (m *MAVLProof) GetRootHash() []byte { ...@@ -126,18 +204,41 @@ func (m *MAVLProof) GetRootHash() []byte {
} }
type StoreNode struct { type StoreNode struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,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"` LeftHash []byte `protobuf:"bytes,3,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
RightHash []byte `protobuf:"bytes,4,opt,name=rightHash,proto3" json:"rightHash,omitempty"` RightHash []byte `protobuf:"bytes,4,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
Height int32 `protobuf:"varint,5,opt,name=height" json:"height,omitempty"` Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Size int32 `protobuf:"varint,6,opt,name=size" json:"size,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 (m *StoreNode) Reset() { *m = StoreNode{} } func (m *StoreNode) Reset() { *m = StoreNode{} }
func (m *StoreNode) String() string { return proto.CompactTextString(m) } func (m *StoreNode) String() string { return proto.CompactTextString(m) }
func (*StoreNode) ProtoMessage() {} func (*StoreNode) ProtoMessage() {}
func (*StoreNode) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{3} } func (*StoreNode) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{3}
}
func (m *StoreNode) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreNode.Unmarshal(m, b)
}
func (m *StoreNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreNode.Marshal(b, m, deterministic)
}
func (m *StoreNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreNode.Merge(m, src)
}
func (m *StoreNode) XXX_Size() int {
return xxx_messageInfo_StoreNode.Size(m)
}
func (m *StoreNode) XXX_DiscardUnknown() {
xxx_messageInfo_StoreNode.DiscardUnknown(m)
}
var xxx_messageInfo_StoreNode proto.InternalMessageInfo
func (m *StoreNode) GetKey() []byte { func (m *StoreNode) GetKey() []byte {
if m != nil { if m != nil {
...@@ -182,14 +283,37 @@ func (m *StoreNode) GetSize() int32 { ...@@ -182,14 +283,37 @@ func (m *StoreNode) GetSize() int32 {
} }
type LocalDBSet struct { type LocalDBSet struct {
KV []*KeyValue `protobuf:"bytes,2,rep,name=KV" json:"KV,omitempty"` KV []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
Txid int64 `protobuf:"varint,5,opt,name=txid" json:"txid,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 (m *LocalDBSet) Reset() { *m = LocalDBSet{} }
func (m *LocalDBSet) String() string { return proto.CompactTextString(m) }
func (*LocalDBSet) ProtoMessage() {}
func (*LocalDBSet) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{4}
} }
func (m *LocalDBSet) Reset() { *m = LocalDBSet{} } func (m *LocalDBSet) XXX_Unmarshal(b []byte) error {
func (m *LocalDBSet) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_LocalDBSet.Unmarshal(m, b)
func (*LocalDBSet) ProtoMessage() {} }
func (*LocalDBSet) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{4} } func (m *LocalDBSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalDBSet.Marshal(b, m, deterministic)
}
func (m *LocalDBSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalDBSet.Merge(m, src)
}
func (m *LocalDBSet) XXX_Size() int {
return xxx_messageInfo_LocalDBSet.Size(m)
}
func (m *LocalDBSet) XXX_DiscardUnknown() {
xxx_messageInfo_LocalDBSet.DiscardUnknown(m)
}
var xxx_messageInfo_LocalDBSet proto.InternalMessageInfo
func (m *LocalDBSet) GetKV() []*KeyValue { func (m *LocalDBSet) GetKV() []*KeyValue {
if m != nil { if m != nil {
...@@ -206,17 +330,40 @@ func (m *LocalDBSet) GetTxid() int64 { ...@@ -206,17 +330,40 @@ func (m *LocalDBSet) GetTxid() int64 {
} }
type LocalDBList struct { type LocalDBList struct {
Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Direction int32 `protobuf:"varint,3,opt,name=direction" json:"direction,omitempty"` Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
Txid int64 `protobuf:"varint,5,opt,name=txid" json:"txid,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 (m *LocalDBList) Reset() { *m = LocalDBList{} }
func (m *LocalDBList) String() string { return proto.CompactTextString(m) }
func (*LocalDBList) ProtoMessage() {}
func (*LocalDBList) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{5}
} }
func (m *LocalDBList) Reset() { *m = LocalDBList{} } func (m *LocalDBList) XXX_Unmarshal(b []byte) error {
func (m *LocalDBList) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_LocalDBList.Unmarshal(m, b)
func (*LocalDBList) ProtoMessage() {} }
func (*LocalDBList) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{5} } func (m *LocalDBList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalDBList.Marshal(b, m, deterministic)
}
func (m *LocalDBList) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalDBList.Merge(m, src)
}
func (m *LocalDBList) XXX_Size() int {
return xxx_messageInfo_LocalDBList.Size(m)
}
func (m *LocalDBList) XXX_DiscardUnknown() {
xxx_messageInfo_LocalDBList.DiscardUnknown(m)
}
var xxx_messageInfo_LocalDBList proto.InternalMessageInfo
func (m *LocalDBList) GetPrefix() []byte { func (m *LocalDBList) GetPrefix() []byte {
if m != nil { if m != nil {
...@@ -254,14 +401,37 @@ func (m *LocalDBList) GetTxid() int64 { ...@@ -254,14 +401,37 @@ func (m *LocalDBList) GetTxid() int64 {
} }
type LocalDBGet struct { type LocalDBGet struct {
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
Txid int64 `protobuf:"varint,5,opt,name=txid" json:"txid,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 (m *LocalDBGet) Reset() { *m = LocalDBGet{} } func (m *LocalDBGet) Reset() { *m = LocalDBGet{} }
func (m *LocalDBGet) String() string { return proto.CompactTextString(m) } func (m *LocalDBGet) String() string { return proto.CompactTextString(m) }
func (*LocalDBGet) ProtoMessage() {} func (*LocalDBGet) ProtoMessage() {}
func (*LocalDBGet) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{6} } func (*LocalDBGet) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{6}
}
func (m *LocalDBGet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LocalDBGet.Unmarshal(m, b)
}
func (m *LocalDBGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalDBGet.Marshal(b, m, deterministic)
}
func (m *LocalDBGet) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalDBGet.Merge(m, src)
}
func (m *LocalDBGet) XXX_Size() int {
return xxx_messageInfo_LocalDBGet.Size(m)
}
func (m *LocalDBGet) XXX_DiscardUnknown() {
xxx_messageInfo_LocalDBGet.DiscardUnknown(m)
}
var xxx_messageInfo_LocalDBGet proto.InternalMessageInfo
func (m *LocalDBGet) GetKeys() [][]byte { func (m *LocalDBGet) GetKeys() [][]byte {
if m != nil { if m != nil {
...@@ -278,13 +448,36 @@ func (m *LocalDBGet) GetTxid() int64 { ...@@ -278,13 +448,36 @@ func (m *LocalDBGet) GetTxid() int64 {
} }
type LocalReplyValue struct { type LocalReplyValue struct {
Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` 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 (m *LocalReplyValue) Reset() { *m = LocalReplyValue{} } func (m *LocalReplyValue) Reset() { *m = LocalReplyValue{} }
func (m *LocalReplyValue) String() string { return proto.CompactTextString(m) } func (m *LocalReplyValue) String() string { return proto.CompactTextString(m) }
func (*LocalReplyValue) ProtoMessage() {} func (*LocalReplyValue) ProtoMessage() {}
func (*LocalReplyValue) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{7} } func (*LocalReplyValue) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{7}
}
func (m *LocalReplyValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LocalReplyValue.Unmarshal(m, b)
}
func (m *LocalReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalReplyValue.Marshal(b, m, deterministic)
}
func (m *LocalReplyValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalReplyValue.Merge(m, src)
}
func (m *LocalReplyValue) XXX_Size() int {
return xxx_messageInfo_LocalReplyValue.Size(m)
}
func (m *LocalReplyValue) XXX_DiscardUnknown() {
xxx_messageInfo_LocalReplyValue.DiscardUnknown(m)
}
var xxx_messageInfo_LocalReplyValue proto.InternalMessageInfo
func (m *LocalReplyValue) GetValues() [][]byte { func (m *LocalReplyValue) GetValues() [][]byte {
if m != nil { if m != nil {
...@@ -294,15 +487,38 @@ func (m *LocalReplyValue) GetValues() [][]byte { ...@@ -294,15 +487,38 @@ func (m *LocalReplyValue) GetValues() [][]byte {
} }
type StoreSet struct { type StoreSet struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
KV []*KeyValue `protobuf:"bytes,2,rep,name=KV" json:"KV,omitempty"` KV []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height" json:"height,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 (m *StoreSet) Reset() { *m = StoreSet{} }
func (m *StoreSet) String() string { return proto.CompactTextString(m) }
func (*StoreSet) ProtoMessage() {}
func (*StoreSet) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{8}
}
func (m *StoreSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreSet.Unmarshal(m, b)
}
func (m *StoreSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreSet.Marshal(b, m, deterministic)
}
func (m *StoreSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreSet.Merge(m, src)
}
func (m *StoreSet) XXX_Size() int {
return xxx_messageInfo_StoreSet.Size(m)
}
func (m *StoreSet) XXX_DiscardUnknown() {
xxx_messageInfo_StoreSet.DiscardUnknown(m)
} }
func (m *StoreSet) Reset() { *m = StoreSet{} } var xxx_messageInfo_StoreSet proto.InternalMessageInfo
func (m *StoreSet) String() string { return proto.CompactTextString(m) }
func (*StoreSet) ProtoMessage() {}
func (*StoreSet) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{8} }
func (m *StoreSet) GetStateHash() []byte { func (m *StoreSet) GetStateHash() []byte {
if m != nil { if m != nil {
...@@ -326,14 +542,37 @@ func (m *StoreSet) GetHeight() int64 { ...@@ -326,14 +542,37 @@ func (m *StoreSet) GetHeight() int64 {
} }
type StoreDel struct { type StoreDel struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height" json:"height,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 (m *StoreDel) Reset() { *m = StoreDel{} }
func (m *StoreDel) String() string { return proto.CompactTextString(m) }
func (*StoreDel) ProtoMessage() {}
func (*StoreDel) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{9}
}
func (m *StoreDel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreDel.Unmarshal(m, b)
}
func (m *StoreDel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreDel.Marshal(b, m, deterministic)
}
func (m *StoreDel) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreDel.Merge(m, src)
}
func (m *StoreDel) XXX_Size() int {
return xxx_messageInfo_StoreDel.Size(m)
}
func (m *StoreDel) XXX_DiscardUnknown() {
xxx_messageInfo_StoreDel.DiscardUnknown(m)
} }
func (m *StoreDel) Reset() { *m = StoreDel{} } var xxx_messageInfo_StoreDel proto.InternalMessageInfo
func (m *StoreDel) String() string { return proto.CompactTextString(m) }
func (*StoreDel) ProtoMessage() {}
func (*StoreDel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{9} }
func (m *StoreDel) GetStateHash() []byte { func (m *StoreDel) GetStateHash() []byte {
if m != nil { if m != nil {
...@@ -350,15 +589,38 @@ func (m *StoreDel) GetHeight() int64 { ...@@ -350,15 +589,38 @@ func (m *StoreDel) GetHeight() int64 {
} }
type StoreSetWithSync struct { type StoreSetWithSync struct {
Storeset *StoreSet `protobuf:"bytes,1,opt,name=storeset" json:"storeset,omitempty"` Storeset *StoreSet `protobuf:"bytes,1,opt,name=storeset,proto3" json:"storeset,omitempty"`
Sync bool `protobuf:"varint,2,opt,name=sync" json:"sync,omitempty"` Sync bool `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"`
Upgrade bool `protobuf:"varint,3,opt,name=upgrade" json:"upgrade,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 (m *StoreSetWithSync) Reset() { *m = StoreSetWithSync{} } func (m *StoreSetWithSync) Reset() { *m = StoreSetWithSync{} }
func (m *StoreSetWithSync) String() string { return proto.CompactTextString(m) } func (m *StoreSetWithSync) String() string { return proto.CompactTextString(m) }
func (*StoreSetWithSync) ProtoMessage() {} func (*StoreSetWithSync) ProtoMessage() {}
func (*StoreSetWithSync) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{10} } func (*StoreSetWithSync) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{10}
}
func (m *StoreSetWithSync) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreSetWithSync.Unmarshal(m, b)
}
func (m *StoreSetWithSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreSetWithSync.Marshal(b, m, deterministic)
}
func (m *StoreSetWithSync) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreSetWithSync.Merge(m, src)
}
func (m *StoreSetWithSync) XXX_Size() int {
return xxx_messageInfo_StoreSetWithSync.Size(m)
}
func (m *StoreSetWithSync) XXX_DiscardUnknown() {
xxx_messageInfo_StoreSetWithSync.DiscardUnknown(m)
}
var xxx_messageInfo_StoreSetWithSync proto.InternalMessageInfo
func (m *StoreSetWithSync) GetStoreset() *StoreSet { func (m *StoreSetWithSync) GetStoreset() *StoreSet {
if m != nil { if m != nil {
...@@ -382,14 +644,37 @@ func (m *StoreSetWithSync) GetUpgrade() bool { ...@@ -382,14 +644,37 @@ func (m *StoreSetWithSync) GetUpgrade() bool {
} }
type StoreGet struct { type StoreGet struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,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 (m *StoreGet) Reset() { *m = StoreGet{} } func (m *StoreGet) Reset() { *m = StoreGet{} }
func (m *StoreGet) String() string { return proto.CompactTextString(m) } func (m *StoreGet) String() string { return proto.CompactTextString(m) }
func (*StoreGet) ProtoMessage() {} func (*StoreGet) ProtoMessage() {}
func (*StoreGet) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{11} } func (*StoreGet) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{11}
}
func (m *StoreGet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreGet.Unmarshal(m, b)
}
func (m *StoreGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreGet.Marshal(b, m, deterministic)
}
func (m *StoreGet) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreGet.Merge(m, src)
}
func (m *StoreGet) XXX_Size() int {
return xxx_messageInfo_StoreGet.Size(m)
}
func (m *StoreGet) XXX_DiscardUnknown() {
xxx_messageInfo_StoreGet.DiscardUnknown(m)
}
var xxx_messageInfo_StoreGet proto.InternalMessageInfo
func (m *StoreGet) GetStateHash() []byte { func (m *StoreGet) GetStateHash() []byte {
if m != nil { if m != nil {
...@@ -406,13 +691,36 @@ func (m *StoreGet) GetKeys() [][]byte { ...@@ -406,13 +691,36 @@ func (m *StoreGet) GetKeys() [][]byte {
} }
type StoreReplyValue struct { type StoreReplyValue struct {
Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` 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 (m *StoreReplyValue) Reset() { *m = StoreReplyValue{} }
func (m *StoreReplyValue) String() string { return proto.CompactTextString(m) }
func (*StoreReplyValue) ProtoMessage() {}
func (*StoreReplyValue) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{12}
}
func (m *StoreReplyValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreReplyValue.Unmarshal(m, b)
}
func (m *StoreReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreReplyValue.Marshal(b, m, deterministic)
}
func (m *StoreReplyValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreReplyValue.Merge(m, src)
}
func (m *StoreReplyValue) XXX_Size() int {
return xxx_messageInfo_StoreReplyValue.Size(m)
}
func (m *StoreReplyValue) XXX_DiscardUnknown() {
xxx_messageInfo_StoreReplyValue.DiscardUnknown(m)
} }
func (m *StoreReplyValue) Reset() { *m = StoreReplyValue{} } var xxx_messageInfo_StoreReplyValue proto.InternalMessageInfo
func (m *StoreReplyValue) String() string { return proto.CompactTextString(m) }
func (*StoreReplyValue) ProtoMessage() {}
func (*StoreReplyValue) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{12} }
func (m *StoreReplyValue) GetValues() [][]byte { func (m *StoreReplyValue) GetValues() [][]byte {
if m != nil { if m != nil {
...@@ -422,18 +730,41 @@ func (m *StoreReplyValue) GetValues() [][]byte { ...@@ -422,18 +730,41 @@ func (m *StoreReplyValue) GetValues() [][]byte {
} }
type StoreList struct { type StoreList struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Start []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,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"` End []byte `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
Suffix []byte `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"` Suffix []byte `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
Count int64 `protobuf:"varint,5,opt,name=count" json:"count,omitempty"` Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
Mode int64 `protobuf:"varint,6,opt,name=mode" json:"mode,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 (m *StoreList) Reset() { *m = StoreList{} }
func (m *StoreList) String() string { return proto.CompactTextString(m) }
func (*StoreList) ProtoMessage() {}
func (*StoreList) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{13}
}
func (m *StoreList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreList.Unmarshal(m, b)
}
func (m *StoreList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreList.Marshal(b, m, deterministic)
}
func (m *StoreList) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreList.Merge(m, src)
}
func (m *StoreList) XXX_Size() int {
return xxx_messageInfo_StoreList.Size(m)
}
func (m *StoreList) XXX_DiscardUnknown() {
xxx_messageInfo_StoreList.DiscardUnknown(m)
} }
func (m *StoreList) Reset() { *m = StoreList{} } var xxx_messageInfo_StoreList proto.InternalMessageInfo
func (m *StoreList) String() string { return proto.CompactTextString(m) }
func (*StoreList) ProtoMessage() {}
func (*StoreList) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{13} }
func (m *StoreList) GetStateHash() []byte { func (m *StoreList) GetStateHash() []byte {
if m != nil { if m != nil {
...@@ -478,21 +809,44 @@ func (m *StoreList) GetMode() int64 { ...@@ -478,21 +809,44 @@ func (m *StoreList) GetMode() int64 {
} }
type StoreListReply struct { type StoreListReply struct {
Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,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"` Suffix []byte `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
Num int64 `protobuf:"varint,5,opt,name=num" json:"num,omitempty"` Num int64 `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"`
Mode int64 `protobuf:"varint,6,opt,name=mode" json:"mode,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"` NextKey []byte `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
Keys [][]byte `protobuf:"bytes,8,rep,name=keys,proto3" json:"keys,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"` Values [][]byte `protobuf:"bytes,9,rep,name=values,proto3" json:"values,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *StoreListReply) Reset() { *m = StoreListReply{} } XXX_sizecache int32 `json:"-"`
func (m *StoreListReply) String() string { return proto.CompactTextString(m) } }
func (*StoreListReply) ProtoMessage() {}
func (*StoreListReply) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{14} } func (m *StoreListReply) Reset() { *m = StoreListReply{} }
func (m *StoreListReply) String() string { return proto.CompactTextString(m) }
func (*StoreListReply) ProtoMessage() {}
func (*StoreListReply) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{14}
}
func (m *StoreListReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreListReply.Unmarshal(m, b)
}
func (m *StoreListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreListReply.Marshal(b, m, deterministic)
}
func (m *StoreListReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreListReply.Merge(m, src)
}
func (m *StoreListReply) XXX_Size() int {
return xxx_messageInfo_StoreListReply.Size(m)
}
func (m *StoreListReply) XXX_DiscardUnknown() {
xxx_messageInfo_StoreListReply.DiscardUnknown(m)
}
var xxx_messageInfo_StoreListReply proto.InternalMessageInfo
func (m *StoreListReply) GetStart() []byte { func (m *StoreListReply) GetStart() []byte {
if m != nil { if m != nil {
...@@ -559,13 +913,36 @@ func (m *StoreListReply) GetValues() [][]byte { ...@@ -559,13 +913,36 @@ func (m *StoreListReply) GetValues() [][]byte {
type PruneData struct { type PruneData struct {
// 该叶子节点的所有父hash // 该叶子节点的所有父hash
Hashs [][]byte `protobuf:"bytes,1,rep,name=hashs,proto3" json:"hashs,omitempty"` 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 (m *PruneData) Reset() { *m = PruneData{} }
func (m *PruneData) String() string { return proto.CompactTextString(m) }
func (*PruneData) ProtoMessage() {}
func (*PruneData) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{15}
}
func (m *PruneData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PruneData.Unmarshal(m, b)
}
func (m *PruneData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PruneData.Marshal(b, m, deterministic)
}
func (m *PruneData) XXX_Merge(src proto.Message) {
xxx_messageInfo_PruneData.Merge(m, src)
}
func (m *PruneData) XXX_Size() int {
return xxx_messageInfo_PruneData.Size(m)
}
func (m *PruneData) XXX_DiscardUnknown() {
xxx_messageInfo_PruneData.DiscardUnknown(m)
} }
func (m *PruneData) Reset() { *m = PruneData{} } var xxx_messageInfo_PruneData proto.InternalMessageInfo
func (m *PruneData) String() string { return proto.CompactTextString(m) }
func (*PruneData) ProtoMessage() {}
func (*PruneData) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{15} }
func (m *PruneData) GetHashs() [][]byte { func (m *PruneData) GetHashs() [][]byte {
if m != nil { if m != nil {
...@@ -574,15 +951,38 @@ func (m *PruneData) GetHashs() [][]byte { ...@@ -574,15 +951,38 @@ func (m *PruneData) GetHashs() [][]byte {
return nil return nil
} }
// 用于存储db Pool数据的Value //用于存储db Pool数据的Value
type StoreValuePool struct { type StoreValuePool struct {
Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StoreValuePool) Reset() { *m = StoreValuePool{} }
func (m *StoreValuePool) String() string { return proto.CompactTextString(m) }
func (*StoreValuePool) ProtoMessage() {}
func (*StoreValuePool) Descriptor() ([]byte, []int) {
return fileDescriptor_8817812184a13374, []int{16}
}
func (m *StoreValuePool) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StoreValuePool.Unmarshal(m, b)
}
func (m *StoreValuePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StoreValuePool.Marshal(b, m, deterministic)
}
func (m *StoreValuePool) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreValuePool.Merge(m, src)
}
func (m *StoreValuePool) XXX_Size() int {
return xxx_messageInfo_StoreValuePool.Size(m)
}
func (m *StoreValuePool) XXX_DiscardUnknown() {
xxx_messageInfo_StoreValuePool.DiscardUnknown(m)
} }
func (m *StoreValuePool) Reset() { *m = StoreValuePool{} } var xxx_messageInfo_StoreValuePool proto.InternalMessageInfo
func (m *StoreValuePool) String() string { return proto.CompactTextString(m) }
func (*StoreValuePool) ProtoMessage() {}
func (*StoreValuePool) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{16} }
func (m *StoreValuePool) GetValues() [][]byte { func (m *StoreValuePool) GetValues() [][]byte {
if m != nil { if m != nil {
...@@ -611,9 +1011,9 @@ func init() { ...@@ -611,9 +1011,9 @@ func init() {
proto.RegisterType((*StoreValuePool)(nil), "types.StoreValuePool") proto.RegisterType((*StoreValuePool)(nil), "types.StoreValuePool")
} }
func init() { proto.RegisterFile("db.proto", fileDescriptor3) } func init() { proto.RegisterFile("db.proto", fileDescriptor_8817812184a13374) }
var fileDescriptor3 = []byte{ var fileDescriptor_8817812184a13374 = []byte{
// 654 bytes of a gzipped FileDescriptorProto // 654 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6a, 0xdb, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6a, 0xdb, 0x40,
0x10, 0x45, 0x92, 0x9d, 0x48, 0x93, 0xd0, 0x18, 0x11, 0x8a, 0x08, 0x29, 0x49, 0x75, 0x72, 0x29, 0x10, 0x45, 0x92, 0x9d, 0x48, 0x93, 0xd0, 0x18, 0x11, 0x8a, 0x08, 0x29, 0x49, 0x75, 0x72, 0x29,
......
...@@ -3,23 +3,55 @@ ...@@ -3,23 +3,55 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Genesis struct { type Genesis struct {
Isrun bool `protobuf:"varint,1,opt,name=isrun" json:"isrun,omitempty"` 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 (m *Genesis) Reset() { *m = Genesis{} } func (m *Genesis) Reset() { *m = Genesis{} }
func (m *Genesis) String() string { return proto.CompactTextString(m) } func (m *Genesis) String() string { return proto.CompactTextString(m) }
func (*Genesis) ProtoMessage() {} func (*Genesis) ProtoMessage() {}
func (*Genesis) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} } func (*Genesis) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{0}
}
func (m *Genesis) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Genesis.Unmarshal(m, b)
}
func (m *Genesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Genesis.Marshal(b, m, deterministic)
}
func (m *Genesis) XXX_Merge(src proto.Message) {
xxx_messageInfo_Genesis.Merge(m, src)
}
func (m *Genesis) XXX_Size() int {
return xxx_messageInfo_Genesis.Size(m)
}
func (m *Genesis) XXX_DiscardUnknown() {
xxx_messageInfo_Genesis.DiscardUnknown(m)
}
var xxx_messageInfo_Genesis proto.InternalMessageInfo
func (m *Genesis) GetIsrun() bool { func (m *Genesis) GetIsrun() bool {
if m != nil { if m != nil {
...@@ -29,21 +61,44 @@ func (m *Genesis) GetIsrun() bool { ...@@ -29,21 +61,44 @@ func (m *Genesis) GetIsrun() bool {
} }
type ExecTxList struct { type ExecTxList struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
ParentHash []byte `protobuf:"bytes,7,opt,name=parentHash,proto3" json:"parentHash,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"` MainHash []byte `protobuf:"bytes,8,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight int64 `protobuf:"varint,9,opt,name=mainHeight" json:"mainHeight,omitempty"` MainHeight int64 `protobuf:"varint,9,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
BlockTime int64 `protobuf:"varint,3,opt,name=blockTime" json:"blockTime,omitempty"` BlockTime int64 `protobuf:"varint,3,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
Height int64 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"` Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Difficulty uint64 `protobuf:"varint,5,opt,name=difficulty" json:"difficulty,omitempty"` Difficulty uint64 `protobuf:"varint,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
IsMempool bool `protobuf:"varint,6,opt,name=isMempool" json:"isMempool,omitempty"` IsMempool bool `protobuf:"varint,6,opt,name=isMempool,proto3" json:"isMempool,omitempty"`
Txs []*Transaction `protobuf:"bytes,2,rep,name=txs" json:"txs,omitempty"` Txs []*Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *ExecTxList) Reset() { *m = ExecTxList{} } XXX_sizecache int32 `json:"-"`
func (m *ExecTxList) String() string { return proto.CompactTextString(m) } }
func (*ExecTxList) ProtoMessage() {}
func (*ExecTxList) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} } func (m *ExecTxList) Reset() { *m = ExecTxList{} }
func (m *ExecTxList) String() string { return proto.CompactTextString(m) }
func (*ExecTxList) ProtoMessage() {}
func (*ExecTxList) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{1}
}
func (m *ExecTxList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecTxList.Unmarshal(m, b)
}
func (m *ExecTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecTxList.Marshal(b, m, deterministic)
}
func (m *ExecTxList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecTxList.Merge(m, src)
}
func (m *ExecTxList) XXX_Size() int {
return xxx_messageInfo_ExecTxList.Size(m)
}
func (m *ExecTxList) XXX_DiscardUnknown() {
xxx_messageInfo_ExecTxList.DiscardUnknown(m)
}
var xxx_messageInfo_ExecTxList proto.InternalMessageInfo
func (m *ExecTxList) GetStateHash() []byte { func (m *ExecTxList) GetStateHash() []byte {
if m != nil { if m != nil {
...@@ -109,15 +164,38 @@ func (m *ExecTxList) GetTxs() []*Transaction { ...@@ -109,15 +164,38 @@ func (m *ExecTxList) GetTxs() []*Transaction {
} }
type Query struct { type Query struct {
Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"` Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
FuncName string `protobuf:"bytes,2,opt,name=funcName" json:"funcName,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"` 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 (m *Query) Reset() { *m = Query{} }
func (m *Query) String() string { return proto.CompactTextString(m) }
func (*Query) ProtoMessage() {}
func (*Query) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{2}
}
func (m *Query) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Query.Unmarshal(m, b)
}
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Query.Marshal(b, m, deterministic)
}
func (m *Query) XXX_Merge(src proto.Message) {
xxx_messageInfo_Query.Merge(m, src)
}
func (m *Query) XXX_Size() int {
return xxx_messageInfo_Query.Size(m)
}
func (m *Query) XXX_DiscardUnknown() {
xxx_messageInfo_Query.DiscardUnknown(m)
} }
func (m *Query) Reset() { *m = Query{} } var xxx_messageInfo_Query proto.InternalMessageInfo
func (m *Query) String() string { return proto.CompactTextString(m) }
func (*Query) ProtoMessage() {}
func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *Query) GetExecer() []byte { func (m *Query) GetExecer() []byte {
if m != nil { if m != nil {
...@@ -141,15 +219,38 @@ func (m *Query) GetPayload() []byte { ...@@ -141,15 +219,38 @@ func (m *Query) GetPayload() []byte {
} }
type CreateTxIn struct { type CreateTxIn struct {
Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"` Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
ActionName string `protobuf:"bytes,2,opt,name=actionName" json:"actionName,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"` 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 (m *CreateTxIn) Reset() { *m = CreateTxIn{} }
func (m *CreateTxIn) String() string { return proto.CompactTextString(m) }
func (*CreateTxIn) ProtoMessage() {}
func (*CreateTxIn) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{3}
}
func (m *CreateTxIn) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateTxIn.Unmarshal(m, b)
}
func (m *CreateTxIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateTxIn.Marshal(b, m, deterministic)
}
func (m *CreateTxIn) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateTxIn.Merge(m, src)
}
func (m *CreateTxIn) XXX_Size() int {
return xxx_messageInfo_CreateTxIn.Size(m)
}
func (m *CreateTxIn) XXX_DiscardUnknown() {
xxx_messageInfo_CreateTxIn.DiscardUnknown(m)
} }
func (m *CreateTxIn) Reset() { *m = CreateTxIn{} } var xxx_messageInfo_CreateTxIn proto.InternalMessageInfo
func (m *CreateTxIn) String() string { return proto.CompactTextString(m) }
func (*CreateTxIn) ProtoMessage() {}
func (*CreateTxIn) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *CreateTxIn) GetExecer() []byte { func (m *CreateTxIn) GetExecer() []byte {
if m != nil { if m != nil {
...@@ -174,13 +275,36 @@ func (m *CreateTxIn) GetPayload() []byte { ...@@ -174,13 +275,36 @@ func (m *CreateTxIn) GetPayload() []byte {
// 配置修改部分 // 配置修改部分
type ArrayConfig struct { type ArrayConfig struct {
Value []string `protobuf:"bytes,3,rep,name=value" json:"value,omitempty"` 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 (m *ArrayConfig) Reset() { *m = ArrayConfig{} } func (m *ArrayConfig) Reset() { *m = ArrayConfig{} }
func (m *ArrayConfig) String() string { return proto.CompactTextString(m) } func (m *ArrayConfig) String() string { return proto.CompactTextString(m) }
func (*ArrayConfig) ProtoMessage() {} func (*ArrayConfig) ProtoMessage() {}
func (*ArrayConfig) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} } func (*ArrayConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{4}
}
func (m *ArrayConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ArrayConfig.Unmarshal(m, b)
}
func (m *ArrayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ArrayConfig.Marshal(b, m, deterministic)
}
func (m *ArrayConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ArrayConfig.Merge(m, src)
}
func (m *ArrayConfig) XXX_Size() int {
return xxx_messageInfo_ArrayConfig.Size(m)
}
func (m *ArrayConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ArrayConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ArrayConfig proto.InternalMessageInfo
func (m *ArrayConfig) GetValue() []string { func (m *ArrayConfig) GetValue() []string {
if m != nil { if m != nil {
...@@ -190,13 +314,36 @@ func (m *ArrayConfig) GetValue() []string { ...@@ -190,13 +314,36 @@ func (m *ArrayConfig) GetValue() []string {
} }
type StringConfig struct { type StringConfig struct {
Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` 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 (m *StringConfig) Reset() { *m = StringConfig{} } func (m *StringConfig) Reset() { *m = StringConfig{} }
func (m *StringConfig) String() string { return proto.CompactTextString(m) } func (m *StringConfig) String() string { return proto.CompactTextString(m) }
func (*StringConfig) ProtoMessage() {} func (*StringConfig) ProtoMessage() {}
func (*StringConfig) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} } func (*StringConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{5}
}
func (m *StringConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StringConfig.Unmarshal(m, b)
}
func (m *StringConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StringConfig.Marshal(b, m, deterministic)
}
func (m *StringConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_StringConfig.Merge(m, src)
}
func (m *StringConfig) XXX_Size() int {
return xxx_messageInfo_StringConfig.Size(m)
}
func (m *StringConfig) XXX_DiscardUnknown() {
xxx_messageInfo_StringConfig.DiscardUnknown(m)
}
var xxx_messageInfo_StringConfig proto.InternalMessageInfo
func (m *StringConfig) GetValue() string { func (m *StringConfig) GetValue() string {
if m != nil { if m != nil {
...@@ -206,13 +353,36 @@ func (m *StringConfig) GetValue() string { ...@@ -206,13 +353,36 @@ func (m *StringConfig) GetValue() string {
} }
type Int32Config struct { type Int32Config struct {
Value int32 `protobuf:"varint,3,opt,name=value" json:"value,omitempty"` 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 (m *Int32Config) Reset() { *m = Int32Config{} }
func (m *Int32Config) String() string { return proto.CompactTextString(m) }
func (*Int32Config) ProtoMessage() {}
func (*Int32Config) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{6}
}
func (m *Int32Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Int32Config.Unmarshal(m, b)
}
func (m *Int32Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Int32Config.Marshal(b, m, deterministic)
}
func (m *Int32Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Int32Config.Merge(m, src)
}
func (m *Int32Config) XXX_Size() int {
return xxx_messageInfo_Int32Config.Size(m)
}
func (m *Int32Config) XXX_DiscardUnknown() {
xxx_messageInfo_Int32Config.DiscardUnknown(m)
} }
func (m *Int32Config) Reset() { *m = Int32Config{} } var xxx_messageInfo_Int32Config proto.InternalMessageInfo
func (m *Int32Config) String() string { return proto.CompactTextString(m) }
func (*Int32Config) ProtoMessage() {}
func (*Int32Config) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} }
func (m *Int32Config) GetValue() int32 { func (m *Int32Config) GetValue() int32 {
if m != nil { if m != nil {
...@@ -222,37 +392,78 @@ func (m *Int32Config) GetValue() int32 { ...@@ -222,37 +392,78 @@ func (m *Int32Config) GetValue() int32 {
} }
type ConfigItem struct { type ConfigItem struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *ConfigItem_Arr // *ConfigItem_Arr
// *ConfigItem_Str // *ConfigItem_Str
// *ConfigItem_Int // *ConfigItem_Int
Value isConfigItem_Value `protobuf_oneof:"value"` Value isConfigItem_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,11,opt,name=Ty" json:"Ty,omitempty"` 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 (m *ConfigItem) Reset() { *m = ConfigItem{} }
func (m *ConfigItem) String() string { return proto.CompactTextString(m) }
func (*ConfigItem) ProtoMessage() {}
func (*ConfigItem) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{7}
}
func (m *ConfigItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigItem.Unmarshal(m, b)
}
func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigItem.Marshal(b, m, deterministic)
}
func (m *ConfigItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigItem.Merge(m, src)
} }
func (m *ConfigItem) XXX_Size() int {
return xxx_messageInfo_ConfigItem.Size(m)
}
func (m *ConfigItem) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigItem.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigItem proto.InternalMessageInfo
func (m *ConfigItem) Reset() { *m = ConfigItem{} } func (m *ConfigItem) GetKey() string {
func (m *ConfigItem) String() string { return proto.CompactTextString(m) } if m != nil {
func (*ConfigItem) ProtoMessage() {} return m.Key
func (*ConfigItem) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} } }
return ""
}
func (m *ConfigItem) GetAddr() string {
if m != nil {
return m.Addr
}
return ""
}
type isConfigItem_Value interface { type isConfigItem_Value interface {
isConfigItem_Value() isConfigItem_Value()
} }
type ConfigItem_Arr struct { type ConfigItem_Arr struct {
Arr *ArrayConfig `protobuf:"bytes,3,opt,name=arr,oneof"` Arr *ArrayConfig `protobuf:"bytes,3,opt,name=arr,proto3,oneof"`
} }
type ConfigItem_Str struct { type ConfigItem_Str struct {
Str *StringConfig `protobuf:"bytes,4,opt,name=str,oneof"` Str *StringConfig `protobuf:"bytes,4,opt,name=str,proto3,oneof"`
} }
type ConfigItem_Int struct { type ConfigItem_Int struct {
Int *Int32Config `protobuf:"bytes,5,opt,name=int,oneof"` Int *Int32Config `protobuf:"bytes,5,opt,name=int,proto3,oneof"`
} }
func (*ConfigItem_Arr) isConfigItem_Value() {} func (*ConfigItem_Arr) isConfigItem_Value() {}
func (*ConfigItem_Str) isConfigItem_Value() {} func (*ConfigItem_Str) isConfigItem_Value() {}
func (*ConfigItem_Int) isConfigItem_Value() {} func (*ConfigItem_Int) isConfigItem_Value() {}
func (m *ConfigItem) GetValue() isConfigItem_Value { func (m *ConfigItem) GetValue() isConfigItem_Value {
...@@ -262,20 +473,6 @@ func (m *ConfigItem) GetValue() isConfigItem_Value { ...@@ -262,20 +473,6 @@ func (m *ConfigItem) GetValue() isConfigItem_Value {
return nil return nil
} }
func (m *ConfigItem) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *ConfigItem) GetAddr() string {
if m != nil {
return m.Addr
}
return ""
}
func (m *ConfigItem) GetArr() *ArrayConfig { func (m *ConfigItem) GetArr() *ArrayConfig {
if x, ok := m.GetValue().(*ConfigItem_Arr); ok { if x, ok := m.GetValue().(*ConfigItem_Arr); ok {
return x.Arr return x.Arr
...@@ -377,17 +574,17 @@ func _ConfigItem_OneofSizer(msg proto.Message) (n int) { ...@@ -377,17 +574,17 @@ func _ConfigItem_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *ConfigItem_Arr: case *ConfigItem_Arr:
s := proto.Size(x.Arr) s := proto.Size(x.Arr)
n += proto.SizeVarint(3<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ConfigItem_Str: case *ConfigItem_Str:
s := proto.Size(x.Str) s := proto.Size(x.Str)
n += proto.SizeVarint(4<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ConfigItem_Int: case *ConfigItem_Int:
s := proto.Size(x.Int) s := proto.Size(x.Int)
n += proto.SizeVarint(5<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -398,16 +595,39 @@ func _ConfigItem_OneofSizer(msg proto.Message) (n int) { ...@@ -398,16 +595,39 @@ func _ConfigItem_OneofSizer(msg proto.Message) (n int) {
} }
type ModifyConfig struct { type ModifyConfig struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Op string `protobuf:"bytes,3,opt,name=op" json:"op,omitempty"` Op string `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,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 (m *ModifyConfig) Reset() { *m = ModifyConfig{} }
func (m *ModifyConfig) String() string { return proto.CompactTextString(m) }
func (*ModifyConfig) ProtoMessage() {}
func (*ModifyConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{8}
}
func (m *ModifyConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModifyConfig.Unmarshal(m, b)
}
func (m *ModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModifyConfig.Marshal(b, m, deterministic)
}
func (m *ModifyConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModifyConfig.Merge(m, src)
}
func (m *ModifyConfig) XXX_Size() int {
return xxx_messageInfo_ModifyConfig.Size(m)
}
func (m *ModifyConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ModifyConfig.DiscardUnknown(m)
} }
func (m *ModifyConfig) Reset() { *m = ModifyConfig{} } var xxx_messageInfo_ModifyConfig proto.InternalMessageInfo
func (m *ModifyConfig) String() string { return proto.CompactTextString(m) }
func (*ModifyConfig) ProtoMessage() {}
func (*ModifyConfig) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{8} }
func (m *ModifyConfig) GetKey() string { func (m *ModifyConfig) GetKey() string {
if m != nil { if m != nil {
...@@ -438,14 +658,37 @@ func (m *ModifyConfig) GetAddr() string { ...@@ -438,14 +658,37 @@ func (m *ModifyConfig) GetAddr() string {
} }
type ReceiptConfig struct { type ReceiptConfig struct {
Prev *ConfigItem `protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"` Prev *ConfigItem `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *ConfigItem `protobuf:"bytes,2,opt,name=current" json:"current,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 (m *ReceiptConfig) Reset() { *m = ReceiptConfig{} }
func (m *ReceiptConfig) String() string { return proto.CompactTextString(m) }
func (*ReceiptConfig) ProtoMessage() {}
func (*ReceiptConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{9}
}
func (m *ReceiptConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptConfig.Unmarshal(m, b)
}
func (m *ReceiptConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptConfig.Marshal(b, m, deterministic)
}
func (m *ReceiptConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptConfig.Merge(m, src)
}
func (m *ReceiptConfig) XXX_Size() int {
return xxx_messageInfo_ReceiptConfig.Size(m)
}
func (m *ReceiptConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptConfig.DiscardUnknown(m)
} }
func (m *ReceiptConfig) Reset() { *m = ReceiptConfig{} } var xxx_messageInfo_ReceiptConfig proto.InternalMessageInfo
func (m *ReceiptConfig) String() string { return proto.CompactTextString(m) }
func (*ReceiptConfig) ProtoMessage() {}
func (*ReceiptConfig) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{9} }
func (m *ReceiptConfig) GetPrev() *ConfigItem { func (m *ReceiptConfig) GetPrev() *ConfigItem {
if m != nil { if m != nil {
...@@ -462,14 +705,37 @@ func (m *ReceiptConfig) GetCurrent() *ConfigItem { ...@@ -462,14 +705,37 @@ func (m *ReceiptConfig) GetCurrent() *ConfigItem {
} }
type ReplyConfig struct { type ReplyConfig struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value" json:"value,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 (m *ReplyConfig) Reset() { *m = ReplyConfig{} } func (m *ReplyConfig) Reset() { *m = ReplyConfig{} }
func (m *ReplyConfig) String() string { return proto.CompactTextString(m) } func (m *ReplyConfig) String() string { return proto.CompactTextString(m) }
func (*ReplyConfig) ProtoMessage() {} func (*ReplyConfig) ProtoMessage() {}
func (*ReplyConfig) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{10} } func (*ReplyConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{10}
}
func (m *ReplyConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyConfig.Unmarshal(m, b)
}
func (m *ReplyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyConfig.Marshal(b, m, deterministic)
}
func (m *ReplyConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyConfig.Merge(m, src)
}
func (m *ReplyConfig) XXX_Size() int {
return xxx_messageInfo_ReplyConfig.Size(m)
}
func (m *ReplyConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyConfig proto.InternalMessageInfo
func (m *ReplyConfig) GetKey() string { func (m *ReplyConfig) GetKey() string {
if m != nil { if m != nil {
...@@ -486,17 +752,40 @@ func (m *ReplyConfig) GetValue() string { ...@@ -486,17 +752,40 @@ func (m *ReplyConfig) GetValue() string {
} }
type HistoryCertStore struct { type HistoryCertStore struct {
Rootcerts [][]byte `protobuf:"bytes,1,rep,name=rootcerts,proto3" json:"rootcerts,omitempty"` Rootcerts [][]byte `protobuf:"bytes,1,rep,name=rootcerts,proto3" json:"rootcerts,omitempty"`
IntermediateCerts [][]byte `protobuf:"bytes,2,rep,name=intermediateCerts,proto3" json:"intermediateCerts,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"` RevocationList [][]byte `protobuf:"bytes,3,rep,name=revocationList,proto3" json:"revocationList,omitempty"`
CurHeigth int64 `protobuf:"varint,4,opt,name=curHeigth" json:"curHeigth,omitempty"` CurHeigth int64 `protobuf:"varint,4,opt,name=curHeigth,proto3" json:"curHeigth,omitempty"`
NxtHeight int64 `protobuf:"varint,5,opt,name=nxtHeight" json:"nxtHeight,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 (m *HistoryCertStore) Reset() { *m = HistoryCertStore{} }
func (m *HistoryCertStore) String() string { return proto.CompactTextString(m) }
func (*HistoryCertStore) ProtoMessage() {}
func (*HistoryCertStore) Descriptor() ([]byte, []int) {
return fileDescriptor_12d1cdcda51e000f, []int{11}
}
func (m *HistoryCertStore) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HistoryCertStore.Unmarshal(m, b)
}
func (m *HistoryCertStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HistoryCertStore.Marshal(b, m, deterministic)
}
func (m *HistoryCertStore) XXX_Merge(src proto.Message) {
xxx_messageInfo_HistoryCertStore.Merge(m, src)
}
func (m *HistoryCertStore) XXX_Size() int {
return xxx_messageInfo_HistoryCertStore.Size(m)
}
func (m *HistoryCertStore) XXX_DiscardUnknown() {
xxx_messageInfo_HistoryCertStore.DiscardUnknown(m)
} }
func (m *HistoryCertStore) Reset() { *m = HistoryCertStore{} } var xxx_messageInfo_HistoryCertStore proto.InternalMessageInfo
func (m *HistoryCertStore) String() string { return proto.CompactTextString(m) }
func (*HistoryCertStore) ProtoMessage() {}
func (*HistoryCertStore) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{11} }
func (m *HistoryCertStore) GetRootcerts() [][]byte { func (m *HistoryCertStore) GetRootcerts() [][]byte {
if m != nil { if m != nil {
...@@ -548,9 +837,9 @@ func init() { ...@@ -548,9 +837,9 @@ func init() {
proto.RegisterType((*HistoryCertStore)(nil), "types.HistoryCertStore") proto.RegisterType((*HistoryCertStore)(nil), "types.HistoryCertStore")
} }
func init() { proto.RegisterFile("executor.proto", fileDescriptor4) } func init() { proto.RegisterFile("executor.proto", fileDescriptor_12d1cdcda51e000f) }
var fileDescriptor4 = []byte{ var fileDescriptor_12d1cdcda51e000f = []byte{
// 665 bytes of a gzipped FileDescriptorProto // 665 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xed, 0x6a, 0xdb, 0x4a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xed, 0x6a, 0xdb, 0x4a,
0x10, 0xbd, 0x92, 0xec, 0x38, 0x1e, 0xfb, 0x86, 0x64, 0xef, 0xa5, 0x88, 0xd0, 0x26, 0x46, 0x49, 0x10, 0xbd, 0x92, 0xec, 0x38, 0x1e, 0xfb, 0x86, 0x64, 0xef, 0xa5, 0x88, 0xd0, 0x26, 0x46, 0x49,
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
) )
...@@ -17,17 +17,46 @@ var _ = proto.Marshal ...@@ -17,17 +17,46 @@ var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// * // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
//*
// 请求获取远程节点的节点信息 // 请求获取远程节点的节点信息
type P2PGetPeerInfo struct { type P2PGetPeerInfo struct {
// / p2p版本 /// p2p版本
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` 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 (m *P2PGetPeerInfo) Reset() { *m = P2PGetPeerInfo{} } func (m *P2PGetPeerInfo) Reset() { *m = P2PGetPeerInfo{} }
func (m *P2PGetPeerInfo) String() string { return proto.CompactTextString(m) } func (m *P2PGetPeerInfo) String() string { return proto.CompactTextString(m) }
func (*P2PGetPeerInfo) ProtoMessage() {} func (*P2PGetPeerInfo) ProtoMessage() {}
func (*P2PGetPeerInfo) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} } func (*P2PGetPeerInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{0}
}
func (m *P2PGetPeerInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PGetPeerInfo.Unmarshal(m, b)
}
func (m *P2PGetPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PGetPeerInfo.Marshal(b, m, deterministic)
}
func (m *P2PGetPeerInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PGetPeerInfo.Merge(m, src)
}
func (m *P2PGetPeerInfo) XXX_Size() int {
return xxx_messageInfo_P2PGetPeerInfo.Size(m)
}
func (m *P2PGetPeerInfo) XXX_DiscardUnknown() {
xxx_messageInfo_P2PGetPeerInfo.DiscardUnknown(m)
}
var xxx_messageInfo_P2PGetPeerInfo proto.InternalMessageInfo
func (m *P2PGetPeerInfo) GetVersion() int32 { func (m *P2PGetPeerInfo) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -36,25 +65,48 @@ func (m *P2PGetPeerInfo) GetVersion() int32 { ...@@ -36,25 +65,48 @@ func (m *P2PGetPeerInfo) GetVersion() int32 {
return 0 return 0
} }
// * //*
// 节点信息 // 节点信息
type P2PPeerInfo struct { type P2PPeerInfo struct {
// /节点的IP地址 ///节点的IP地址
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
// /节点的外网端口 ///节点的外网端口
Port int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
// /节点的名称 ///节点的名称
Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// / mempool 的大小 /// mempool 的大小
MempoolSize int32 `protobuf:"varint,4,opt,name=mempoolSize" json:"mempoolSize,omitempty"` MempoolSize int32 `protobuf:"varint,4,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
// /节点当前高度头部数据 ///节点当前高度头部数据
Header *Header `protobuf:"bytes,5,opt,name=header" json:"header,omitempty"` Header *Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *P2PPeerInfo) Reset() { *m = P2PPeerInfo{} } XXX_sizecache int32 `json:"-"`
func (m *P2PPeerInfo) String() string { return proto.CompactTextString(m) } }
func (*P2PPeerInfo) ProtoMessage() {}
func (*P2PPeerInfo) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} } func (m *P2PPeerInfo) Reset() { *m = P2PPeerInfo{} }
func (m *P2PPeerInfo) String() string { return proto.CompactTextString(m) }
func (*P2PPeerInfo) ProtoMessage() {}
func (*P2PPeerInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{1}
}
func (m *P2PPeerInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PPeerInfo.Unmarshal(m, b)
}
func (m *P2PPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PPeerInfo.Marshal(b, m, deterministic)
}
func (m *P2PPeerInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PPeerInfo.Merge(m, src)
}
func (m *P2PPeerInfo) XXX_Size() int {
return xxx_messageInfo_P2PPeerInfo.Size(m)
}
func (m *P2PPeerInfo) XXX_DiscardUnknown() {
xxx_messageInfo_P2PPeerInfo.DiscardUnknown(m)
}
var xxx_messageInfo_P2PPeerInfo proto.InternalMessageInfo
func (m *P2PPeerInfo) GetAddr() string { func (m *P2PPeerInfo) GetAddr() string {
if m != nil { if m != nil {
...@@ -91,31 +143,54 @@ func (m *P2PPeerInfo) GetHeader() *Header { ...@@ -91,31 +143,54 @@ func (m *P2PPeerInfo) GetHeader() *Header {
return nil return nil
} }
// * //*
// p2p节点间发送版本数据结构 // p2p节点间发送版本数据结构
type P2PVersion struct { type P2PVersion struct {
// /当前版本 ///当前版本
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// /服务类型 ///服务类型
Service int64 `protobuf:"varint,2,opt,name=service" json:"service,omitempty"` Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
// /时间戳 ///时间戳
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// /数据包的目的地址 ///数据包的目的地址
AddrRecv string `protobuf:"bytes,4,opt,name=addrRecv" json:"addrRecv,omitempty"` AddrRecv string `protobuf:"bytes,4,opt,name=addrRecv,proto3" json:"addrRecv,omitempty"`
// /数据发送的源地址 ///数据发送的源地址
AddrFrom string `protobuf:"bytes,5,opt,name=addrFrom" json:"addrFrom,omitempty"` AddrFrom string `protobuf:"bytes,5,opt,name=addrFrom,proto3" json:"addrFrom,omitempty"`
// /随机数 ///随机数
Nonce int64 `protobuf:"varint,6,opt,name=nonce" json:"nonce,omitempty"` Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
// /用户代理 ///用户代理
UserAgent string `protobuf:"bytes,7,opt,name=userAgent" json:"userAgent,omitempty"` UserAgent string `protobuf:"bytes,7,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
// /当前节点的高度 ///当前节点的高度
StartHeight int64 `protobuf:"varint,8,opt,name=startHeight" json:"startHeight,omitempty"` StartHeight int64 `protobuf:"varint,8,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *P2PVersion) Reset() { *m = P2PVersion{} } XXX_sizecache int32 `json:"-"`
func (m *P2PVersion) String() string { return proto.CompactTextString(m) } }
func (*P2PVersion) ProtoMessage() {}
func (*P2PVersion) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} } func (m *P2PVersion) Reset() { *m = P2PVersion{} }
func (m *P2PVersion) String() string { return proto.CompactTextString(m) }
func (*P2PVersion) ProtoMessage() {}
func (*P2PVersion) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{2}
}
func (m *P2PVersion) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PVersion.Unmarshal(m, b)
}
func (m *P2PVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PVersion.Marshal(b, m, deterministic)
}
func (m *P2PVersion) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PVersion.Merge(m, src)
}
func (m *P2PVersion) XXX_Size() int {
return xxx_messageInfo_P2PVersion.Size(m)
}
func (m *P2PVersion) XXX_DiscardUnknown() {
xxx_messageInfo_P2PVersion.DiscardUnknown(m)
}
var xxx_messageInfo_P2PVersion proto.InternalMessageInfo
func (m *P2PVersion) GetVersion() int32 { func (m *P2PVersion) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -173,18 +248,41 @@ func (m *P2PVersion) GetStartHeight() int64 { ...@@ -173,18 +248,41 @@ func (m *P2PVersion) GetStartHeight() int64 {
return 0 return 0
} }
// * //*
// P2P 版本返回 // P2P 版本返回
type P2PVerAck struct { type P2PVerAck struct {
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Service int64 `protobuf:"varint,2,opt,name=service" json:"service,omitempty"` Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
Nonce int64 `protobuf:"varint,3,opt,name=nonce" json:"nonce,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:"-"`
}
func (m *P2PVerAck) Reset() { *m = P2PVerAck{} }
func (m *P2PVerAck) String() string { return proto.CompactTextString(m) }
func (*P2PVerAck) ProtoMessage() {}
func (*P2PVerAck) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{3}
}
func (m *P2PVerAck) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PVerAck.Unmarshal(m, b)
}
func (m *P2PVerAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PVerAck.Marshal(b, m, deterministic)
}
func (m *P2PVerAck) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PVerAck.Merge(m, src)
}
func (m *P2PVerAck) XXX_Size() int {
return xxx_messageInfo_P2PVerAck.Size(m)
}
func (m *P2PVerAck) XXX_DiscardUnknown() {
xxx_messageInfo_P2PVerAck.DiscardUnknown(m)
} }
func (m *P2PVerAck) Reset() { *m = P2PVerAck{} } var xxx_messageInfo_P2PVerAck proto.InternalMessageInfo
func (m *P2PVerAck) String() string { return proto.CompactTextString(m) }
func (*P2PVerAck) ProtoMessage() {}
func (*P2PVerAck) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
func (m *P2PVerAck) GetVersion() int32 { func (m *P2PVerAck) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -207,23 +305,46 @@ func (m *P2PVerAck) GetNonce() int64 { ...@@ -207,23 +305,46 @@ func (m *P2PVerAck) GetNonce() int64 {
return 0 return 0
} }
// * //*
// P2P 心跳包 // P2P 心跳包
type P2PPing struct { type P2PPing struct {
// /随机数 ///随机数
Nonce int64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// /节点的外网地址 ///节点的外网地址
Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
// /节点的外网端口 ///节点的外网端口
Port int32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// 签名 //签名
Sign *Signature `protobuf:"bytes,4,opt,name=sign" json:"sign,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:"-"`
} }
func (m *P2PPing) Reset() { *m = P2PPing{} } func (m *P2PPing) Reset() { *m = P2PPing{} }
func (m *P2PPing) String() string { return proto.CompactTextString(m) } func (m *P2PPing) String() string { return proto.CompactTextString(m) }
func (*P2PPing) ProtoMessage() {} func (*P2PPing) ProtoMessage() {}
func (*P2PPing) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} } func (*P2PPing) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{4}
}
func (m *P2PPing) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PPing.Unmarshal(m, b)
}
func (m *P2PPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PPing.Marshal(b, m, deterministic)
}
func (m *P2PPing) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PPing.Merge(m, src)
}
func (m *P2PPing) XXX_Size() int {
return xxx_messageInfo_P2PPing.Size(m)
}
func (m *P2PPing) XXX_DiscardUnknown() {
xxx_messageInfo_P2PPing.DiscardUnknown(m)
}
var xxx_messageInfo_P2PPing proto.InternalMessageInfo
func (m *P2PPing) GetNonce() int64 { func (m *P2PPing) GetNonce() int64 {
if m != nil { if m != nil {
...@@ -253,16 +374,39 @@ func (m *P2PPing) GetSign() *Signature { ...@@ -253,16 +374,39 @@ func (m *P2PPing) GetSign() *Signature {
return nil return nil
} }
// * //*
// 心跳返回包 // 心跳返回包
type P2PPong struct { type P2PPong struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` 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 (m *P2PPong) Reset() { *m = P2PPong{} } func (m *P2PPong) Reset() { *m = P2PPong{} }
func (m *P2PPong) String() string { return proto.CompactTextString(m) } func (m *P2PPong) String() string { return proto.CompactTextString(m) }
func (*P2PPong) ProtoMessage() {} func (*P2PPong) ProtoMessage() {}
func (*P2PPong) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} } func (*P2PPong) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{5}
}
func (m *P2PPong) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PPong.Unmarshal(m, b)
}
func (m *P2PPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PPong.Marshal(b, m, deterministic)
}
func (m *P2PPong) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PPong.Merge(m, src)
}
func (m *P2PPong) XXX_Size() int {
return xxx_messageInfo_P2PPong.Size(m)
}
func (m *P2PPong) XXX_DiscardUnknown() {
xxx_messageInfo_P2PPong.DiscardUnknown(m)
}
var xxx_messageInfo_P2PPong proto.InternalMessageInfo
func (m *P2PPong) GetNonce() int64 { func (m *P2PPong) GetNonce() int64 {
if m != nil { if m != nil {
...@@ -271,16 +415,39 @@ func (m *P2PPong) GetNonce() int64 { ...@@ -271,16 +415,39 @@ func (m *P2PPong) GetNonce() int64 {
return 0 return 0
} }
// * //*
// 获取对方节点所连接的其他节点地址的请求包 // 获取对方节点所连接的其他节点地址的请求包
type P2PGetAddr struct { type P2PGetAddr struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` 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 (m *P2PGetAddr) Reset() { *m = P2PGetAddr{} } func (m *P2PGetAddr) Reset() { *m = P2PGetAddr{} }
func (m *P2PGetAddr) String() string { return proto.CompactTextString(m) } func (m *P2PGetAddr) String() string { return proto.CompactTextString(m) }
func (*P2PGetAddr) ProtoMessage() {} func (*P2PGetAddr) ProtoMessage() {}
func (*P2PGetAddr) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} } func (*P2PGetAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{6}
}
func (m *P2PGetAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PGetAddr.Unmarshal(m, b)
}
func (m *P2PGetAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PGetAddr.Marshal(b, m, deterministic)
}
func (m *P2PGetAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PGetAddr.Merge(m, src)
}
func (m *P2PGetAddr) XXX_Size() int {
return xxx_messageInfo_P2PGetAddr.Size(m)
}
func (m *P2PGetAddr) XXX_DiscardUnknown() {
xxx_messageInfo_P2PGetAddr.DiscardUnknown(m)
}
var xxx_messageInfo_P2PGetAddr proto.InternalMessageInfo
func (m *P2PGetAddr) GetNonce() int64 { func (m *P2PGetAddr) GetNonce() int64 {
if m != nil { if m != nil {
...@@ -289,18 +456,41 @@ func (m *P2PGetAddr) GetNonce() int64 { ...@@ -289,18 +456,41 @@ func (m *P2PGetAddr) GetNonce() int64 {
return 0 return 0
} }
// * //*
// 返回请求地址列表的社保 // 返回请求地址列表的社保
type P2PAddr struct { type P2PAddr struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// /对方节点返回的其他节点信息 ///对方节点返回的其他节点信息
Addrlist []string `protobuf:"bytes,2,rep,name=addrlist" json:"addrlist,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 (m *P2PAddr) Reset() { *m = P2PAddr{} }
func (m *P2PAddr) String() string { return proto.CompactTextString(m) }
func (*P2PAddr) ProtoMessage() {}
func (*P2PAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{7}
}
func (m *P2PAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PAddr.Unmarshal(m, b)
}
func (m *P2PAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PAddr.Marshal(b, m, deterministic)
}
func (m *P2PAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PAddr.Merge(m, src)
}
func (m *P2PAddr) XXX_Size() int {
return xxx_messageInfo_P2PAddr.Size(m)
}
func (m *P2PAddr) XXX_DiscardUnknown() {
xxx_messageInfo_P2PAddr.DiscardUnknown(m)
} }
func (m *P2PAddr) Reset() { *m = P2PAddr{} } var xxx_messageInfo_P2PAddr proto.InternalMessageInfo
func (m *P2PAddr) String() string { return proto.CompactTextString(m) }
func (*P2PAddr) ProtoMessage() {}
func (*P2PAddr) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{7} }
func (m *P2PAddr) GetNonce() int64 { func (m *P2PAddr) GetNonce() int64 {
if m != nil { if m != nil {
...@@ -317,14 +507,37 @@ func (m *P2PAddr) GetAddrlist() []string { ...@@ -317,14 +507,37 @@ func (m *P2PAddr) GetAddrlist() []string {
} }
type P2PAddrList struct { type P2PAddrList struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
Peerinfo []*P2PPeerInfo `protobuf:"bytes,2,rep,name=peerinfo" json:"peerinfo,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 (m *P2PAddrList) Reset() { *m = P2PAddrList{} } func (m *P2PAddrList) Reset() { *m = P2PAddrList{} }
func (m *P2PAddrList) String() string { return proto.CompactTextString(m) } func (m *P2PAddrList) String() string { return proto.CompactTextString(m) }
func (*P2PAddrList) ProtoMessage() {} func (*P2PAddrList) ProtoMessage() {}
func (*P2PAddrList) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{8} } func (*P2PAddrList) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{8}
}
func (m *P2PAddrList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PAddrList.Unmarshal(m, b)
}
func (m *P2PAddrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PAddrList.Marshal(b, m, deterministic)
}
func (m *P2PAddrList) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PAddrList.Merge(m, src)
}
func (m *P2PAddrList) XXX_Size() int {
return xxx_messageInfo_P2PAddrList.Size(m)
}
func (m *P2PAddrList) XXX_DiscardUnknown() {
xxx_messageInfo_P2PAddrList.DiscardUnknown(m)
}
var xxx_messageInfo_P2PAddrList proto.InternalMessageInfo
func (m *P2PAddrList) GetNonce() int64 { func (m *P2PAddrList) GetNonce() int64 {
if m != nil { if m != nil {
...@@ -340,19 +553,42 @@ func (m *P2PAddrList) GetPeerinfo() []*P2PPeerInfo { ...@@ -340,19 +553,42 @@ func (m *P2PAddrList) GetPeerinfo() []*P2PPeerInfo {
return nil return nil
} }
// * //*
// 节点外网信息 // 节点外网信息
type P2PExternalInfo struct { type P2PExternalInfo struct {
// /节点的外网地址 ///节点的外网地址
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
// 节点是否在外网 //节点是否在外网
Isoutside bool `protobuf:"varint,2,opt,name=isoutside" json:"isoutside,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 (m *P2PExternalInfo) Reset() { *m = P2PExternalInfo{} } func (m *P2PExternalInfo) Reset() { *m = P2PExternalInfo{} }
func (m *P2PExternalInfo) String() string { return proto.CompactTextString(m) } func (m *P2PExternalInfo) String() string { return proto.CompactTextString(m) }
func (*P2PExternalInfo) ProtoMessage() {} func (*P2PExternalInfo) ProtoMessage() {}
func (*P2PExternalInfo) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{9} } func (*P2PExternalInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{9}
}
func (m *P2PExternalInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PExternalInfo.Unmarshal(m, b)
}
func (m *P2PExternalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PExternalInfo.Marshal(b, m, deterministic)
}
func (m *P2PExternalInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PExternalInfo.Merge(m, src)
}
func (m *P2PExternalInfo) XXX_Size() int {
return xxx_messageInfo_P2PExternalInfo.Size(m)
}
func (m *P2PExternalInfo) XXX_DiscardUnknown() {
xxx_messageInfo_P2PExternalInfo.DiscardUnknown(m)
}
var xxx_messageInfo_P2PExternalInfo proto.InternalMessageInfo
func (m *P2PExternalInfo) GetAddr() string { func (m *P2PExternalInfo) GetAddr() string {
if m != nil { if m != nil {
...@@ -368,18 +604,41 @@ func (m *P2PExternalInfo) GetIsoutside() bool { ...@@ -368,18 +604,41 @@ func (m *P2PExternalInfo) GetIsoutside() bool {
return false return false
} }
// * //*
// 获取区间区块 // 获取区间区块
type P2PGetBlocks struct { type P2PGetBlocks struct {
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
StartHeight int64 `protobuf:"varint,2,opt,name=startHeight" json:"startHeight,omitempty"` StartHeight int64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
EndHeight int64 `protobuf:"varint,3,opt,name=endHeight" json:"endHeight,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 (m *P2PGetBlocks) Reset() { *m = P2PGetBlocks{} } func (m *P2PGetBlocks) Reset() { *m = P2PGetBlocks{} }
func (m *P2PGetBlocks) String() string { return proto.CompactTextString(m) } func (m *P2PGetBlocks) String() string { return proto.CompactTextString(m) }
func (*P2PGetBlocks) ProtoMessage() {} func (*P2PGetBlocks) ProtoMessage() {}
func (*P2PGetBlocks) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{10} } func (*P2PGetBlocks) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{10}
}
func (m *P2PGetBlocks) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PGetBlocks.Unmarshal(m, b)
}
func (m *P2PGetBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PGetBlocks.Marshal(b, m, deterministic)
}
func (m *P2PGetBlocks) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PGetBlocks.Merge(m, src)
}
func (m *P2PGetBlocks) XXX_Size() int {
return xxx_messageInfo_P2PGetBlocks.Size(m)
}
func (m *P2PGetBlocks) XXX_DiscardUnknown() {
xxx_messageInfo_P2PGetBlocks.DiscardUnknown(m)
}
var xxx_messageInfo_P2PGetBlocks proto.InternalMessageInfo
func (m *P2PGetBlocks) GetVersion() int32 { func (m *P2PGetBlocks) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -402,16 +661,39 @@ func (m *P2PGetBlocks) GetEndHeight() int64 { ...@@ -402,16 +661,39 @@ func (m *P2PGetBlocks) GetEndHeight() int64 {
return 0 return 0
} }
// * //*
// 获取mempool // 获取mempool
type P2PGetMempool struct { type P2PGetMempool struct {
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` 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 (m *P2PGetMempool) Reset() { *m = P2PGetMempool{} }
func (m *P2PGetMempool) String() string { return proto.CompactTextString(m) }
func (*P2PGetMempool) ProtoMessage() {}
func (*P2PGetMempool) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{11}
}
func (m *P2PGetMempool) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PGetMempool.Unmarshal(m, b)
}
func (m *P2PGetMempool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PGetMempool.Marshal(b, m, deterministic)
}
func (m *P2PGetMempool) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PGetMempool.Merge(m, src)
}
func (m *P2PGetMempool) XXX_Size() int {
return xxx_messageInfo_P2PGetMempool.Size(m)
}
func (m *P2PGetMempool) XXX_DiscardUnknown() {
xxx_messageInfo_P2PGetMempool.DiscardUnknown(m)
} }
func (m *P2PGetMempool) Reset() { *m = P2PGetMempool{} } var xxx_messageInfo_P2PGetMempool proto.InternalMessageInfo
func (m *P2PGetMempool) String() string { return proto.CompactTextString(m) }
func (*P2PGetMempool) ProtoMessage() {}
func (*P2PGetMempool) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{11} }
func (m *P2PGetMempool) GetVersion() int32 { func (m *P2PGetMempool) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -421,13 +703,36 @@ func (m *P2PGetMempool) GetVersion() int32 { ...@@ -421,13 +703,36 @@ func (m *P2PGetMempool) GetVersion() int32 {
} }
type P2PInv struct { type P2PInv struct {
Invs []*Inventory `protobuf:"bytes,1,rep,name=invs" json:"invs,omitempty"` 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 (m *P2PInv) Reset() { *m = P2PInv{} } func (m *P2PInv) Reset() { *m = P2PInv{} }
func (m *P2PInv) String() string { return proto.CompactTextString(m) } func (m *P2PInv) String() string { return proto.CompactTextString(m) }
func (*P2PInv) ProtoMessage() {} func (*P2PInv) ProtoMessage() {}
func (*P2PInv) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{12} } func (*P2PInv) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{12}
}
func (m *P2PInv) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PInv.Unmarshal(m, b)
}
func (m *P2PInv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PInv.Marshal(b, m, deterministic)
}
func (m *P2PInv) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PInv.Merge(m, src)
}
func (m *P2PInv) XXX_Size() int {
return xxx_messageInfo_P2PInv.Size(m)
}
func (m *P2PInv) XXX_DiscardUnknown() {
xxx_messageInfo_P2PInv.DiscardUnknown(m)
}
var xxx_messageInfo_P2PInv proto.InternalMessageInfo
func (m *P2PInv) GetInvs() []*Inventory { func (m *P2PInv) GetInvs() []*Inventory {
if m != nil { if m != nil {
...@@ -438,18 +743,41 @@ func (m *P2PInv) GetInvs() []*Inventory { ...@@ -438,18 +743,41 @@ func (m *P2PInv) GetInvs() []*Inventory {
// ty=MSG_TX MSG_BLOCK // ty=MSG_TX MSG_BLOCK
type Inventory struct { type Inventory struct {
// 类型,数据类型,MSG_TX MSG_BLOCK //类型,数据类型,MSG_TX MSG_BLOCK
Ty int32 `protobuf:"varint,1,opt,name=ty" json:"ty,omitempty"` Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
// /哈希 ///哈希
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// 高度 //高度
Height int64 `protobuf:"varint,3,opt,name=height" json:"height,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 (m *Inventory) Reset() { *m = Inventory{} }
func (m *Inventory) String() string { return proto.CompactTextString(m) }
func (*Inventory) ProtoMessage() {}
func (*Inventory) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{13}
}
func (m *Inventory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Inventory.Unmarshal(m, b)
}
func (m *Inventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Inventory.Marshal(b, m, deterministic)
}
func (m *Inventory) XXX_Merge(src proto.Message) {
xxx_messageInfo_Inventory.Merge(m, src)
}
func (m *Inventory) XXX_Size() int {
return xxx_messageInfo_Inventory.Size(m)
}
func (m *Inventory) XXX_DiscardUnknown() {
xxx_messageInfo_Inventory.DiscardUnknown(m)
} }
func (m *Inventory) Reset() { *m = Inventory{} } var xxx_messageInfo_Inventory proto.InternalMessageInfo
func (m *Inventory) String() string { return proto.CompactTextString(m) }
func (*Inventory) ProtoMessage() {}
func (*Inventory) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{13} }
func (m *Inventory) GetTy() int32 { func (m *Inventory) GetTy() int32 {
if m != nil { if m != nil {
...@@ -472,19 +800,42 @@ func (m *Inventory) GetHeight() int64 { ...@@ -472,19 +800,42 @@ func (m *Inventory) GetHeight() int64 {
return 0 return 0
} }
// * //*
// 通过invs 下载数据 // 通过invs 下载数据
type P2PGetData struct { type P2PGetData struct {
// / p2p版本 /// p2p版本
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// / invs 数组 /// invs 数组
Invs []*Inventory `protobuf:"bytes,2,rep,name=invs" json:"invs,omitempty"` Invs []*Inventory `protobuf:"bytes,2,rep,name=invs,proto3" json:"invs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *P2PGetData) Reset() { *m = P2PGetData{} } func (m *P2PGetData) Reset() { *m = P2PGetData{} }
func (m *P2PGetData) String() string { return proto.CompactTextString(m) } func (m *P2PGetData) String() string { return proto.CompactTextString(m) }
func (*P2PGetData) ProtoMessage() {} func (*P2PGetData) ProtoMessage() {}
func (*P2PGetData) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{14} } func (*P2PGetData) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{14}
}
func (m *P2PGetData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PGetData.Unmarshal(m, b)
}
func (m *P2PGetData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PGetData.Marshal(b, m, deterministic)
}
func (m *P2PGetData) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PGetData.Merge(m, src)
}
func (m *P2PGetData) XXX_Size() int {
return xxx_messageInfo_P2PGetData.Size(m)
}
func (m *P2PGetData) XXX_DiscardUnknown() {
xxx_messageInfo_P2PGetData.DiscardUnknown(m)
}
var xxx_messageInfo_P2PGetData proto.InternalMessageInfo
func (m *P2PGetData) GetVersion() int32 { func (m *P2PGetData) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -500,16 +851,39 @@ func (m *P2PGetData) GetInvs() []*Inventory { ...@@ -500,16 +851,39 @@ func (m *P2PGetData) GetInvs() []*Inventory {
return nil return nil
} }
// * //*
// p2p 发送交易协议 // p2p 发送交易协议
type P2PTx struct { type P2PTx struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx" json:"tx,omitempty"` Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *P2PTx) Reset() { *m = P2PTx{} }
func (m *P2PTx) String() string { return proto.CompactTextString(m) }
func (*P2PTx) ProtoMessage() {}
func (*P2PTx) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{15}
}
func (m *P2PTx) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PTx.Unmarshal(m, b)
}
func (m *P2PTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PTx.Marshal(b, m, deterministic)
}
func (m *P2PTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PTx.Merge(m, src)
}
func (m *P2PTx) XXX_Size() int {
return xxx_messageInfo_P2PTx.Size(m)
}
func (m *P2PTx) XXX_DiscardUnknown() {
xxx_messageInfo_P2PTx.DiscardUnknown(m)
} }
func (m *P2PTx) Reset() { *m = P2PTx{} } var xxx_messageInfo_P2PTx proto.InternalMessageInfo
func (m *P2PTx) String() string { return proto.CompactTextString(m) }
func (*P2PTx) ProtoMessage() {}
func (*P2PTx) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{15} }
func (m *P2PTx) GetTx() *Transaction { func (m *P2PTx) GetTx() *Transaction {
if m != nil { if m != nil {
...@@ -518,16 +892,39 @@ func (m *P2PTx) GetTx() *Transaction { ...@@ -518,16 +892,39 @@ func (m *P2PTx) GetTx() *Transaction {
return nil return nil
} }
// * //*
// p2p 发送区块协议 // p2p 发送区块协议
type P2PBlock struct { type P2PBlock struct {
Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *P2PBlock) Reset() { *m = P2PBlock{} }
func (m *P2PBlock) String() string { return proto.CompactTextString(m) }
func (*P2PBlock) ProtoMessage() {}
func (*P2PBlock) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{16}
}
func (m *P2PBlock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PBlock.Unmarshal(m, b)
}
func (m *P2PBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PBlock.Marshal(b, m, deterministic)
}
func (m *P2PBlock) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PBlock.Merge(m, src)
}
func (m *P2PBlock) XXX_Size() int {
return xxx_messageInfo_P2PBlock.Size(m)
}
func (m *P2PBlock) XXX_DiscardUnknown() {
xxx_messageInfo_P2PBlock.DiscardUnknown(m)
} }
func (m *P2PBlock) Reset() { *m = P2PBlock{} } var xxx_messageInfo_P2PBlock proto.InternalMessageInfo
func (m *P2PBlock) String() string { return proto.CompactTextString(m) }
func (*P2PBlock) ProtoMessage() {}
func (*P2PBlock) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{16} }
func (m *P2PBlock) GetBlock() *Block { func (m *P2PBlock) GetBlock() *Block {
if m != nil { if m != nil {
...@@ -536,18 +933,41 @@ func (m *P2PBlock) GetBlock() *Block { ...@@ -536,18 +933,41 @@ func (m *P2PBlock) GetBlock() *Block {
return nil return nil
} }
// * //*
// p2p 协议和软件版本 // p2p 协议和软件版本
type Versions struct { type Versions struct {
P2Pversion int32 `protobuf:"varint,1,opt,name=p2pversion" json:"p2pversion,omitempty"` P2Pversion int32 `protobuf:"varint,1,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
Softversion string `protobuf:"bytes,2,opt,name=softversion" json:"softversion,omitempty"` Softversion string `protobuf:"bytes,2,opt,name=softversion,proto3" json:"softversion,omitempty"`
Peername string `protobuf:"bytes,3,opt,name=peername" json:"peername,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:"-"`
} }
func (m *Versions) Reset() { *m = Versions{} } func (m *Versions) Reset() { *m = Versions{} }
func (m *Versions) String() string { return proto.CompactTextString(m) } func (m *Versions) String() string { return proto.CompactTextString(m) }
func (*Versions) ProtoMessage() {} func (*Versions) ProtoMessage() {}
func (*Versions) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{17} } func (*Versions) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{17}
}
func (m *Versions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Versions.Unmarshal(m, b)
}
func (m *Versions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Versions.Marshal(b, m, deterministic)
}
func (m *Versions) XXX_Merge(src proto.Message) {
xxx_messageInfo_Versions.Merge(m, src)
}
func (m *Versions) XXX_Size() int {
return xxx_messageInfo_Versions.Size(m)
}
func (m *Versions) XXX_DiscardUnknown() {
xxx_messageInfo_Versions.DiscardUnknown(m)
}
var xxx_messageInfo_Versions proto.InternalMessageInfo
func (m *Versions) GetP2Pversion() int32 { func (m *Versions) GetP2Pversion() int32 {
if m != nil { if m != nil {
...@@ -570,7 +990,7 @@ func (m *Versions) GetPeername() string { ...@@ -570,7 +990,7 @@ func (m *Versions) GetPeername() string {
return "" return ""
} }
// * //*
// p2p 广播数据协议 // p2p 广播数据协议
type BroadCastData struct { type BroadCastData struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
...@@ -578,34 +998,63 @@ type BroadCastData struct { ...@@ -578,34 +998,63 @@ type BroadCastData struct {
// *BroadCastData_Block // *BroadCastData_Block
// *BroadCastData_Ping // *BroadCastData_Ping
// *BroadCastData_Version // *BroadCastData_Version
Value isBroadCastData_Value `protobuf_oneof:"value"` Value isBroadCastData_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BroadCastData) Reset() { *m = BroadCastData{} } func (m *BroadCastData) Reset() { *m = BroadCastData{} }
func (m *BroadCastData) String() string { return proto.CompactTextString(m) } func (m *BroadCastData) String() string { return proto.CompactTextString(m) }
func (*BroadCastData) ProtoMessage() {} func (*BroadCastData) ProtoMessage() {}
func (*BroadCastData) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{18} } func (*BroadCastData) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{18}
}
func (m *BroadCastData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BroadCastData.Unmarshal(m, b)
}
func (m *BroadCastData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BroadCastData.Marshal(b, m, deterministic)
}
func (m *BroadCastData) XXX_Merge(src proto.Message) {
xxx_messageInfo_BroadCastData.Merge(m, src)
}
func (m *BroadCastData) XXX_Size() int {
return xxx_messageInfo_BroadCastData.Size(m)
}
func (m *BroadCastData) XXX_DiscardUnknown() {
xxx_messageInfo_BroadCastData.DiscardUnknown(m)
}
var xxx_messageInfo_BroadCastData proto.InternalMessageInfo
type isBroadCastData_Value interface { type isBroadCastData_Value interface {
isBroadCastData_Value() isBroadCastData_Value()
} }
type BroadCastData_Tx struct { type BroadCastData_Tx struct {
Tx *P2PTx `protobuf:"bytes,1,opt,name=tx,oneof"` Tx *P2PTx `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
} }
type BroadCastData_Block struct { type BroadCastData_Block struct {
Block *P2PBlock `protobuf:"bytes,2,opt,name=block,oneof"` Block *P2PBlock `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
} }
type BroadCastData_Ping struct { type BroadCastData_Ping struct {
Ping *P2PPing `protobuf:"bytes,3,opt,name=ping,oneof"` Ping *P2PPing `protobuf:"bytes,3,opt,name=ping,proto3,oneof"`
} }
type BroadCastData_Version struct { type BroadCastData_Version struct {
Version *Versions `protobuf:"bytes,4,opt,name=version,oneof"` Version *Versions `protobuf:"bytes,4,opt,name=version,proto3,oneof"`
} }
func (*BroadCastData_Tx) isBroadCastData_Value() {} func (*BroadCastData_Tx) isBroadCastData_Value() {}
func (*BroadCastData_Block) isBroadCastData_Value() {}
func (*BroadCastData_Ping) isBroadCastData_Value() {} func (*BroadCastData_Block) isBroadCastData_Value() {}
func (*BroadCastData_Ping) isBroadCastData_Value() {}
func (*BroadCastData_Version) isBroadCastData_Value() {} func (*BroadCastData_Version) isBroadCastData_Value() {}
func (m *BroadCastData) GetValue() isBroadCastData_Value { func (m *BroadCastData) GetValue() isBroadCastData_Value {
...@@ -730,22 +1179,22 @@ func _BroadCastData_OneofSizer(msg proto.Message) (n int) { ...@@ -730,22 +1179,22 @@ func _BroadCastData_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *BroadCastData_Tx: case *BroadCastData_Tx:
s := proto.Size(x.Tx) s := proto.Size(x.Tx)
n += proto.SizeVarint(1<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *BroadCastData_Block: case *BroadCastData_Block:
s := proto.Size(x.Block) s := proto.Size(x.Block)
n += proto.SizeVarint(2<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *BroadCastData_Ping: case *BroadCastData_Ping:
s := proto.Size(x.Ping) s := proto.Size(x.Ping)
n += proto.SizeVarint(3<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *BroadCastData_Version: case *BroadCastData_Version:
s := proto.Size(x.Version) s := proto.Size(x.Version)
n += proto.SizeVarint(4<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -755,18 +1204,41 @@ func _BroadCastData_OneofSizer(msg proto.Message) (n int) { ...@@ -755,18 +1204,41 @@ func _BroadCastData_OneofSizer(msg proto.Message) (n int) {
return n return n
} }
// * //*
// p2p 获取区块区间头部信息协议 // p2p 获取区块区间头部信息协议
type P2PGetHeaders struct { type P2PGetHeaders struct {
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
StartHeight int64 `protobuf:"varint,2,opt,name=startHeight" json:"startHeight,omitempty"` StartHeight int64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
EndHeight int64 `protobuf:"varint,3,opt,name=endHeight" json:"endHeight,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 (m *P2PGetHeaders) Reset() { *m = P2PGetHeaders{} }
func (m *P2PGetHeaders) String() string { return proto.CompactTextString(m) }
func (*P2PGetHeaders) ProtoMessage() {}
func (*P2PGetHeaders) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{19}
} }
func (m *P2PGetHeaders) Reset() { *m = P2PGetHeaders{} } func (m *P2PGetHeaders) XXX_Unmarshal(b []byte) error {
func (m *P2PGetHeaders) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_P2PGetHeaders.Unmarshal(m, b)
func (*P2PGetHeaders) ProtoMessage() {} }
func (*P2PGetHeaders) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{19} } func (m *P2PGetHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PGetHeaders.Marshal(b, m, deterministic)
}
func (m *P2PGetHeaders) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PGetHeaders.Merge(m, src)
}
func (m *P2PGetHeaders) XXX_Size() int {
return xxx_messageInfo_P2PGetHeaders.Size(m)
}
func (m *P2PGetHeaders) XXX_DiscardUnknown() {
xxx_messageInfo_P2PGetHeaders.DiscardUnknown(m)
}
var xxx_messageInfo_P2PGetHeaders proto.InternalMessageInfo
func (m *P2PGetHeaders) GetVersion() int32 { func (m *P2PGetHeaders) GetVersion() int32 {
if m != nil { if m != nil {
...@@ -789,16 +1261,39 @@ func (m *P2PGetHeaders) GetEndHeight() int64 { ...@@ -789,16 +1261,39 @@ func (m *P2PGetHeaders) GetEndHeight() int64 {
return 0 return 0
} }
// * //*
// p2p 区块头传输协议 // p2p 区块头传输协议
type P2PHeaders struct { type P2PHeaders struct {
Headers []*Header `protobuf:"bytes,1,rep,name=headers" json:"headers,omitempty"` Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *P2PHeaders) Reset() { *m = P2PHeaders{} } func (m *P2PHeaders) Reset() { *m = P2PHeaders{} }
func (m *P2PHeaders) String() string { return proto.CompactTextString(m) } func (m *P2PHeaders) String() string { return proto.CompactTextString(m) }
func (*P2PHeaders) ProtoMessage() {} func (*P2PHeaders) ProtoMessage() {}
func (*P2PHeaders) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{20} } func (*P2PHeaders) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{20}
}
func (m *P2PHeaders) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_P2PHeaders.Unmarshal(m, b)
}
func (m *P2PHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_P2PHeaders.Marshal(b, m, deterministic)
}
func (m *P2PHeaders) XXX_Merge(src proto.Message) {
xxx_messageInfo_P2PHeaders.Merge(m, src)
}
func (m *P2PHeaders) XXX_Size() int {
return xxx_messageInfo_P2PHeaders.Size(m)
}
func (m *P2PHeaders) XXX_DiscardUnknown() {
xxx_messageInfo_P2PHeaders.DiscardUnknown(m)
}
var xxx_messageInfo_P2PHeaders proto.InternalMessageInfo
func (m *P2PHeaders) GetHeaders() []*Header { func (m *P2PHeaders) GetHeaders() []*Header {
if m != nil { if m != nil {
...@@ -807,33 +1302,58 @@ func (m *P2PHeaders) GetHeaders() []*Header { ...@@ -807,33 +1302,58 @@ func (m *P2PHeaders) GetHeaders() []*Header {
return nil return nil
} }
// * //*
// inv 请求协议 // inv 请求协议
type InvData struct { type InvData struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *InvData_Tx // *InvData_Tx
// *InvData_Block // *InvData_Block
Value isInvData_Value `protobuf_oneof:"value"` Value isInvData_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,3,opt,name=ty" json:"ty,omitempty"` Ty int32 `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *InvData) Reset() { *m = InvData{} } func (m *InvData) Reset() { *m = InvData{} }
func (m *InvData) String() string { return proto.CompactTextString(m) } func (m *InvData) String() string { return proto.CompactTextString(m) }
func (*InvData) ProtoMessage() {} func (*InvData) ProtoMessage() {}
func (*InvData) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{21} } func (*InvData) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{21}
}
func (m *InvData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InvData.Unmarshal(m, b)
}
func (m *InvData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InvData.Marshal(b, m, deterministic)
}
func (m *InvData) XXX_Merge(src proto.Message) {
xxx_messageInfo_InvData.Merge(m, src)
}
func (m *InvData) XXX_Size() int {
return xxx_messageInfo_InvData.Size(m)
}
func (m *InvData) XXX_DiscardUnknown() {
xxx_messageInfo_InvData.DiscardUnknown(m)
}
var xxx_messageInfo_InvData proto.InternalMessageInfo
type isInvData_Value interface { type isInvData_Value interface {
isInvData_Value() isInvData_Value()
} }
type InvData_Tx struct { type InvData_Tx struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,oneof"` Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
} }
type InvData_Block struct { type InvData_Block struct {
Block *Block `protobuf:"bytes,2,opt,name=block,oneof"` Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
} }
func (*InvData_Tx) isInvData_Value() {} func (*InvData_Tx) isInvData_Value() {}
func (*InvData_Block) isInvData_Value() {} func (*InvData_Block) isInvData_Value() {}
func (m *InvData) GetValue() isInvData_Value { func (m *InvData) GetValue() isInvData_Value {
...@@ -923,12 +1443,12 @@ func _InvData_OneofSizer(msg proto.Message) (n int) { ...@@ -923,12 +1443,12 @@ func _InvData_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *InvData_Tx: case *InvData_Tx:
s := proto.Size(x.Tx) s := proto.Size(x.Tx)
n += proto.SizeVarint(1<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *InvData_Block: case *InvData_Block:
s := proto.Size(x.Block) s := proto.Size(x.Block)
n += proto.SizeVarint(2<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -938,16 +1458,39 @@ func _InvData_OneofSizer(msg proto.Message) (n int) { ...@@ -938,16 +1458,39 @@ func _InvData_OneofSizer(msg proto.Message) (n int) {
return n return n
} }
// * //*
// inv 返回数据 // inv 返回数据
type InvDatas struct { type InvDatas struct {
Items []*InvData `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` Items []*InvData `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *InvDatas) Reset() { *m = InvDatas{} } func (m *InvDatas) Reset() { *m = InvDatas{} }
func (m *InvDatas) String() string { return proto.CompactTextString(m) } func (m *InvDatas) String() string { return proto.CompactTextString(m) }
func (*InvDatas) ProtoMessage() {} func (*InvDatas) ProtoMessage() {}
func (*InvDatas) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{22} } func (*InvDatas) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{22}
}
func (m *InvDatas) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InvDatas.Unmarshal(m, b)
}
func (m *InvDatas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InvDatas.Marshal(b, m, deterministic)
}
func (m *InvDatas) XXX_Merge(src proto.Message) {
xxx_messageInfo_InvDatas.Merge(m, src)
}
func (m *InvDatas) XXX_Size() int {
return xxx_messageInfo_InvDatas.Size(m)
}
func (m *InvDatas) XXX_DiscardUnknown() {
xxx_messageInfo_InvDatas.DiscardUnknown(m)
}
var xxx_messageInfo_InvDatas proto.InternalMessageInfo
func (m *InvDatas) GetItems() []*InvData { func (m *InvDatas) GetItems() []*InvData {
if m != nil { if m != nil {
...@@ -956,21 +1499,44 @@ func (m *InvDatas) GetItems() []*InvData { ...@@ -956,21 +1499,44 @@ func (m *InvDatas) GetItems() []*InvData {
return nil return nil
} }
// * //*
// peer 信息 // peer 信息
type Peer struct { type Peer struct {
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Self bool `protobuf:"varint,4,opt,name=self" json:"self,omitempty"` Self bool `protobuf:"varint,4,opt,name=self,proto3" json:"self,omitempty"`
MempoolSize int32 `protobuf:"varint,5,opt,name=mempoolSize" json:"mempoolSize,omitempty"` MempoolSize int32 `protobuf:"varint,5,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
Header *Header `protobuf:"bytes,6,opt,name=header" json:"header,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:"-"`
}
func (m *Peer) Reset() { *m = Peer{} }
func (m *Peer) String() string { return proto.CompactTextString(m) }
func (*Peer) ProtoMessage() {}
func (*Peer) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{23}
}
func (m *Peer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Peer.Unmarshal(m, b)
}
func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Peer.Marshal(b, m, deterministic)
}
func (m *Peer) XXX_Merge(src proto.Message) {
xxx_messageInfo_Peer.Merge(m, src)
}
func (m *Peer) XXX_Size() int {
return xxx_messageInfo_Peer.Size(m)
}
func (m *Peer) XXX_DiscardUnknown() {
xxx_messageInfo_Peer.DiscardUnknown(m)
} }
func (m *Peer) Reset() { *m = Peer{} } var xxx_messageInfo_Peer proto.InternalMessageInfo
func (m *Peer) String() string { return proto.CompactTextString(m) }
func (*Peer) ProtoMessage() {}
func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{23} }
func (m *Peer) GetAddr() string { func (m *Peer) GetAddr() string {
if m != nil { if m != nil {
...@@ -1014,16 +1580,39 @@ func (m *Peer) GetHeader() *Header { ...@@ -1014,16 +1580,39 @@ func (m *Peer) GetHeader() *Header {
return nil return nil
} }
// * //*
// peer 列表 // peer 列表
type PeerList struct { type PeerList struct {
Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PeerList) Reset() { *m = PeerList{} } func (m *PeerList) Reset() { *m = PeerList{} }
func (m *PeerList) String() string { return proto.CompactTextString(m) } func (m *PeerList) String() string { return proto.CompactTextString(m) }
func (*PeerList) ProtoMessage() {} func (*PeerList) ProtoMessage() {}
func (*PeerList) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{24} } func (*PeerList) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{24}
}
func (m *PeerList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PeerList.Unmarshal(m, b)
}
func (m *PeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PeerList.Marshal(b, m, deterministic)
}
func (m *PeerList) XXX_Merge(src proto.Message) {
xxx_messageInfo_PeerList.Merge(m, src)
}
func (m *PeerList) XXX_Size() int {
return xxx_messageInfo_PeerList.Size(m)
}
func (m *PeerList) XXX_DiscardUnknown() {
xxx_messageInfo_PeerList.DiscardUnknown(m)
}
var xxx_messageInfo_PeerList proto.InternalMessageInfo
func (m *PeerList) GetPeers() []*Peer { func (m *PeerList) GetPeers() []*Peer {
if m != nil { if m != nil {
...@@ -1032,20 +1621,43 @@ func (m *PeerList) GetPeers() []*Peer { ...@@ -1032,20 +1621,43 @@ func (m *PeerList) GetPeers() []*Peer {
return nil return nil
} }
// * //*
// 当前节点的网络信息 //当前节点的网络信息
type NodeNetInfo struct { type NodeNetInfo struct {
Externaladdr string `protobuf:"bytes,1,opt,name=externaladdr" json:"externaladdr,omitempty"` Externaladdr string `protobuf:"bytes,1,opt,name=externaladdr,proto3" json:"externaladdr,omitempty"`
Localaddr string `protobuf:"bytes,2,opt,name=localaddr" json:"localaddr,omitempty"` Localaddr string `protobuf:"bytes,2,opt,name=localaddr,proto3" json:"localaddr,omitempty"`
Service bool `protobuf:"varint,3,opt,name=service" json:"service,omitempty"` Service bool `protobuf:"varint,3,opt,name=service,proto3" json:"service,omitempty"`
Outbounds int32 `protobuf:"varint,4,opt,name=outbounds" json:"outbounds,omitempty"` Outbounds int32 `protobuf:"varint,4,opt,name=outbounds,proto3" json:"outbounds,omitempty"`
Inbounds int32 `protobuf:"varint,5,opt,name=inbounds" json:"inbounds,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 (m *NodeNetInfo) Reset() { *m = NodeNetInfo{} }
func (m *NodeNetInfo) String() string { return proto.CompactTextString(m) }
func (*NodeNetInfo) ProtoMessage() {}
func (*NodeNetInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{25}
}
func (m *NodeNetInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeNetInfo.Unmarshal(m, b)
}
func (m *NodeNetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeNetInfo.Marshal(b, m, deterministic)
}
func (m *NodeNetInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeNetInfo.Merge(m, src)
}
func (m *NodeNetInfo) XXX_Size() int {
return xxx_messageInfo_NodeNetInfo.Size(m)
}
func (m *NodeNetInfo) XXX_DiscardUnknown() {
xxx_messageInfo_NodeNetInfo.DiscardUnknown(m)
} }
func (m *NodeNetInfo) Reset() { *m = NodeNetInfo{} } var xxx_messageInfo_NodeNetInfo proto.InternalMessageInfo
func (m *NodeNetInfo) String() string { return proto.CompactTextString(m) }
func (*NodeNetInfo) ProtoMessage() {}
func (*NodeNetInfo) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{25} }
func (m *NodeNetInfo) GetExternaladdr() string { func (m *NodeNetInfo) GetExternaladdr() string {
if m != nil { if m != nil {
...@@ -1083,13 +1695,36 @@ func (m *NodeNetInfo) GetInbounds() int32 { ...@@ -1083,13 +1695,36 @@ func (m *NodeNetInfo) GetInbounds() int32 {
} }
type PeersReply struct { type PeersReply struct {
Peers []*PeersInfo `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` 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 (m *PeersReply) Reset() { *m = PeersReply{} }
func (m *PeersReply) String() string { return proto.CompactTextString(m) }
func (*PeersReply) ProtoMessage() {}
func (*PeersReply) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{26}
}
func (m *PeersReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PeersReply.Unmarshal(m, b)
}
func (m *PeersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PeersReply.Marshal(b, m, deterministic)
}
func (m *PeersReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_PeersReply.Merge(m, src)
}
func (m *PeersReply) XXX_Size() int {
return xxx_messageInfo_PeersReply.Size(m)
}
func (m *PeersReply) XXX_DiscardUnknown() {
xxx_messageInfo_PeersReply.DiscardUnknown(m)
} }
func (m *PeersReply) Reset() { *m = PeersReply{} } var xxx_messageInfo_PeersReply proto.InternalMessageInfo
func (m *PeersReply) String() string { return proto.CompactTextString(m) }
func (*PeersReply) ProtoMessage() {}
func (*PeersReply) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{26} }
func (m *PeersReply) GetPeers() []*PeersInfo { func (m *PeersReply) GetPeers() []*PeersInfo {
if m != nil { if m != nil {
...@@ -1099,17 +1734,40 @@ func (m *PeersReply) GetPeers() []*PeersInfo { ...@@ -1099,17 +1734,40 @@ func (m *PeersReply) GetPeers() []*PeersInfo {
} }
type PeersInfo struct { type PeersInfo struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Ip string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
Port int32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
Softversion string `protobuf:"bytes,4,opt,name=softversion" json:"softversion,omitempty"` Softversion string `protobuf:"bytes,4,opt,name=softversion,proto3" json:"softversion,omitempty"`
P2Pversion int32 `protobuf:"varint,5,opt,name=p2pversion" json:"p2pversion,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 (m *PeersInfo) Reset() { *m = PeersInfo{} } func (m *PeersInfo) Reset() { *m = PeersInfo{} }
func (m *PeersInfo) String() string { return proto.CompactTextString(m) } func (m *PeersInfo) String() string { return proto.CompactTextString(m) }
func (*PeersInfo) ProtoMessage() {} func (*PeersInfo) ProtoMessage() {}
func (*PeersInfo) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{27} } func (*PeersInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e7fdddb109e6467a, []int{27}
}
func (m *PeersInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PeersInfo.Unmarshal(m, b)
}
func (m *PeersInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PeersInfo.Marshal(b, m, deterministic)
}
func (m *PeersInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_PeersInfo.Merge(m, src)
}
func (m *PeersInfo) XXX_Size() int {
return xxx_messageInfo_PeersInfo.Size(m)
}
func (m *PeersInfo) XXX_DiscardUnknown() {
xxx_messageInfo_PeersInfo.DiscardUnknown(m)
}
var xxx_messageInfo_PeersInfo proto.InternalMessageInfo
func (m *PeersInfo) GetName() string { func (m *PeersInfo) GetName() string {
if m != nil { if m != nil {
...@@ -1177,6 +1835,93 @@ func init() { ...@@ -1177,6 +1835,93 @@ func init() {
proto.RegisterType((*PeersInfo)(nil), "types.PeersInfo") proto.RegisterType((*PeersInfo)(nil), "types.PeersInfo")
} }
func init() { proto.RegisterFile("p2p.proto", fileDescriptor_e7fdddb109e6467a) }
var fileDescriptor_e7fdddb109e6467a = []byte{
// 1294 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x72, 0x1b, 0x45,
0x13, 0xdf, 0xd5, 0x1f, 0x4b, 0x6a, 0xd9, 0xb2, 0x33, 0x5f, 0xbe, 0xaf, 0x54, 0xaa, 0x7c, 0x49,
0x98, 0x0a, 0xc4, 0x90, 0x8a, 0x92, 0xac, 0x20, 0x54, 0x11, 0x2e, 0x76, 0x80, 0xd8, 0x55, 0x21,
0xb5, 0xb5, 0x32, 0x1c, 0xb8, 0xad, 0x57, 0x63, 0x69, 0x2a, 0xd2, 0xcc, 0xb2, 0x3b, 0x52, 0xd9,
0xdc, 0xb9, 0x71, 0xe2, 0x05, 0x38, 0xf0, 0x0a, 0x3c, 0x16, 0x0f, 0x41, 0x4d, 0xef, 0xcc, 0xfe,
0x91, 0x64, 0x1d, 0xa0, 0xb8, 0x6d, 0xff, 0xba, 0x7b, 0xfa, 0x7f, 0xb7, 0x04, 0x9d, 0xd8, 0x8b,
0x87, 0x71, 0x22, 0x95, 0x24, 0x4d, 0x75, 0x13, 0xb3, 0x74, 0x70, 0x47, 0x25, 0xa1, 0x48, 0xc3,
0x48, 0x71, 0x29, 0x32, 0xce, 0x60, 0x3f, 0x92, 0x8b, 0x45, 0x4e, 0x1d, 0x5d, 0xce, 0x65, 0xf4,
0x3e, 0x9a, 0x85, 0xdc, 0x20, 0xf4, 0x13, 0xe8, 0xf9, 0x9e, 0xff, 0x86, 0x29, 0x9f, 0xb1, 0xe4,
0x5c, 0x5c, 0x49, 0xd2, 0x87, 0xd6, 0x8a, 0x25, 0x29, 0x97, 0xa2, 0xef, 0x3e, 0x74, 0x8f, 0x9b,
0x81, 0x25, 0xe9, 0xaf, 0x2e, 0x74, 0x7d, 0xcf, 0xcf, 0x25, 0x09, 0x34, 0xc2, 0xc9, 0x24, 0x41,
0xb1, 0x4e, 0x80, 0xdf, 0x1a, 0x8b, 0x65, 0xa2, 0xfa, 0x35, 0x54, 0xc5, 0x6f, 0x8d, 0x89, 0x70,
0xc1, 0xfa, 0xf5, 0x4c, 0x4e, 0x7f, 0x93, 0x87, 0xd0, 0x5d, 0xb0, 0x45, 0x2c, 0xe5, 0x7c, 0xcc,
0x7f, 0x62, 0xfd, 0x06, 0x8a, 0x97, 0x21, 0xf2, 0x21, 0xec, 0xcd, 0x58, 0x38, 0x61, 0x49, 0xbf,
0xf9, 0xd0, 0x3d, 0xee, 0x7a, 0x07, 0x43, 0x0c, 0x72, 0x78, 0x86, 0x60, 0x60, 0x98, 0xf4, 0x4f,
0x17, 0xc0, 0xf7, 0xfc, 0xef, 0x33, 0x1f, 0x6f, 0xf7, 0x5e, 0x73, 0x52, 0x96, 0xac, 0x78, 0xc4,
0xd0, 0xb9, 0x7a, 0x60, 0x49, 0x72, 0x0f, 0x3a, 0x8a, 0x2f, 0x58, 0xaa, 0xc2, 0x45, 0x8c, 0x4e,
0xd6, 0x83, 0x02, 0x20, 0x03, 0x68, 0xeb, 0xc8, 0x02, 0x16, 0xad, 0xd0, 0xcd, 0x4e, 0x90, 0xd3,
0x96, 0xf7, 0x4d, 0x22, 0x17, 0xe8, 0xa5, 0xe1, 0x69, 0x9a, 0xdc, 0x85, 0xa6, 0x90, 0x22, 0x62,
0xfd, 0x3d, 0x7c, 0x31, 0x23, 0xb4, 0xad, 0x65, 0xca, 0x92, 0x93, 0x29, 0x13, 0xaa, 0xdf, 0x42,
0x95, 0x02, 0xd0, 0x59, 0x49, 0x55, 0x98, 0xa8, 0x33, 0xc6, 0xa7, 0x33, 0xd5, 0x6f, 0xa3, 0x66,
0x19, 0xa2, 0xdf, 0x41, 0x27, 0x8b, 0xf6, 0x24, 0x7a, 0xff, 0xb7, 0x82, 0xcd, 0xdd, 0xaa, 0x97,
0xdc, 0xa2, 0x0b, 0x68, 0xe9, 0xca, 0x72, 0x31, 0x2d, 0x04, 0xdc, 0xb2, 0xdf, 0xb6, 0xd6, 0xb5,
0x2d, 0xb5, 0xae, 0x97, 0x6a, 0xfd, 0x08, 0x1a, 0x29, 0x9f, 0x0a, 0xcc, 0x54, 0xd7, 0x3b, 0x32,
0x35, 0x1b, 0xf3, 0xa9, 0x08, 0xd5, 0x32, 0x61, 0x01, 0x72, 0xe9, 0x83, 0xcc, 0x9c, 0xbc, 0xcd,
0x1c, 0xa5, 0x58, 0xd4, 0x37, 0x4c, 0x9d, 0x68, 0x43, 0xdb, 0x65, 0x5e, 0xe1, 0x23, 0xb7, 0x0b,
0xd8, 0xea, 0xcc, 0x79, 0xaa, 0xfb, 0xb1, 0x6e, 0xab, 0xa3, 0x69, 0x3a, 0xc6, 0x56, 0xd6, 0xca,
0x6f, 0x79, 0xaa, 0x6e, 0x79, 0x60, 0x08, 0xed, 0x98, 0xb1, 0x84, 0x8b, 0x2b, 0x89, 0x0f, 0x74,
0x3d, 0x62, 0x02, 0x2a, 0x8d, 0x41, 0x90, 0xcb, 0xd0, 0xd7, 0x70, 0xe8, 0x7b, 0xfe, 0xd7, 0xd7,
0x8a, 0x25, 0x22, 0x9c, 0xdf, 0x3a, 0x23, 0xf7, 0xa0, 0xc3, 0x53, 0xb9, 0x54, 0x29, 0x9f, 0x64,
0xe5, 0x69, 0x07, 0x05, 0x40, 0x67, 0xb0, 0x9f, 0x85, 0x7e, 0xaa, 0x67, 0x35, 0xdd, 0x51, 0xe4,
0xb5, 0x6e, 0xa9, 0x6d, 0x74, 0x8b, 0xb6, 0xc4, 0xc4, 0xc4, 0xf0, 0x4d, 0x67, 0xe7, 0x00, 0xfd,
0x18, 0x0e, 0x32, 0x4b, 0xdf, 0x66, 0x63, 0xb7, 0x63, 0xf4, 0x87, 0xb0, 0xe7, 0x7b, 0xfe, 0xb9,
0x58, 0xe9, 0x02, 0x73, 0xb1, 0x4a, 0xfb, 0x2e, 0xe6, 0xc3, 0x16, 0xf8, 0x5c, 0xac, 0x98, 0x50,
0x32, 0xb9, 0x09, 0x90, 0x4b, 0xdf, 0x40, 0x27, 0x87, 0x48, 0x0f, 0x6a, 0xea, 0xc6, 0xbc, 0x58,
0x53, 0x37, 0x3a, 0x27, 0xb3, 0x30, 0x9d, 0xa1, 0xc3, 0xfb, 0x01, 0x7e, 0x93, 0xff, 0xe9, 0x69,
0x2f, 0xb9, 0x69, 0x28, 0xfa, 0xd6, 0x36, 0xc2, 0x57, 0xa1, 0x0a, 0x77, 0xe4, 0xc2, 0xba, 0x55,
0xdb, 0xe9, 0xd6, 0x13, 0x68, 0xfa, 0x9e, 0x7f, 0x71, 0x4d, 0x28, 0xd4, 0xd4, 0x35, 0xbe, 0x51,
0xd4, 0xf4, 0xa2, 0x58, 0x9e, 0x41, 0x4d, 0x5d, 0xd3, 0x21, 0xb4, 0x7d, 0xcf, 0xc7, 0x2a, 0x10,
0x0a, 0x4d, 0x5c, 0x9d, 0x46, 0x65, 0xdf, 0xa8, 0x20, 0x33, 0xc8, 0x58, 0x74, 0x06, 0x6d, 0xb3,
0x85, 0x52, 0x72, 0x1f, 0x20, 0xf6, 0xe2, 0xaa, 0xaf, 0x25, 0x04, 0x4b, 0x27, 0xaf, 0x94, 0x15,
0xc8, 0xa6, 0xaa, 0x0c, 0xe9, 0xe6, 0xd5, 0x7d, 0x55, 0x5a, 0x9c, 0x39, 0x4d, 0xff, 0x70, 0xe1,
0xe0, 0x34, 0x91, 0xe1, 0xe4, 0x75, 0x98, 0x66, 0x89, 0xb9, 0x5f, 0x8a, 0x67, 0xbf, 0xe8, 0xd1,
0x8b, 0xeb, 0x33, 0x47, 0xc7, 0x42, 0x1e, 0x5b, 0xff, 0x6b, 0x28, 0x72, 0x58, 0x88, 0x60, 0x08,
0x67, 0x8e, 0x09, 0x42, 0xe7, 0x31, 0xe6, 0x62, 0x8a, 0x26, 0xbb, 0x5e, 0xaf, 0xd4, 0xee, 0x5c,
0x4c, 0xcf, 0x9c, 0x00, 0xb9, 0xe4, 0x49, 0x51, 0x87, 0x46, 0xe5, 0x41, 0x9b, 0x80, 0x33, 0x27,
0x2f, 0xcd, 0x69, 0x0b, 0x9a, 0xab, 0x70, 0xbe, 0x64, 0x94, 0xdb, 0x7e, 0xcb, 0x56, 0xf8, 0xbf,
0xd9, 0xda, 0x9f, 0x61, 0xdb, 0x58, 0x3b, 0x8f, 0xa1, 0x95, 0x5d, 0x0b, 0xdb, 0xb6, 0x6b, 0xb7,
0xc4, 0x72, 0xa9, 0x80, 0xd6, 0xb9, 0x58, 0x61, 0x46, 0x1f, 0xed, 0xee, 0x10, 0x93, 0xd7, 0x47,
0xd5, 0xbc, 0x56, 0xfa, 0xa2, 0x48, 0x6a, 0x36, 0x00, 0x75, 0x3b, 0x00, 0x45, 0x46, 0x9e, 0x43,
0xdb, 0xd8, 0x4b, 0xf5, 0x53, 0x5c, 0xb1, 0x85, 0x75, 0xb1, 0x57, 0xb4, 0xb0, 0xe6, 0x07, 0x19,
0x93, 0xfe, 0xe6, 0x42, 0x43, 0x6f, 0x9e, 0x7f, 0x74, 0x7c, 0x09, 0x34, 0x52, 0x36, 0xbf, 0xc2,
0xda, 0xb5, 0x03, 0xfc, 0x5e, 0x3f, 0xc8, 0xcd, 0x5d, 0x07, 0x79, 0x6f, 0xd7, 0x41, 0x7e, 0x0a,
0x6d, 0xed, 0x20, 0xae, 0xd5, 0x0f, 0xa0, 0xa9, 0x9b, 0xd6, 0xc6, 0xd4, 0xb5, 0xed, 0xc4, 0x58,
0x12, 0x64, 0x1c, 0xfa, 0xbb, 0x0b, 0xdd, 0x77, 0x72, 0xc2, 0xde, 0x31, 0x85, 0x0b, 0x93, 0xc2,
0x3e, 0x33, 0x0b, 0xb4, 0x14, 0x5f, 0x05, 0xd3, 0xb5, 0x9f, 0xcb, 0xc8, 0x08, 0x64, 0xb3, 0x53,
0x00, 0xe5, 0xdb, 0x57, 0xc7, 0x00, 0xcb, 0x87, 0x5e, 0x2e, 0xd5, 0xa5, 0x5c, 0x8a, 0x49, 0x6a,
0x7e, 0x72, 0x14, 0x80, 0x9e, 0x38, 0x2e, 0x0c, 0x33, 0x0b, 0x3f, 0xa7, 0xe9, 0xa7, 0x00, 0xda,
0xe9, 0x34, 0x60, 0xf1, 0xfc, 0x86, 0x7c, 0x54, 0x0d, 0xeb, 0xa8, 0x14, 0x56, 0x8a, 0x27, 0xc1,
0xc4, 0xf6, 0xb3, 0x0b, 0x9d, 0x1c, 0xcc, 0x2b, 0xe1, 0x96, 0x2a, 0xd1, 0x83, 0x1a, 0x8f, 0x4d,
0x08, 0x35, 0x1e, 0x6f, 0x3d, 0xa9, 0x6b, 0xbb, 0xa2, 0xb1, 0xb9, 0x2b, 0xaa, 0xdb, 0xa6, 0xb9,
0xbe, 0x6d, 0xbc, 0x5f, 0x5a, 0xd0, 0x8d, 0xbd, 0x78, 0x6a, 0xf3, 0xf0, 0x04, 0xba, 0xf9, 0xfa,
0xb8, 0xb8, 0x26, 0x95, 0x85, 0x31, 0xb0, 0x14, 0x86, 0x4a, 0x1d, 0xf2, 0x02, 0x7a, 0xb9, 0x70,
0xb6, 0x0c, 0xd7, 0xb7, 0xc7, 0x86, 0xca, 0x31, 0x34, 0xf0, 0xa7, 0xc4, 0xda, 0xfa, 0x18, 0x94,
0x69, 0x29, 0xa6, 0xd4, 0x21, 0x43, 0x68, 0xd9, 0x23, 0x7f, 0xa7, 0x60, 0x1a, 0xa8, 0x2c, 0xaf,
0x69, 0xea, 0x90, 0x97, 0xd0, 0x35, 0x4c, 0xec, 0xaf, 0x2d, 0x3a, 0xa4, 0xaa, 0xa3, 0xc5, 0xa8,
0x43, 0x9e, 0x43, 0xcb, 0xfe, 0x42, 0x2c, 0xe9, 0x18, 0x68, 0x70, 0x54, 0x81, 0x4e, 0xa2, 0xf7,
0xd4, 0x21, 0x5e, 0xbe, 0xcd, 0xbd, 0x6d, 0x2a, 0x9b, 0x10, 0x75, 0xc8, 0x53, 0xe8, 0x8e, 0xe5,
0x95, 0xb2, 0x96, 0xd6, 0xc3, 0xdf, 0xcc, 0x6c, 0xa7, 0x38, 0xf3, 0xff, 0xa9, 0x84, 0x92, 0x81,
0x83, 0x83, 0x02, 0x3c, 0x17, 0x2b, 0xea, 0x90, 0x11, 0x40, 0x76, 0xaf, 0x7d, 0x7d, 0xaf, 0xef,
0x56, 0x74, 0xcc, 0x15, 0xdf, 0x54, 0x7a, 0x81, 0x49, 0xc6, 0xad, 0x56, 0x4d, 0x98, 0x86, 0x06,
0x87, 0xd5, 0x45, 0x93, 0x52, 0xe7, 0xb9, 0x4b, 0x3e, 0x47, 0x3b, 0x76, 0x7f, 0x56, 0xed, 0x18,
0xb4, 0x9c, 0x02, 0x03, 0x51, 0x87, 0x7c, 0x81, 0x05, 0xca, 0xff, 0x22, 0xfc, 0xb7, 0xa2, 0x69,
0xe1, 0xc1, 0x96, 0x9f, 0x51, 0xd4, 0x21, 0xaf, 0xe0, 0x68, 0xcc, 0x92, 0x15, 0x4b, 0xc6, 0x2a,
0x61, 0xe1, 0x22, 0x60, 0xe1, 0x24, 0x37, 0x5d, 0x39, 0x77, 0x79, 0x88, 0x01, 0xfb, 0xf1, 0x1d,
0x9f, 0x53, 0xe7, 0xd8, 0x25, 0x5f, 0x56, 0x95, 0xc7, 0x4c, 0x4c, 0x36, 0x0a, 0xb0, 0xf5, 0x31,
0x8c, 0x77, 0x04, 0xbd, 0xd7, 0x72, 0x3e, 0x67, 0x91, 0x3a, 0x17, 0x38, 0xb1, 0x1b, 0xba, 0x87,
0xa5, 0x21, 0x37, 0x4d, 0xf5, 0x12, 0x0e, 0xab, 0x4a, 0xde, 0x86, 0xd6, 0x9d, 0xf2, 0x6a, 0x30,
0x75, 0x3f, 0x7d, 0xf0, 0xc3, 0xff, 0xa7, 0x5c, 0xcd, 0x96, 0x97, 0xc3, 0x48, 0x2e, 0x9e, 0x8d,
0x46, 0x91, 0x78, 0x86, 0x7f, 0xc9, 0x46, 0xa3, 0x67, 0x28, 0x7d, 0xb9, 0x87, 0xff, 0xcd, 0x46,
0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x73, 0x56, 0x36, 0x8a, 0xe2, 0x0d, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -1185,33 +1930,34 @@ var _ grpc.ClientConn ...@@ -1185,33 +1930,34 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// Client API for P2Pgservice service // 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 P2PgserviceClient interface { type P2PgserviceClient interface {
// 广播交易 //广播交易
BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error) BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error)
// 广播区块 //广播区块
BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error) BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error)
// PING // PING
Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error) Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error)
// 获取地址 //获取地址
GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error) GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error)
GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error) GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error)
// 版本 //版本
Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error) Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error)
// 获取p2p协议的版本号 //获取p2p协议的版本号
Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error) Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error)
// 获取软件的版本号 //获取软件的版本号
SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error) SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error)
// 获取区块,最高200 //获取区块,最高200
GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error) GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error)
// 获取mempool //获取mempool
GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error) GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error)
// 获取数据 //获取数据
GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error) GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error)
// 获取头部 //获取头部
GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error) GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error)
// 获取 peerinfo //获取 peerinfo
GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error) GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error)
// grpc server 读客户端发送来的数据 // grpc server 读客户端发送来的数据
ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error) ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error)
...@@ -1232,7 +1978,7 @@ func NewP2PgserviceClient(cc *grpc.ClientConn) P2PgserviceClient { ...@@ -1232,7 +1978,7 @@ func NewP2PgserviceClient(cc *grpc.ClientConn) P2PgserviceClient {
func (c *p2PgserviceClient) BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error) { func (c *p2PgserviceClient) BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error) {
out := new(Reply) out := new(Reply)
err := grpc.Invoke(ctx, "/types.p2pgservice/BroadCastTx", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/BroadCastTx", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1241,7 +1987,7 @@ func (c *p2PgserviceClient) BroadCastTx(ctx context.Context, in *P2PTx, opts ... ...@@ -1241,7 +1987,7 @@ func (c *p2PgserviceClient) BroadCastTx(ctx context.Context, in *P2PTx, opts ...
func (c *p2PgserviceClient) BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error) { func (c *p2PgserviceClient) BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error) {
out := new(Reply) out := new(Reply)
err := grpc.Invoke(ctx, "/types.p2pgservice/BroadCastBlock", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/BroadCastBlock", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1250,7 +1996,7 @@ func (c *p2PgserviceClient) BroadCastBlock(ctx context.Context, in *P2PBlock, op ...@@ -1250,7 +1996,7 @@ func (c *p2PgserviceClient) BroadCastBlock(ctx context.Context, in *P2PBlock, op
func (c *p2PgserviceClient) Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error) { func (c *p2PgserviceClient) Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error) {
out := new(P2PPong) out := new(P2PPong)
err := grpc.Invoke(ctx, "/types.p2pgservice/Ping", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/Ping", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1259,7 +2005,7 @@ func (c *p2PgserviceClient) Ping(ctx context.Context, in *P2PPing, opts ...grpc. ...@@ -1259,7 +2005,7 @@ func (c *p2PgserviceClient) Ping(ctx context.Context, in *P2PPing, opts ...grpc.
func (c *p2PgserviceClient) GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error) { func (c *p2PgserviceClient) GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error) {
out := new(P2PAddr) out := new(P2PAddr)
err := grpc.Invoke(ctx, "/types.p2pgservice/GetAddr", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/GetAddr", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1268,7 +2014,7 @@ func (c *p2PgserviceClient) GetAddr(ctx context.Context, in *P2PGetAddr, opts .. ...@@ -1268,7 +2014,7 @@ func (c *p2PgserviceClient) GetAddr(ctx context.Context, in *P2PGetAddr, opts ..
func (c *p2PgserviceClient) GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error) { func (c *p2PgserviceClient) GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error) {
out := new(P2PAddrList) out := new(P2PAddrList)
err := grpc.Invoke(ctx, "/types.p2pgservice/GetAddrList", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/GetAddrList", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1277,7 +2023,7 @@ func (c *p2PgserviceClient) GetAddrList(ctx context.Context, in *P2PGetAddr, opt ...@@ -1277,7 +2023,7 @@ func (c *p2PgserviceClient) GetAddrList(ctx context.Context, in *P2PGetAddr, opt
func (c *p2PgserviceClient) Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error) { func (c *p2PgserviceClient) Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error) {
out := new(P2PVerAck) out := new(P2PVerAck)
err := grpc.Invoke(ctx, "/types.p2pgservice/Version", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/Version", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1286,7 +2032,7 @@ func (c *p2PgserviceClient) Version(ctx context.Context, in *P2PVersion, opts .. ...@@ -1286,7 +2032,7 @@ func (c *p2PgserviceClient) Version(ctx context.Context, in *P2PVersion, opts ..
func (c *p2PgserviceClient) Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error) { func (c *p2PgserviceClient) Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error) {
out := new(P2PVersion) out := new(P2PVersion)
err := grpc.Invoke(ctx, "/types.p2pgservice/Version2", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/Version2", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1295,7 +2041,7 @@ func (c *p2PgserviceClient) Version2(ctx context.Context, in *P2PVersion, opts . ...@@ -1295,7 +2041,7 @@ func (c *p2PgserviceClient) Version2(ctx context.Context, in *P2PVersion, opts .
func (c *p2PgserviceClient) SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error) { func (c *p2PgserviceClient) SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error) {
out := new(Reply) out := new(Reply)
err := grpc.Invoke(ctx, "/types.p2pgservice/SoftVersion", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/SoftVersion", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1304,7 +2050,7 @@ func (c *p2PgserviceClient) SoftVersion(ctx context.Context, in *P2PPing, opts . ...@@ -1304,7 +2050,7 @@ func (c *p2PgserviceClient) SoftVersion(ctx context.Context, in *P2PPing, opts .
func (c *p2PgserviceClient) GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error) { func (c *p2PgserviceClient) GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error) {
out := new(P2PInv) out := new(P2PInv)
err := grpc.Invoke(ctx, "/types.p2pgservice/GetBlocks", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/GetBlocks", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1313,7 +2059,7 @@ func (c *p2PgserviceClient) GetBlocks(ctx context.Context, in *P2PGetBlocks, opt ...@@ -1313,7 +2059,7 @@ func (c *p2PgserviceClient) GetBlocks(ctx context.Context, in *P2PGetBlocks, opt
func (c *p2PgserviceClient) GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error) { func (c *p2PgserviceClient) GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error) {
out := new(P2PInv) out := new(P2PInv)
err := grpc.Invoke(ctx, "/types.p2pgservice/GetMemPool", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/GetMemPool", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1321,7 +2067,7 @@ func (c *p2PgserviceClient) GetMemPool(ctx context.Context, in *P2PGetMempool, o ...@@ -1321,7 +2067,7 @@ func (c *p2PgserviceClient) GetMemPool(ctx context.Context, in *P2PGetMempool, o
} }
func (c *p2PgserviceClient) GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error) { func (c *p2PgserviceClient) GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error) {
stream, err := grpc.NewClientStream(ctx, &_P2Pgservice_serviceDesc.Streams[0], c.cc, "/types.p2pgservice/GetData", opts...) stream, err := c.cc.NewStream(ctx, &_P2Pgservice_serviceDesc.Streams[0], "/types.p2pgservice/GetData", opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1354,7 +2100,7 @@ func (x *p2PgserviceGetDataClient) Recv() (*InvDatas, error) { ...@@ -1354,7 +2100,7 @@ func (x *p2PgserviceGetDataClient) Recv() (*InvDatas, error) {
func (c *p2PgserviceClient) GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error) { func (c *p2PgserviceClient) GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error) {
out := new(P2PHeaders) out := new(P2PHeaders)
err := grpc.Invoke(ctx, "/types.p2pgservice/GetHeaders", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/GetHeaders", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1363,7 +2109,7 @@ func (c *p2PgserviceClient) GetHeaders(ctx context.Context, in *P2PGetHeaders, o ...@@ -1363,7 +2109,7 @@ func (c *p2PgserviceClient) GetHeaders(ctx context.Context, in *P2PGetHeaders, o
func (c *p2PgserviceClient) GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error) { func (c *p2PgserviceClient) GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error) {
out := new(P2PPeerInfo) out := new(P2PPeerInfo)
err := grpc.Invoke(ctx, "/types.p2pgservice/GetPeerInfo", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/GetPeerInfo", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1371,7 +2117,7 @@ func (c *p2PgserviceClient) GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, ...@@ -1371,7 +2117,7 @@ func (c *p2PgserviceClient) GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo,
} }
func (c *p2PgserviceClient) ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error) { func (c *p2PgserviceClient) ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error) {
stream, err := grpc.NewClientStream(ctx, &_P2Pgservice_serviceDesc.Streams[1], c.cc, "/types.p2pgservice/ServerStreamRead", opts...) stream, err := c.cc.NewStream(ctx, &_P2Pgservice_serviceDesc.Streams[1], "/types.p2pgservice/ServerStreamRead", opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1405,7 +2151,7 @@ func (x *p2PgserviceServerStreamReadClient) CloseAndRecv() (*ReqNil, error) { ...@@ -1405,7 +2151,7 @@ func (x *p2PgserviceServerStreamReadClient) CloseAndRecv() (*ReqNil, error) {
} }
func (c *p2PgserviceClient) ServerStreamSend(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (P2Pgservice_ServerStreamSendClient, error) { func (c *p2PgserviceClient) ServerStreamSend(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (P2Pgservice_ServerStreamSendClient, error) {
stream, err := grpc.NewClientStream(ctx, &_P2Pgservice_serviceDesc.Streams[2], c.cc, "/types.p2pgservice/ServerStreamSend", opts...) stream, err := c.cc.NewStream(ctx, &_P2Pgservice_serviceDesc.Streams[2], "/types.p2pgservice/ServerStreamSend", opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1438,7 +2184,7 @@ func (x *p2PgserviceServerStreamSendClient) Recv() (*BroadCastData, error) { ...@@ -1438,7 +2184,7 @@ func (x *p2PgserviceServerStreamSendClient) Recv() (*BroadCastData, error) {
func (c *p2PgserviceClient) CollectInPeers(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeerList, error) { func (c *p2PgserviceClient) CollectInPeers(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeerList, error) {
out := new(PeerList) out := new(PeerList)
err := grpc.Invoke(ctx, "/types.p2pgservice/CollectInPeers", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/CollectInPeers", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1447,40 +2193,39 @@ func (c *p2PgserviceClient) CollectInPeers(ctx context.Context, in *P2PPing, opt ...@@ -1447,40 +2193,39 @@ func (c *p2PgserviceClient) CollectInPeers(ctx context.Context, in *P2PPing, opt
func (c *p2PgserviceClient) CollectInPeers2(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeersReply, error) { func (c *p2PgserviceClient) CollectInPeers2(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeersReply, error) {
out := new(PeersReply) out := new(PeersReply)
err := grpc.Invoke(ctx, "/types.p2pgservice/CollectInPeers2", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/types.p2pgservice/CollectInPeers2", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// Server API for P2Pgservice service // P2PgserviceServer is the server API for P2Pgservice service.
type P2PgserviceServer interface { type P2PgserviceServer interface {
// 广播交易 //广播交易
BroadCastTx(context.Context, *P2PTx) (*Reply, error) BroadCastTx(context.Context, *P2PTx) (*Reply, error)
// 广播区块 //广播区块
BroadCastBlock(context.Context, *P2PBlock) (*Reply, error) BroadCastBlock(context.Context, *P2PBlock) (*Reply, error)
// PING // PING
Ping(context.Context, *P2PPing) (*P2PPong, error) Ping(context.Context, *P2PPing) (*P2PPong, error)
// 获取地址 //获取地址
GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error) GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error)
GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error) GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error)
// 版本 //版本
Version(context.Context, *P2PVersion) (*P2PVerAck, error) Version(context.Context, *P2PVersion) (*P2PVerAck, error)
// 获取p2p协议的版本号 //获取p2p协议的版本号
Version2(context.Context, *P2PVersion) (*P2PVersion, error) Version2(context.Context, *P2PVersion) (*P2PVersion, error)
// 获取软件的版本号 //获取软件的版本号
SoftVersion(context.Context, *P2PPing) (*Reply, error) SoftVersion(context.Context, *P2PPing) (*Reply, error)
// 获取区块,最高200 //获取区块,最高200
GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error) GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error)
// 获取mempool //获取mempool
GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error) GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error)
// 获取数据 //获取数据
GetData(*P2PGetData, P2Pgservice_GetDataServer) error GetData(*P2PGetData, P2Pgservice_GetDataServer) error
// 获取头部 //获取头部
GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error) GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error)
// 获取 peerinfo //获取 peerinfo
GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error) GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error)
// grpc server 读客户端发送来的数据 // grpc server 读客户端发送来的数据
ServerStreamRead(P2Pgservice_ServerStreamReadServer) error ServerStreamRead(P2Pgservice_ServerStreamReadServer) error
...@@ -1895,90 +2640,3 @@ var _P2Pgservice_serviceDesc = grpc.ServiceDesc{ ...@@ -1895,90 +2640,3 @@ var _P2Pgservice_serviceDesc = grpc.ServiceDesc{
}, },
Metadata: "p2p.proto", Metadata: "p2p.proto",
} }
func init() { proto.RegisterFile("p2p.proto", fileDescriptor5) }
var fileDescriptor5 = []byte{
// 1294 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x72, 0x1b, 0x45,
0x13, 0xdf, 0xd5, 0x1f, 0x4b, 0x6a, 0xd9, 0xb2, 0x33, 0x5f, 0xbe, 0xaf, 0x54, 0xaa, 0x7c, 0x49,
0x98, 0x0a, 0xc4, 0x90, 0x8a, 0x92, 0xac, 0x20, 0x54, 0x11, 0x2e, 0x76, 0x80, 0xd8, 0x55, 0x21,
0xb5, 0xb5, 0x32, 0x1c, 0xb8, 0xad, 0x57, 0x63, 0x69, 0x2a, 0xd2, 0xcc, 0xb2, 0x3b, 0x52, 0xd9,
0xdc, 0xb9, 0x71, 0xe2, 0x05, 0x38, 0xf0, 0x0a, 0x3c, 0x16, 0x0f, 0x41, 0x4d, 0xef, 0xcc, 0xfe,
0x91, 0x64, 0x1d, 0xa0, 0xb8, 0x6d, 0xff, 0xba, 0x7b, 0xfa, 0x7f, 0xb7, 0x04, 0x9d, 0xd8, 0x8b,
0x87, 0x71, 0x22, 0x95, 0x24, 0x4d, 0x75, 0x13, 0xb3, 0x74, 0x70, 0x47, 0x25, 0xa1, 0x48, 0xc3,
0x48, 0x71, 0x29, 0x32, 0xce, 0x60, 0x3f, 0x92, 0x8b, 0x45, 0x4e, 0x1d, 0x5d, 0xce, 0x65, 0xf4,
0x3e, 0x9a, 0x85, 0xdc, 0x20, 0xf4, 0x13, 0xe8, 0xf9, 0x9e, 0xff, 0x86, 0x29, 0x9f, 0xb1, 0xe4,
0x5c, 0x5c, 0x49, 0xd2, 0x87, 0xd6, 0x8a, 0x25, 0x29, 0x97, 0xa2, 0xef, 0x3e, 0x74, 0x8f, 0x9b,
0x81, 0x25, 0xe9, 0xaf, 0x2e, 0x74, 0x7d, 0xcf, 0xcf, 0x25, 0x09, 0x34, 0xc2, 0xc9, 0x24, 0x41,
0xb1, 0x4e, 0x80, 0xdf, 0x1a, 0x8b, 0x65, 0xa2, 0xfa, 0x35, 0x54, 0xc5, 0x6f, 0x8d, 0x89, 0x70,
0xc1, 0xfa, 0xf5, 0x4c, 0x4e, 0x7f, 0x93, 0x87, 0xd0, 0x5d, 0xb0, 0x45, 0x2c, 0xe5, 0x7c, 0xcc,
0x7f, 0x62, 0xfd, 0x06, 0x8a, 0x97, 0x21, 0xf2, 0x21, 0xec, 0xcd, 0x58, 0x38, 0x61, 0x49, 0xbf,
0xf9, 0xd0, 0x3d, 0xee, 0x7a, 0x07, 0x43, 0x0c, 0x72, 0x78, 0x86, 0x60, 0x60, 0x98, 0xf4, 0x4f,
0x17, 0xc0, 0xf7, 0xfc, 0xef, 0x33, 0x1f, 0x6f, 0xf7, 0x5e, 0x73, 0x52, 0x96, 0xac, 0x78, 0xc4,
0xd0, 0xb9, 0x7a, 0x60, 0x49, 0x72, 0x0f, 0x3a, 0x8a, 0x2f, 0x58, 0xaa, 0xc2, 0x45, 0x8c, 0x4e,
0xd6, 0x83, 0x02, 0x20, 0x03, 0x68, 0xeb, 0xc8, 0x02, 0x16, 0xad, 0xd0, 0xcd, 0x4e, 0x90, 0xd3,
0x96, 0xf7, 0x4d, 0x22, 0x17, 0xe8, 0xa5, 0xe1, 0x69, 0x9a, 0xdc, 0x85, 0xa6, 0x90, 0x22, 0x62,
0xfd, 0x3d, 0x7c, 0x31, 0x23, 0xb4, 0xad, 0x65, 0xca, 0x92, 0x93, 0x29, 0x13, 0xaa, 0xdf, 0x42,
0x95, 0x02, 0xd0, 0x59, 0x49, 0x55, 0x98, 0xa8, 0x33, 0xc6, 0xa7, 0x33, 0xd5, 0x6f, 0xa3, 0x66,
0x19, 0xa2, 0xdf, 0x41, 0x27, 0x8b, 0xf6, 0x24, 0x7a, 0xff, 0xb7, 0x82, 0xcd, 0xdd, 0xaa, 0x97,
0xdc, 0xa2, 0x0b, 0x68, 0xe9, 0xca, 0x72, 0x31, 0x2d, 0x04, 0xdc, 0xb2, 0xdf, 0xb6, 0xd6, 0xb5,
0x2d, 0xb5, 0xae, 0x97, 0x6a, 0xfd, 0x08, 0x1a, 0x29, 0x9f, 0x0a, 0xcc, 0x54, 0xd7, 0x3b, 0x32,
0x35, 0x1b, 0xf3, 0xa9, 0x08, 0xd5, 0x32, 0x61, 0x01, 0x72, 0xe9, 0x83, 0xcc, 0x9c, 0xbc, 0xcd,
0x1c, 0xa5, 0x58, 0xd4, 0x37, 0x4c, 0x9d, 0x68, 0x43, 0xdb, 0x65, 0x5e, 0xe1, 0x23, 0xb7, 0x0b,
0xd8, 0xea, 0xcc, 0x79, 0xaa, 0xfb, 0xb1, 0x6e, 0xab, 0xa3, 0x69, 0x3a, 0xc6, 0x56, 0xd6, 0xca,
0x6f, 0x79, 0xaa, 0x6e, 0x79, 0x60, 0x08, 0xed, 0x98, 0xb1, 0x84, 0x8b, 0x2b, 0x89, 0x0f, 0x74,
0x3d, 0x62, 0x02, 0x2a, 0x8d, 0x41, 0x90, 0xcb, 0xd0, 0xd7, 0x70, 0xe8, 0x7b, 0xfe, 0xd7, 0xd7,
0x8a, 0x25, 0x22, 0x9c, 0xdf, 0x3a, 0x23, 0xf7, 0xa0, 0xc3, 0x53, 0xb9, 0x54, 0x29, 0x9f, 0x64,
0xe5, 0x69, 0x07, 0x05, 0x40, 0x67, 0xb0, 0x9f, 0x85, 0x7e, 0xaa, 0x67, 0x35, 0xdd, 0x51, 0xe4,
0xb5, 0x6e, 0xa9, 0x6d, 0x74, 0x8b, 0xb6, 0xc4, 0xc4, 0xc4, 0xf0, 0x4d, 0x67, 0xe7, 0x00, 0xfd,
0x18, 0x0e, 0x32, 0x4b, 0xdf, 0x66, 0x63, 0xb7, 0x63, 0xf4, 0x87, 0xb0, 0xe7, 0x7b, 0xfe, 0xb9,
0x58, 0xe9, 0x02, 0x73, 0xb1, 0x4a, 0xfb, 0x2e, 0xe6, 0xc3, 0x16, 0xf8, 0x5c, 0xac, 0x98, 0x50,
0x32, 0xb9, 0x09, 0x90, 0x4b, 0xdf, 0x40, 0x27, 0x87, 0x48, 0x0f, 0x6a, 0xea, 0xc6, 0xbc, 0x58,
0x53, 0x37, 0x3a, 0x27, 0xb3, 0x30, 0x9d, 0xa1, 0xc3, 0xfb, 0x01, 0x7e, 0x93, 0xff, 0xe9, 0x69,
0x2f, 0xb9, 0x69, 0x28, 0xfa, 0xd6, 0x36, 0xc2, 0x57, 0xa1, 0x0a, 0x77, 0xe4, 0xc2, 0xba, 0x55,
0xdb, 0xe9, 0xd6, 0x13, 0x68, 0xfa, 0x9e, 0x7f, 0x71, 0x4d, 0x28, 0xd4, 0xd4, 0x35, 0xbe, 0x51,
0xd4, 0xf4, 0xa2, 0x58, 0x9e, 0x41, 0x4d, 0x5d, 0xd3, 0x21, 0xb4, 0x7d, 0xcf, 0xc7, 0x2a, 0x10,
0x0a, 0x4d, 0x5c, 0x9d, 0x46, 0x65, 0xdf, 0xa8, 0x20, 0x33, 0xc8, 0x58, 0x74, 0x06, 0x6d, 0xb3,
0x85, 0x52, 0x72, 0x1f, 0x20, 0xf6, 0xe2, 0xaa, 0xaf, 0x25, 0x04, 0x4b, 0x27, 0xaf, 0x94, 0x15,
0xc8, 0xa6, 0xaa, 0x0c, 0xe9, 0xe6, 0xd5, 0x7d, 0x55, 0x5a, 0x9c, 0x39, 0x4d, 0xff, 0x70, 0xe1,
0xe0, 0x34, 0x91, 0xe1, 0xe4, 0x75, 0x98, 0x66, 0x89, 0xb9, 0x5f, 0x8a, 0x67, 0xbf, 0xe8, 0xd1,
0x8b, 0xeb, 0x33, 0x47, 0xc7, 0x42, 0x1e, 0x5b, 0xff, 0x6b, 0x28, 0x72, 0x58, 0x88, 0x60, 0x08,
0x67, 0x8e, 0x09, 0x42, 0xe7, 0x31, 0xe6, 0x62, 0x8a, 0x26, 0xbb, 0x5e, 0xaf, 0xd4, 0xee, 0x5c,
0x4c, 0xcf, 0x9c, 0x00, 0xb9, 0xe4, 0x49, 0x51, 0x87, 0x46, 0xe5, 0x41, 0x9b, 0x80, 0x33, 0x27,
0x2f, 0xcd, 0x69, 0x0b, 0x9a, 0xab, 0x70, 0xbe, 0x64, 0x94, 0xdb, 0x7e, 0xcb, 0x56, 0xf8, 0xbf,
0xd9, 0xda, 0x9f, 0x61, 0xdb, 0x58, 0x3b, 0x8f, 0xa1, 0x95, 0x5d, 0x0b, 0xdb, 0xb6, 0x6b, 0xb7,
0xc4, 0x72, 0xa9, 0x80, 0xd6, 0xb9, 0x58, 0x61, 0x46, 0x1f, 0xed, 0xee, 0x10, 0x93, 0xd7, 0x47,
0xd5, 0xbc, 0x56, 0xfa, 0xa2, 0x48, 0x6a, 0x36, 0x00, 0x75, 0x3b, 0x00, 0x45, 0x46, 0x9e, 0x43,
0xdb, 0xd8, 0x4b, 0xf5, 0x53, 0x5c, 0xb1, 0x85, 0x75, 0xb1, 0x57, 0xb4, 0xb0, 0xe6, 0x07, 0x19,
0x93, 0xfe, 0xe6, 0x42, 0x43, 0x6f, 0x9e, 0x7f, 0x74, 0x7c, 0x09, 0x34, 0x52, 0x36, 0xbf, 0xc2,
0xda, 0xb5, 0x03, 0xfc, 0x5e, 0x3f, 0xc8, 0xcd, 0x5d, 0x07, 0x79, 0x6f, 0xd7, 0x41, 0x7e, 0x0a,
0x6d, 0xed, 0x20, 0xae, 0xd5, 0x0f, 0xa0, 0xa9, 0x9b, 0xd6, 0xc6, 0xd4, 0xb5, 0xed, 0xc4, 0x58,
0x12, 0x64, 0x1c, 0xfa, 0xbb, 0x0b, 0xdd, 0x77, 0x72, 0xc2, 0xde, 0x31, 0x85, 0x0b, 0x93, 0xc2,
0x3e, 0x33, 0x0b, 0xb4, 0x14, 0x5f, 0x05, 0xd3, 0xb5, 0x9f, 0xcb, 0xc8, 0x08, 0x64, 0xb3, 0x53,
0x00, 0xe5, 0xdb, 0x57, 0xc7, 0x00, 0xcb, 0x87, 0x5e, 0x2e, 0xd5, 0xa5, 0x5c, 0x8a, 0x49, 0x6a,
0x7e, 0x72, 0x14, 0x80, 0x9e, 0x38, 0x2e, 0x0c, 0x33, 0x0b, 0x3f, 0xa7, 0xe9, 0xa7, 0x00, 0xda,
0xe9, 0x34, 0x60, 0xf1, 0xfc, 0x86, 0x7c, 0x54, 0x0d, 0xeb, 0xa8, 0x14, 0x56, 0x8a, 0x27, 0xc1,
0xc4, 0xf6, 0xb3, 0x0b, 0x9d, 0x1c, 0xcc, 0x2b, 0xe1, 0x96, 0x2a, 0xd1, 0x83, 0x1a, 0x8f, 0x4d,
0x08, 0x35, 0x1e, 0x6f, 0x3d, 0xa9, 0x6b, 0xbb, 0xa2, 0xb1, 0xb9, 0x2b, 0xaa, 0xdb, 0xa6, 0xb9,
0xbe, 0x6d, 0xbc, 0x5f, 0x5a, 0xd0, 0x8d, 0xbd, 0x78, 0x6a, 0xf3, 0xf0, 0x04, 0xba, 0xf9, 0xfa,
0xb8, 0xb8, 0x26, 0x95, 0x85, 0x31, 0xb0, 0x14, 0x86, 0x4a, 0x1d, 0xf2, 0x02, 0x7a, 0xb9, 0x70,
0xb6, 0x0c, 0xd7, 0xb7, 0xc7, 0x86, 0xca, 0x31, 0x34, 0xf0, 0xa7, 0xc4, 0xda, 0xfa, 0x18, 0x94,
0x69, 0x29, 0xa6, 0xd4, 0x21, 0x43, 0x68, 0xd9, 0x23, 0x7f, 0xa7, 0x60, 0x1a, 0xa8, 0x2c, 0xaf,
0x69, 0xea, 0x90, 0x97, 0xd0, 0x35, 0x4c, 0xec, 0xaf, 0x2d, 0x3a, 0xa4, 0xaa, 0xa3, 0xc5, 0xa8,
0x43, 0x9e, 0x43, 0xcb, 0xfe, 0x42, 0x2c, 0xe9, 0x18, 0x68, 0x70, 0x54, 0x81, 0x4e, 0xa2, 0xf7,
0xd4, 0x21, 0x5e, 0xbe, 0xcd, 0xbd, 0x6d, 0x2a, 0x9b, 0x10, 0x75, 0xc8, 0x53, 0xe8, 0x8e, 0xe5,
0x95, 0xb2, 0x96, 0xd6, 0xc3, 0xdf, 0xcc, 0x6c, 0xa7, 0x38, 0xf3, 0xff, 0xa9, 0x84, 0x92, 0x81,
0x83, 0x83, 0x02, 0x3c, 0x17, 0x2b, 0xea, 0x90, 0x11, 0x40, 0x76, 0xaf, 0x7d, 0x7d, 0xaf, 0xef,
0x56, 0x74, 0xcc, 0x15, 0xdf, 0x54, 0x7a, 0x81, 0x49, 0xc6, 0xad, 0x56, 0x4d, 0x98, 0x86, 0x06,
0x87, 0xd5, 0x45, 0x93, 0x52, 0xe7, 0xb9, 0x4b, 0x3e, 0x47, 0x3b, 0x76, 0x7f, 0x56, 0xed, 0x18,
0xb4, 0x9c, 0x02, 0x03, 0x51, 0x87, 0x7c, 0x81, 0x05, 0xca, 0xff, 0x22, 0xfc, 0xb7, 0xa2, 0x69,
0xe1, 0xc1, 0x96, 0x9f, 0x51, 0xd4, 0x21, 0xaf, 0xe0, 0x68, 0xcc, 0x92, 0x15, 0x4b, 0xc6, 0x2a,
0x61, 0xe1, 0x22, 0x60, 0xe1, 0x24, 0x37, 0x5d, 0x39, 0x77, 0x79, 0x88, 0x01, 0xfb, 0xf1, 0x1d,
0x9f, 0x53, 0xe7, 0xd8, 0x25, 0x5f, 0x56, 0x95, 0xc7, 0x4c, 0x4c, 0x36, 0x0a, 0xb0, 0xf5, 0x31,
0x8c, 0x77, 0x04, 0xbd, 0xd7, 0x72, 0x3e, 0x67, 0x91, 0x3a, 0x17, 0x38, 0xb1, 0x1b, 0xba, 0x87,
0xa5, 0x21, 0x37, 0x4d, 0xf5, 0x12, 0x0e, 0xab, 0x4a, 0xde, 0x86, 0xd6, 0x9d, 0xf2, 0x6a, 0x30,
0x75, 0x3f, 0x7d, 0xf0, 0xc3, 0xff, 0xa7, 0x5c, 0xcd, 0x96, 0x97, 0xc3, 0x48, 0x2e, 0x9e, 0x8d,
0x46, 0x91, 0x78, 0x86, 0x7f, 0xc9, 0x46, 0xa3, 0x67, 0x28, 0x7d, 0xb9, 0x87, 0xff, 0xcd, 0x46,
0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x73, 0x56, 0x36, 0x8a, 0xe2, 0x0d, 0x00, 0x00,
}
...@@ -3,23 +3,55 @@ ...@@ -3,23 +3,55 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Operation struct { type Operation struct {
Value *Block `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` 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 (m *Operation) Reset() { *m = Operation{} }
func (m *Operation) String() string { return proto.CompactTextString(m) }
func (*Operation) ProtoMessage() {}
func (*Operation) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{0}
}
func (m *Operation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Operation.Unmarshal(m, b)
}
func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Operation.Marshal(b, m, deterministic)
}
func (m *Operation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Operation.Merge(m, src)
}
func (m *Operation) XXX_Size() int {
return xxx_messageInfo_Operation.Size(m)
}
func (m *Operation) XXX_DiscardUnknown() {
xxx_messageInfo_Operation.DiscardUnknown(m)
} }
func (m *Operation) Reset() { *m = Operation{} } var xxx_messageInfo_Operation proto.InternalMessageInfo
func (m *Operation) String() string { return proto.CompactTextString(m) }
func (*Operation) ProtoMessage() {}
func (*Operation) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
func (m *Operation) GetValue() *Block { func (m *Operation) GetValue() *Block {
if m != nil { if m != nil {
...@@ -29,14 +61,37 @@ func (m *Operation) GetValue() *Block { ...@@ -29,14 +61,37 @@ func (m *Operation) GetValue() *Block {
} }
type Checkpoint struct { type Checkpoint struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence" json:"sequence,omitempty"` Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,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 (m *Checkpoint) Reset() { *m = Checkpoint{} }
func (m *Checkpoint) String() string { return proto.CompactTextString(m) }
func (*Checkpoint) ProtoMessage() {}
func (*Checkpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{1}
}
func (m *Checkpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Checkpoint.Unmarshal(m, b)
}
func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Checkpoint.Marshal(b, m, deterministic)
}
func (m *Checkpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Checkpoint.Merge(m, src)
}
func (m *Checkpoint) XXX_Size() int {
return xxx_messageInfo_Checkpoint.Size(m)
}
func (m *Checkpoint) XXX_DiscardUnknown() {
xxx_messageInfo_Checkpoint.DiscardUnknown(m)
} }
func (m *Checkpoint) Reset() { *m = Checkpoint{} } var xxx_messageInfo_Checkpoint proto.InternalMessageInfo
func (m *Checkpoint) String() string { return proto.CompactTextString(m) }
func (*Checkpoint) ProtoMessage() {}
func (*Checkpoint) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
func (m *Checkpoint) GetSequence() uint32 { func (m *Checkpoint) GetSequence() uint32 {
if m != nil { if m != nil {
...@@ -53,15 +108,38 @@ func (m *Checkpoint) GetDigest() []byte { ...@@ -53,15 +108,38 @@ func (m *Checkpoint) GetDigest() []byte {
} }
type Entry struct { type Entry struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence" json:"sequence,omitempty"` Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
View uint32 `protobuf:"varint,3,opt,name=view" json:"view,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 (m *Entry) Reset() { *m = Entry{} } func (m *Entry) Reset() { *m = Entry{} }
func (m *Entry) String() string { return proto.CompactTextString(m) } func (m *Entry) String() string { return proto.CompactTextString(m) }
func (*Entry) ProtoMessage() {} func (*Entry) ProtoMessage() {}
func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{2} } func (*Entry) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{2}
}
func (m *Entry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Entry.Unmarshal(m, b)
}
func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Entry.Marshal(b, m, deterministic)
}
func (m *Entry) XXX_Merge(src proto.Message) {
xxx_messageInfo_Entry.Merge(m, src)
}
func (m *Entry) XXX_Size() int {
return xxx_messageInfo_Entry.Size(m)
}
func (m *Entry) XXX_DiscardUnknown() {
xxx_messageInfo_Entry.DiscardUnknown(m)
}
var xxx_messageInfo_Entry proto.InternalMessageInfo
func (m *Entry) GetSequence() uint32 { func (m *Entry) GetSequence() uint32 {
if m != nil { if m != nil {
...@@ -85,14 +163,37 @@ func (m *Entry) GetView() uint32 { ...@@ -85,14 +163,37 @@ func (m *Entry) GetView() uint32 {
} }
type ViewChange struct { type ViewChange struct {
Viewchanger uint32 `protobuf:"varint,1,opt,name=viewchanger" json:"viewchanger,omitempty"` Viewchanger uint32 `protobuf:"varint,1,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,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 (m *ViewChange) Reset() { *m = ViewChange{} }
func (m *ViewChange) String() string { return proto.CompactTextString(m) }
func (*ViewChange) ProtoMessage() {}
func (*ViewChange) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{3}
} }
func (m *ViewChange) Reset() { *m = ViewChange{} } func (m *ViewChange) XXX_Unmarshal(b []byte) error {
func (m *ViewChange) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_ViewChange.Unmarshal(m, b)
func (*ViewChange) ProtoMessage() {} }
func (*ViewChange) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{3} } func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ViewChange.Marshal(b, m, deterministic)
}
func (m *ViewChange) XXX_Merge(src proto.Message) {
xxx_messageInfo_ViewChange.Merge(m, src)
}
func (m *ViewChange) XXX_Size() int {
return xxx_messageInfo_ViewChange.Size(m)
}
func (m *ViewChange) XXX_DiscardUnknown() {
xxx_messageInfo_ViewChange.DiscardUnknown(m)
}
var xxx_messageInfo_ViewChange proto.InternalMessageInfo
func (m *ViewChange) GetViewchanger() uint32 { func (m *ViewChange) GetViewchanger() uint32 {
if m != nil { if m != nil {
...@@ -109,14 +210,37 @@ func (m *ViewChange) GetDigest() []byte { ...@@ -109,14 +210,37 @@ func (m *ViewChange) GetDigest() []byte {
} }
type Summary struct { type Summary struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence" json:"sequence,omitempty"` Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,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 (m *Summary) Reset() { *m = Summary{} }
func (m *Summary) String() string { return proto.CompactTextString(m) }
func (*Summary) ProtoMessage() {}
func (*Summary) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{4}
} }
func (m *Summary) Reset() { *m = Summary{} } func (m *Summary) XXX_Unmarshal(b []byte) error {
func (m *Summary) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_Summary.Unmarshal(m, b)
func (*Summary) ProtoMessage() {} }
func (*Summary) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{4} } func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Summary.Marshal(b, m, deterministic)
}
func (m *Summary) XXX_Merge(src proto.Message) {
xxx_messageInfo_Summary.Merge(m, src)
}
func (m *Summary) XXX_Size() int {
return xxx_messageInfo_Summary.Size(m)
}
func (m *Summary) XXX_DiscardUnknown() {
xxx_messageInfo_Summary.DiscardUnknown(m)
}
var xxx_messageInfo_Summary proto.InternalMessageInfo
func (m *Summary) GetSequence() uint32 { func (m *Summary) GetSequence() uint32 {
if m != nil { if m != nil {
...@@ -133,13 +257,36 @@ func (m *Summary) GetDigest() []byte { ...@@ -133,13 +257,36 @@ func (m *Summary) GetDigest() []byte {
} }
type Result struct { type Result struct {
Value *Block `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` 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 (m *Result) Reset() { *m = Result{} }
func (m *Result) String() string { return proto.CompactTextString(m) }
func (*Result) ProtoMessage() {}
func (*Result) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{5}
}
func (m *Result) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Result.Unmarshal(m, b)
}
func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Result.Marshal(b, m, deterministic)
}
func (m *Result) XXX_Merge(src proto.Message) {
xxx_messageInfo_Result.Merge(m, src)
}
func (m *Result) XXX_Size() int {
return xxx_messageInfo_Result.Size(m)
}
func (m *Result) XXX_DiscardUnknown() {
xxx_messageInfo_Result.DiscardUnknown(m)
} }
func (m *Result) Reset() { *m = Result{} } var xxx_messageInfo_Result proto.InternalMessageInfo
func (m *Result) String() string { return proto.CompactTextString(m) }
func (*Result) ProtoMessage() {}
func (*Result) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{5} }
func (m *Result) GetValue() *Block { func (m *Result) GetValue() *Block {
if m != nil { if m != nil {
...@@ -158,51 +305,88 @@ type Request struct { ...@@ -158,51 +305,88 @@ type Request struct {
// *Request_Viewchange // *Request_Viewchange
// *Request_Ack // *Request_Ack
// *Request_Newview // *Request_Newview
Value isRequest_Value `protobuf_oneof:"value"` Value isRequest_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{6}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Request.Unmarshal(m, b)
}
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
}
func (m *Request) XXX_Merge(src proto.Message) {
xxx_messageInfo_Request.Merge(m, src)
}
func (m *Request) XXX_Size() int {
return xxx_messageInfo_Request.Size(m)
}
func (m *Request) XXX_DiscardUnknown() {
xxx_messageInfo_Request.DiscardUnknown(m)
} }
func (m *Request) Reset() { *m = Request{} } var xxx_messageInfo_Request proto.InternalMessageInfo
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{6} }
type isRequest_Value interface { type isRequest_Value interface {
isRequest_Value() isRequest_Value()
} }
type Request_Client struct { type Request_Client struct {
Client *RequestClient `protobuf:"bytes,1,opt,name=client,oneof"` Client *RequestClient `protobuf:"bytes,1,opt,name=client,proto3,oneof"`
} }
type Request_Preprepare struct { type Request_Preprepare struct {
Preprepare *RequestPrePrepare `protobuf:"bytes,2,opt,name=preprepare,oneof"` Preprepare *RequestPrePrepare `protobuf:"bytes,2,opt,name=preprepare,proto3,oneof"`
} }
type Request_Prepare struct { type Request_Prepare struct {
Prepare *RequestPrepare `protobuf:"bytes,3,opt,name=prepare,oneof"` Prepare *RequestPrepare `protobuf:"bytes,3,opt,name=prepare,proto3,oneof"`
} }
type Request_Commit struct { type Request_Commit struct {
Commit *RequestCommit `protobuf:"bytes,4,opt,name=commit,oneof"` Commit *RequestCommit `protobuf:"bytes,4,opt,name=commit,proto3,oneof"`
} }
type Request_Checkpoint struct { type Request_Checkpoint struct {
Checkpoint *RequestCheckpoint `protobuf:"bytes,5,opt,name=checkpoint,oneof"` Checkpoint *RequestCheckpoint `protobuf:"bytes,5,opt,name=checkpoint,proto3,oneof"`
} }
type Request_Viewchange struct { type Request_Viewchange struct {
Viewchange *RequestViewChange `protobuf:"bytes,6,opt,name=viewchange,oneof"` Viewchange *RequestViewChange `protobuf:"bytes,6,opt,name=viewchange,proto3,oneof"`
} }
type Request_Ack struct { type Request_Ack struct {
Ack *RequestAck `protobuf:"bytes,7,opt,name=ack,oneof"` Ack *RequestAck `protobuf:"bytes,7,opt,name=ack,proto3,oneof"`
} }
type Request_Newview struct { type Request_Newview struct {
Newview *RequestNewView `protobuf:"bytes,8,opt,name=newview,oneof"` Newview *RequestNewView `protobuf:"bytes,8,opt,name=newview,proto3,oneof"`
} }
func (*Request_Client) isRequest_Value() {} func (*Request_Client) isRequest_Value() {}
func (*Request_Preprepare) isRequest_Value() {} func (*Request_Preprepare) isRequest_Value() {}
func (*Request_Prepare) isRequest_Value() {}
func (*Request_Commit) isRequest_Value() {} func (*Request_Prepare) isRequest_Value() {}
func (*Request_Commit) isRequest_Value() {}
func (*Request_Checkpoint) isRequest_Value() {} func (*Request_Checkpoint) isRequest_Value() {}
func (*Request_Viewchange) isRequest_Value() {} func (*Request_Viewchange) isRequest_Value() {}
func (*Request_Ack) isRequest_Value() {}
func (*Request_Newview) isRequest_Value() {} func (*Request_Ack) isRequest_Value() {}
func (*Request_Newview) isRequest_Value() {}
func (m *Request) GetValue() isRequest_Value { func (m *Request) GetValue() isRequest_Value {
if m != nil { if m != nil {
...@@ -410,42 +594,42 @@ func _Request_OneofSizer(msg proto.Message) (n int) { ...@@ -410,42 +594,42 @@ func _Request_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *Request_Client: case *Request_Client:
s := proto.Size(x.Client) s := proto.Size(x.Client)
n += proto.SizeVarint(1<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Preprepare: case *Request_Preprepare:
s := proto.Size(x.Preprepare) s := proto.Size(x.Preprepare)
n += proto.SizeVarint(2<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Prepare: case *Request_Prepare:
s := proto.Size(x.Prepare) s := proto.Size(x.Prepare)
n += proto.SizeVarint(3<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Commit: case *Request_Commit:
s := proto.Size(x.Commit) s := proto.Size(x.Commit)
n += proto.SizeVarint(4<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Checkpoint: case *Request_Checkpoint:
s := proto.Size(x.Checkpoint) s := proto.Size(x.Checkpoint)
n += proto.SizeVarint(5<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Viewchange: case *Request_Viewchange:
s := proto.Size(x.Viewchange) s := proto.Size(x.Viewchange)
n += proto.SizeVarint(6<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Ack: case *Request_Ack:
s := proto.Size(x.Ack) s := proto.Size(x.Ack)
n += proto.SizeVarint(7<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *Request_Newview: case *Request_Newview:
s := proto.Size(x.Newview) s := proto.Size(x.Newview)
n += proto.SizeVarint(8<<3 | proto.WireBytes) n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -456,15 +640,38 @@ func _Request_OneofSizer(msg proto.Message) (n int) { ...@@ -456,15 +640,38 @@ func _Request_OneofSizer(msg proto.Message) (n int) {
} }
type RequestClient struct { type RequestClient struct {
Op *Operation `protobuf:"bytes,1,opt,name=op" json:"op,omitempty"` Op *Operation `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
Timestamp string `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Client string `protobuf:"bytes,3,opt,name=client" json:"client,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 (m *RequestClient) Reset() { *m = RequestClient{} } func (m *RequestClient) Reset() { *m = RequestClient{} }
func (m *RequestClient) String() string { return proto.CompactTextString(m) } func (m *RequestClient) String() string { return proto.CompactTextString(m) }
func (*RequestClient) ProtoMessage() {} func (*RequestClient) ProtoMessage() {}
func (*RequestClient) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{7} } func (*RequestClient) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{7}
}
func (m *RequestClient) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestClient.Unmarshal(m, b)
}
func (m *RequestClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestClient.Marshal(b, m, deterministic)
}
func (m *RequestClient) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestClient.Merge(m, src)
}
func (m *RequestClient) XXX_Size() int {
return xxx_messageInfo_RequestClient.Size(m)
}
func (m *RequestClient) XXX_DiscardUnknown() {
xxx_messageInfo_RequestClient.DiscardUnknown(m)
}
var xxx_messageInfo_RequestClient proto.InternalMessageInfo
func (m *RequestClient) GetOp() *Operation { func (m *RequestClient) GetOp() *Operation {
if m != nil { if m != nil {
...@@ -488,16 +695,39 @@ func (m *RequestClient) GetClient() string { ...@@ -488,16 +695,39 @@ func (m *RequestClient) GetClient() string {
} }
type RequestPrePrepare struct { type RequestPrePrepare struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence" json:"sequence,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"` Digest []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
Replica uint32 `protobuf:"varint,4,opt,name=replica" json:"replica,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 (m *RequestPrePrepare) Reset() { *m = RequestPrePrepare{} }
func (m *RequestPrePrepare) String() string { return proto.CompactTextString(m) }
func (*RequestPrePrepare) ProtoMessage() {}
func (*RequestPrePrepare) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{8}
} }
func (m *RequestPrePrepare) Reset() { *m = RequestPrePrepare{} } func (m *RequestPrePrepare) XXX_Unmarshal(b []byte) error {
func (m *RequestPrePrepare) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_RequestPrePrepare.Unmarshal(m, b)
func (*RequestPrePrepare) ProtoMessage() {} }
func (*RequestPrePrepare) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{8} } func (m *RequestPrePrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestPrePrepare.Marshal(b, m, deterministic)
}
func (m *RequestPrePrepare) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestPrePrepare.Merge(m, src)
}
func (m *RequestPrePrepare) XXX_Size() int {
return xxx_messageInfo_RequestPrePrepare.Size(m)
}
func (m *RequestPrePrepare) XXX_DiscardUnknown() {
xxx_messageInfo_RequestPrePrepare.DiscardUnknown(m)
}
var xxx_messageInfo_RequestPrePrepare proto.InternalMessageInfo
func (m *RequestPrePrepare) GetView() uint32 { func (m *RequestPrePrepare) GetView() uint32 {
if m != nil { if m != nil {
...@@ -528,16 +758,39 @@ func (m *RequestPrePrepare) GetReplica() uint32 { ...@@ -528,16 +758,39 @@ func (m *RequestPrePrepare) GetReplica() uint32 {
} }
type RequestPrepare struct { type RequestPrepare struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence" json:"sequence,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"` Digest []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
Replica uint32 `protobuf:"varint,4,opt,name=replica" json:"replica,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 (m *RequestPrepare) Reset() { *m = RequestPrepare{} }
func (m *RequestPrepare) String() string { return proto.CompactTextString(m) }
func (*RequestPrepare) ProtoMessage() {}
func (*RequestPrepare) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{9}
} }
func (m *RequestPrepare) Reset() { *m = RequestPrepare{} } func (m *RequestPrepare) XXX_Unmarshal(b []byte) error {
func (m *RequestPrepare) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_RequestPrepare.Unmarshal(m, b)
func (*RequestPrepare) ProtoMessage() {} }
func (*RequestPrepare) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{9} } func (m *RequestPrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestPrepare.Marshal(b, m, deterministic)
}
func (m *RequestPrepare) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestPrepare.Merge(m, src)
}
func (m *RequestPrepare) XXX_Size() int {
return xxx_messageInfo_RequestPrepare.Size(m)
}
func (m *RequestPrepare) XXX_DiscardUnknown() {
xxx_messageInfo_RequestPrepare.DiscardUnknown(m)
}
var xxx_messageInfo_RequestPrepare proto.InternalMessageInfo
func (m *RequestPrepare) GetView() uint32 { func (m *RequestPrepare) GetView() uint32 {
if m != nil { if m != nil {
...@@ -568,15 +821,38 @@ func (m *RequestPrepare) GetReplica() uint32 { ...@@ -568,15 +821,38 @@ func (m *RequestPrepare) GetReplica() uint32 {
} }
type RequestCommit struct { type RequestCommit struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence" json:"sequence,omitempty"` Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Replica uint32 `protobuf:"varint,3,opt,name=replica" json:"replica,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 (m *RequestCommit) Reset() { *m = RequestCommit{} }
func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
func (*RequestCommit) ProtoMessage() {}
func (*RequestCommit) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{10}
}
func (m *RequestCommit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestCommit.Unmarshal(m, b)
}
func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic)
}
func (m *RequestCommit) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestCommit.Merge(m, src)
}
func (m *RequestCommit) XXX_Size() int {
return xxx_messageInfo_RequestCommit.Size(m)
}
func (m *RequestCommit) XXX_DiscardUnknown() {
xxx_messageInfo_RequestCommit.DiscardUnknown(m)
} }
func (m *RequestCommit) Reset() { *m = RequestCommit{} } var xxx_messageInfo_RequestCommit proto.InternalMessageInfo
func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
func (*RequestCommit) ProtoMessage() {}
func (*RequestCommit) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{10} }
func (m *RequestCommit) GetView() uint32 { func (m *RequestCommit) GetView() uint32 {
if m != nil { if m != nil {
...@@ -600,15 +876,38 @@ func (m *RequestCommit) GetReplica() uint32 { ...@@ -600,15 +876,38 @@ func (m *RequestCommit) GetReplica() uint32 {
} }
type RequestCheckpoint struct { type RequestCheckpoint struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence" json:"sequence,omitempty"` Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
Replica uint32 `protobuf:"varint,3,opt,name=replica" json:"replica,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 (m *RequestCheckpoint) Reset() { *m = RequestCheckpoint{} }
func (m *RequestCheckpoint) String() string { return proto.CompactTextString(m) }
func (*RequestCheckpoint) ProtoMessage() {}
func (*RequestCheckpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{11}
}
func (m *RequestCheckpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestCheckpoint.Unmarshal(m, b)
}
func (m *RequestCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestCheckpoint.Marshal(b, m, deterministic)
}
func (m *RequestCheckpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestCheckpoint.Merge(m, src)
}
func (m *RequestCheckpoint) XXX_Size() int {
return xxx_messageInfo_RequestCheckpoint.Size(m)
}
func (m *RequestCheckpoint) XXX_DiscardUnknown() {
xxx_messageInfo_RequestCheckpoint.DiscardUnknown(m)
} }
func (m *RequestCheckpoint) Reset() { *m = RequestCheckpoint{} } var xxx_messageInfo_RequestCheckpoint proto.InternalMessageInfo
func (m *RequestCheckpoint) String() string { return proto.CompactTextString(m) }
func (*RequestCheckpoint) ProtoMessage() {}
func (*RequestCheckpoint) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{11} }
func (m *RequestCheckpoint) GetSequence() uint32 { func (m *RequestCheckpoint) GetSequence() uint32 {
if m != nil { if m != nil {
...@@ -632,18 +931,41 @@ func (m *RequestCheckpoint) GetReplica() uint32 { ...@@ -632,18 +931,41 @@ func (m *RequestCheckpoint) GetReplica() uint32 {
} }
type RequestViewChange struct { type RequestViewChange struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence" json:"sequence,omitempty"` Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Checkpoints []*Checkpoint `protobuf:"bytes,3,rep,name=checkpoints" json:"checkpoints,omitempty"` Checkpoints []*Checkpoint `protobuf:"bytes,3,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"`
Preps []*Entry `protobuf:"bytes,4,rep,name=preps" json:"preps,omitempty"` Preps []*Entry `protobuf:"bytes,4,rep,name=preps,proto3" json:"preps,omitempty"`
Prepreps []*Entry `protobuf:"bytes,5,rep,name=prepreps" json:"prepreps,omitempty"` Prepreps []*Entry `protobuf:"bytes,5,rep,name=prepreps,proto3" json:"prepreps,omitempty"`
Replica uint32 `protobuf:"varint,6,opt,name=replica" json:"replica,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 (m *RequestViewChange) Reset() { *m = RequestViewChange{} }
func (m *RequestViewChange) String() string { return proto.CompactTextString(m) }
func (*RequestViewChange) ProtoMessage() {}
func (*RequestViewChange) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{12}
}
func (m *RequestViewChange) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestViewChange.Unmarshal(m, b)
}
func (m *RequestViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestViewChange.Marshal(b, m, deterministic)
}
func (m *RequestViewChange) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestViewChange.Merge(m, src)
}
func (m *RequestViewChange) XXX_Size() int {
return xxx_messageInfo_RequestViewChange.Size(m)
}
func (m *RequestViewChange) XXX_DiscardUnknown() {
xxx_messageInfo_RequestViewChange.DiscardUnknown(m)
} }
func (m *RequestViewChange) Reset() { *m = RequestViewChange{} } var xxx_messageInfo_RequestViewChange proto.InternalMessageInfo
func (m *RequestViewChange) String() string { return proto.CompactTextString(m) }
func (*RequestViewChange) ProtoMessage() {}
func (*RequestViewChange) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{12} }
func (m *RequestViewChange) GetView() uint32 { func (m *RequestViewChange) GetView() uint32 {
if m != nil { if m != nil {
...@@ -688,16 +1010,39 @@ func (m *RequestViewChange) GetReplica() uint32 { ...@@ -688,16 +1010,39 @@ func (m *RequestViewChange) GetReplica() uint32 {
} }
type RequestAck struct { type RequestAck struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Replica uint32 `protobuf:"varint,2,opt,name=replica" json:"replica,omitempty"` Replica uint32 `protobuf:"varint,2,opt,name=replica,proto3" json:"replica,omitempty"`
Viewchanger uint32 `protobuf:"varint,3,opt,name=viewchanger" json:"viewchanger,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"` 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 (m *RequestAck) Reset() { *m = RequestAck{} }
func (m *RequestAck) String() string { return proto.CompactTextString(m) }
func (*RequestAck) ProtoMessage() {}
func (*RequestAck) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{13}
}
func (m *RequestAck) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestAck.Unmarshal(m, b)
}
func (m *RequestAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestAck.Marshal(b, m, deterministic)
}
func (m *RequestAck) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestAck.Merge(m, src)
}
func (m *RequestAck) XXX_Size() int {
return xxx_messageInfo_RequestAck.Size(m)
}
func (m *RequestAck) XXX_DiscardUnknown() {
xxx_messageInfo_RequestAck.DiscardUnknown(m)
} }
func (m *RequestAck) Reset() { *m = RequestAck{} } var xxx_messageInfo_RequestAck proto.InternalMessageInfo
func (m *RequestAck) String() string { return proto.CompactTextString(m) }
func (*RequestAck) ProtoMessage() {}
func (*RequestAck) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{13} }
func (m *RequestAck) GetView() uint32 { func (m *RequestAck) GetView() uint32 {
if m != nil { if m != nil {
...@@ -728,16 +1073,39 @@ func (m *RequestAck) GetDigest() []byte { ...@@ -728,16 +1073,39 @@ func (m *RequestAck) GetDigest() []byte {
} }
type RequestNewView struct { type RequestNewView struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Viewchanges []*ViewChange `protobuf:"bytes,2,rep,name=viewchanges" json:"viewchanges,omitempty"` Viewchanges []*ViewChange `protobuf:"bytes,2,rep,name=viewchanges,proto3" json:"viewchanges,omitempty"`
Summaries []*Summary `protobuf:"bytes,4,rep,name=summaries" json:"summaries,omitempty"` Summaries []*Summary `protobuf:"bytes,4,rep,name=summaries,proto3" json:"summaries,omitempty"`
Replica uint32 `protobuf:"varint,5,opt,name=replica" json:"replica,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 (m *RequestNewView) Reset() { *m = RequestNewView{} }
func (m *RequestNewView) String() string { return proto.CompactTextString(m) }
func (*RequestNewView) ProtoMessage() {}
func (*RequestNewView) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{14}
}
func (m *RequestNewView) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestNewView.Unmarshal(m, b)
}
func (m *RequestNewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestNewView.Marshal(b, m, deterministic)
}
func (m *RequestNewView) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestNewView.Merge(m, src)
}
func (m *RequestNewView) XXX_Size() int {
return xxx_messageInfo_RequestNewView.Size(m)
}
func (m *RequestNewView) XXX_DiscardUnknown() {
xxx_messageInfo_RequestNewView.DiscardUnknown(m)
} }
func (m *RequestNewView) Reset() { *m = RequestNewView{} } var xxx_messageInfo_RequestNewView proto.InternalMessageInfo
func (m *RequestNewView) String() string { return proto.CompactTextString(m) }
func (*RequestNewView) ProtoMessage() {}
func (*RequestNewView) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{14} }
func (m *RequestNewView) GetView() uint32 { func (m *RequestNewView) GetView() uint32 {
if m != nil { if m != nil {
...@@ -768,17 +1136,40 @@ func (m *RequestNewView) GetReplica() uint32 { ...@@ -768,17 +1136,40 @@ func (m *RequestNewView) GetReplica() uint32 {
} }
type ClientReply struct { type ClientReply struct {
View uint32 `protobuf:"varint,1,opt,name=view" json:"view,omitempty"` View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Timestamp string `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Client string `protobuf:"bytes,3,opt,name=client" json:"client,omitempty"` Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
Replica uint32 `protobuf:"varint,4,opt,name=replica" json:"replica,omitempty"` Replica uint32 `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
Result *Result `protobuf:"bytes,5,opt,name=result" json:"result,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 (m *ClientReply) Reset() { *m = ClientReply{} }
func (m *ClientReply) String() string { return proto.CompactTextString(m) }
func (*ClientReply) ProtoMessage() {}
func (*ClientReply) Descriptor() ([]byte, []int) {
return fileDescriptor_6cc19f28ccff0670, []int{15}
}
func (m *ClientReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClientReply.Unmarshal(m, b)
}
func (m *ClientReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClientReply.Marshal(b, m, deterministic)
}
func (m *ClientReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClientReply.Merge(m, src)
}
func (m *ClientReply) XXX_Size() int {
return xxx_messageInfo_ClientReply.Size(m)
}
func (m *ClientReply) XXX_DiscardUnknown() {
xxx_messageInfo_ClientReply.DiscardUnknown(m)
} }
func (m *ClientReply) Reset() { *m = ClientReply{} } var xxx_messageInfo_ClientReply proto.InternalMessageInfo
func (m *ClientReply) String() string { return proto.CompactTextString(m) }
func (*ClientReply) ProtoMessage() {}
func (*ClientReply) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{15} }
func (m *ClientReply) GetView() uint32 { func (m *ClientReply) GetView() uint32 {
if m != nil { if m != nil {
...@@ -834,9 +1225,9 @@ func init() { ...@@ -834,9 +1225,9 @@ func init() {
proto.RegisterType((*ClientReply)(nil), "types.ClientReply") proto.RegisterType((*ClientReply)(nil), "types.ClientReply")
} }
func init() { proto.RegisterFile("pbft.proto", fileDescriptor6) } func init() { proto.RegisterFile("pbft.proto", fileDescriptor_6cc19f28ccff0670) }
var fileDescriptor6 = []byte{ var fileDescriptor_6cc19f28ccff0670 = []byte{
// 677 bytes of a gzipped FileDescriptorProto // 677 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x5f, 0x6b, 0xdb, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x5f, 0x6b, 0xdb, 0x30,
0x10, 0xaf, 0xe3, 0xc4, 0x69, 0x2e, 0x4d, 0x69, 0xc5, 0x36, 0x44, 0xd9, 0x58, 0x30, 0x14, 0xfa, 0x10, 0xaf, 0xe3, 0xc4, 0x69, 0x2e, 0x4d, 0x69, 0xc5, 0x36, 0x44, 0xd9, 0x58, 0x30, 0x14, 0xfa,
......
...@@ -3,25 +3,57 @@ ...@@ -3,25 +3,57 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// 手续费 // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
//手续费
type TotalFee struct { type TotalFee struct {
Fee int64 `protobuf:"varint,1,opt,name=fee" json:"fee,omitempty"` Fee int64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
TxCount int64 `protobuf:"varint,2,opt,name=txCount" json:"txCount,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 (m *TotalFee) Reset() { *m = TotalFee{} } func (m *TotalFee) Reset() { *m = TotalFee{} }
func (m *TotalFee) String() string { return proto.CompactTextString(m) } func (m *TotalFee) String() string { return proto.CompactTextString(m) }
func (*TotalFee) ProtoMessage() {} func (*TotalFee) ProtoMessage() {}
func (*TotalFee) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{0} } func (*TotalFee) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{0}
}
func (m *TotalFee) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TotalFee.Unmarshal(m, b)
}
func (m *TotalFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TotalFee.Marshal(b, m, deterministic)
}
func (m *TotalFee) XXX_Merge(src proto.Message) {
xxx_messageInfo_TotalFee.Merge(m, src)
}
func (m *TotalFee) XXX_Size() int {
return xxx_messageInfo_TotalFee.Size(m)
}
func (m *TotalFee) XXX_DiscardUnknown() {
xxx_messageInfo_TotalFee.DiscardUnknown(m)
}
var xxx_messageInfo_TotalFee proto.InternalMessageInfo
func (m *TotalFee) GetFee() int64 { func (m *TotalFee) GetFee() int64 {
if m != nil { if m != nil {
...@@ -37,19 +69,42 @@ func (m *TotalFee) GetTxCount() int64 { ...@@ -37,19 +69,42 @@ func (m *TotalFee) GetTxCount() int64 {
return 0 return 0
} }
// 查询symbol代币总额 //查询symbol代币总额
type ReqGetTotalCoins struct { type ReqGetTotalCoins struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
StateHash []byte `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,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"` StartKey []byte `protobuf:"bytes,3,opt,name=startKey,proto3" json:"startKey,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
Execer string `protobuf:"bytes,5,opt,name=execer" json:"execer,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:"-"`
} }
func (m *ReqGetTotalCoins) Reset() { *m = ReqGetTotalCoins{} } func (m *ReqGetTotalCoins) Reset() { *m = ReqGetTotalCoins{} }
func (m *ReqGetTotalCoins) String() string { return proto.CompactTextString(m) } func (m *ReqGetTotalCoins) String() string { return proto.CompactTextString(m) }
func (*ReqGetTotalCoins) ProtoMessage() {} func (*ReqGetTotalCoins) ProtoMessage() {}
func (*ReqGetTotalCoins) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{1} } func (*ReqGetTotalCoins) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{1}
}
func (m *ReqGetTotalCoins) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqGetTotalCoins.Unmarshal(m, b)
}
func (m *ReqGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqGetTotalCoins.Marshal(b, m, deterministic)
}
func (m *ReqGetTotalCoins) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqGetTotalCoins.Merge(m, src)
}
func (m *ReqGetTotalCoins) XXX_Size() int {
return xxx_messageInfo_ReqGetTotalCoins.Size(m)
}
func (m *ReqGetTotalCoins) XXX_DiscardUnknown() {
xxx_messageInfo_ReqGetTotalCoins.DiscardUnknown(m)
}
var xxx_messageInfo_ReqGetTotalCoins proto.InternalMessageInfo
func (m *ReqGetTotalCoins) GetSymbol() string { func (m *ReqGetTotalCoins) GetSymbol() string {
if m != nil { if m != nil {
...@@ -86,18 +141,41 @@ func (m *ReqGetTotalCoins) GetExecer() string { ...@@ -86,18 +141,41 @@ func (m *ReqGetTotalCoins) GetExecer() string {
return "" return ""
} }
// 查询symbol代币总额应答 //查询symbol代币总额应答
type ReplyGetTotalCoins struct { type ReplyGetTotalCoins struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Num int64 `protobuf:"varint,2,opt,name=num" json:"num,omitempty"` Num int64 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount" json:"amount,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"` NextKey []byte `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyGetTotalCoins) Reset() { *m = ReplyGetTotalCoins{} } func (m *ReplyGetTotalCoins) Reset() { *m = ReplyGetTotalCoins{} }
func (m *ReplyGetTotalCoins) String() string { return proto.CompactTextString(m) } func (m *ReplyGetTotalCoins) String() string { return proto.CompactTextString(m) }
func (*ReplyGetTotalCoins) ProtoMessage() {} func (*ReplyGetTotalCoins) ProtoMessage() {}
func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{2} } func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{2}
}
func (m *ReplyGetTotalCoins) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyGetTotalCoins.Unmarshal(m, b)
}
func (m *ReplyGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyGetTotalCoins.Marshal(b, m, deterministic)
}
func (m *ReplyGetTotalCoins) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyGetTotalCoins.Merge(m, src)
}
func (m *ReplyGetTotalCoins) XXX_Size() int {
return xxx_messageInfo_ReplyGetTotalCoins.Size(m)
}
func (m *ReplyGetTotalCoins) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyGetTotalCoins.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyGetTotalCoins proto.InternalMessageInfo
func (m *ReplyGetTotalCoins) GetCount() int64 { func (m *ReplyGetTotalCoins) GetCount() int64 {
if m != nil { if m != nil {
...@@ -127,18 +205,41 @@ func (m *ReplyGetTotalCoins) GetNextKey() []byte { ...@@ -127,18 +205,41 @@ func (m *ReplyGetTotalCoins) GetNextKey() []byte {
return nil return nil
} }
// 迭代查询symbol代币总额 //迭代查询symbol代币总额
type IterateRangeByStateHash struct { type IterateRangeByStateHash struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Start []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,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"` End []byte `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count" json:"count,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:"-"`
}
func (m *IterateRangeByStateHash) Reset() { *m = IterateRangeByStateHash{} }
func (m *IterateRangeByStateHash) String() string { return proto.CompactTextString(m) }
func (*IterateRangeByStateHash) ProtoMessage() {}
func (*IterateRangeByStateHash) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{3}
}
func (m *IterateRangeByStateHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IterateRangeByStateHash.Unmarshal(m, b)
}
func (m *IterateRangeByStateHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IterateRangeByStateHash.Marshal(b, m, deterministic)
}
func (m *IterateRangeByStateHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_IterateRangeByStateHash.Merge(m, src)
}
func (m *IterateRangeByStateHash) XXX_Size() int {
return xxx_messageInfo_IterateRangeByStateHash.Size(m)
}
func (m *IterateRangeByStateHash) XXX_DiscardUnknown() {
xxx_messageInfo_IterateRangeByStateHash.DiscardUnknown(m)
} }
func (m *IterateRangeByStateHash) Reset() { *m = IterateRangeByStateHash{} } var xxx_messageInfo_IterateRangeByStateHash proto.InternalMessageInfo
func (m *IterateRangeByStateHash) String() string { return proto.CompactTextString(m) }
func (*IterateRangeByStateHash) ProtoMessage() {}
func (*IterateRangeByStateHash) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{3} }
func (m *IterateRangeByStateHash) GetStateHash() []byte { func (m *IterateRangeByStateHash) GetStateHash() []byte {
if m != nil { if m != nil {
...@@ -169,18 +270,41 @@ func (m *IterateRangeByStateHash) GetCount() int64 { ...@@ -169,18 +270,41 @@ func (m *IterateRangeByStateHash) GetCount() int64 {
} }
type TicketStatistic struct { type TicketStatistic struct {
// 当前在挖的ticket //当前在挖的ticket
CurrentOpenCount int64 `protobuf:"varint,1,opt,name=currentOpenCount" json:"currentOpenCount,omitempty"` CurrentOpenCount int64 `protobuf:"varint,1,opt,name=currentOpenCount,proto3" json:"currentOpenCount,omitempty"`
// 一共挖到的ticket //一共挖到的ticket
TotalMinerCount int64 `protobuf:"varint,2,opt,name=totalMinerCount" json:"totalMinerCount,omitempty"` TotalMinerCount int64 `protobuf:"varint,2,opt,name=totalMinerCount,proto3" json:"totalMinerCount,omitempty"`
// 一共取消的ticket //一共取消的ticket
TotalCancleCount int64 `protobuf:"varint,3,opt,name=totalCancleCount" json:"totalCancleCount,omitempty"` TotalCancleCount int64 `protobuf:"varint,3,opt,name=totalCancleCount,proto3" json:"totalCancleCount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketStatistic) Reset() { *m = TicketStatistic{} }
func (m *TicketStatistic) String() string { return proto.CompactTextString(m) }
func (*TicketStatistic) ProtoMessage() {}
func (*TicketStatistic) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{4}
}
func (m *TicketStatistic) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketStatistic.Unmarshal(m, b)
}
func (m *TicketStatistic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketStatistic.Marshal(b, m, deterministic)
}
func (m *TicketStatistic) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketStatistic.Merge(m, src)
}
func (m *TicketStatistic) XXX_Size() int {
return xxx_messageInfo_TicketStatistic.Size(m)
}
func (m *TicketStatistic) XXX_DiscardUnknown() {
xxx_messageInfo_TicketStatistic.DiscardUnknown(m)
} }
func (m *TicketStatistic) Reset() { *m = TicketStatistic{} } var xxx_messageInfo_TicketStatistic proto.InternalMessageInfo
func (m *TicketStatistic) String() string { return proto.CompactTextString(m) }
func (*TicketStatistic) ProtoMessage() {}
func (*TicketStatistic) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{4} }
func (m *TicketStatistic) GetCurrentOpenCount() int64 { func (m *TicketStatistic) GetCurrentOpenCount() int64 {
if m != nil { if m != nil {
...@@ -204,27 +328,50 @@ func (m *TicketStatistic) GetTotalCancleCount() int64 { ...@@ -204,27 +328,50 @@ func (m *TicketStatistic) GetTotalCancleCount() int64 {
} }
type TicketMinerInfo struct { type TicketMinerInfo struct {
TicketId string `protobuf:"bytes,1,opt,name=ticketId" json:"ticketId,omitempty"` TicketId string `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
// 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭 // 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭
Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus" json:"prevStatus,omitempty"` PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"`
// genesis 创建的私钥比较特殊 // genesis 创建的私钥比较特殊
IsGenesis bool `protobuf:"varint,4,opt,name=isGenesis" json:"isGenesis,omitempty"` IsGenesis bool `protobuf:"varint,4,opt,name=isGenesis,proto3" json:"isGenesis,omitempty"`
// 创建ticket时间 //创建ticket时间
CreateTime int64 `protobuf:"varint,5,opt,name=createTime" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,5,opt,name=createTime,proto3" json:"createTime,omitempty"`
// ticket挖矿时间 // ticket挖矿时间
MinerTime int64 `protobuf:"varint,6,opt,name=minerTime" json:"minerTime,omitempty"` MinerTime int64 `protobuf:"varint,6,opt,name=minerTime,proto3" json:"minerTime,omitempty"`
// 关闭ticket时间 //关闭ticket时间
CloseTime int64 `protobuf:"varint,7,opt,name=closeTime" json:"closeTime,omitempty"` CloseTime int64 `protobuf:"varint,7,opt,name=closeTime,proto3" json:"closeTime,omitempty"`
// 挖到的币的数目 //挖到的币的数目
MinerValue int64 `protobuf:"varint,8,opt,name=minerValue" json:"minerValue,omitempty"` MinerValue int64 `protobuf:"varint,8,opt,name=minerValue,proto3" json:"minerValue,omitempty"`
MinerAddress string `protobuf:"bytes,9,opt,name=minerAddress" json:"minerAddress,omitempty"` MinerAddress string `protobuf:"bytes,9,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TicketMinerInfo) Reset() { *m = TicketMinerInfo{} } func (m *TicketMinerInfo) Reset() { *m = TicketMinerInfo{} }
func (m *TicketMinerInfo) String() string { return proto.CompactTextString(m) } func (m *TicketMinerInfo) String() string { return proto.CompactTextString(m) }
func (*TicketMinerInfo) ProtoMessage() {} func (*TicketMinerInfo) ProtoMessage() {}
func (*TicketMinerInfo) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{5} } func (*TicketMinerInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{5}
}
func (m *TicketMinerInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketMinerInfo.Unmarshal(m, b)
}
func (m *TicketMinerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketMinerInfo.Marshal(b, m, deterministic)
}
func (m *TicketMinerInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketMinerInfo.Merge(m, src)
}
func (m *TicketMinerInfo) XXX_Size() int {
return xxx_messageInfo_TicketMinerInfo.Size(m)
}
func (m *TicketMinerInfo) XXX_DiscardUnknown() {
xxx_messageInfo_TicketMinerInfo.DiscardUnknown(m)
}
var xxx_messageInfo_TicketMinerInfo proto.InternalMessageInfo
func (m *TicketMinerInfo) GetTicketId() string { func (m *TicketMinerInfo) GetTicketId() string {
if m != nil { if m != nil {
...@@ -291,13 +438,36 @@ func (m *TicketMinerInfo) GetMinerAddress() string { ...@@ -291,13 +438,36 @@ func (m *TicketMinerInfo) GetMinerAddress() string {
type TotalAmount struct { type TotalAmount struct {
// 统计的总数 // 统计的总数
Total int64 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"` 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 (m *TotalAmount) Reset() { *m = TotalAmount{} } func (m *TotalAmount) Reset() { *m = TotalAmount{} }
func (m *TotalAmount) String() string { return proto.CompactTextString(m) } func (m *TotalAmount) String() string { return proto.CompactTextString(m) }
func (*TotalAmount) ProtoMessage() {} func (*TotalAmount) ProtoMessage() {}
func (*TotalAmount) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{6} } func (*TotalAmount) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{6}
}
func (m *TotalAmount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TotalAmount.Unmarshal(m, b)
}
func (m *TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TotalAmount.Marshal(b, m, deterministic)
}
func (m *TotalAmount) XXX_Merge(src proto.Message) {
xxx_messageInfo_TotalAmount.Merge(m, src)
}
func (m *TotalAmount) XXX_Size() int {
return xxx_messageInfo_TotalAmount.Size(m)
}
func (m *TotalAmount) XXX_DiscardUnknown() {
xxx_messageInfo_TotalAmount.DiscardUnknown(m)
}
var xxx_messageInfo_TotalAmount proto.InternalMessageInfo
func (m *TotalAmount) GetTotal() int64 { func (m *TotalAmount) GetTotal() int64 {
if m != nil { if m != nil {
...@@ -306,21 +476,44 @@ func (m *TotalAmount) GetTotal() int64 { ...@@ -306,21 +476,44 @@ func (m *TotalAmount) GetTotal() int64 {
return 0 return 0
} }
// 查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额 //查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额
type ReqGetExecBalance struct { type ReqGetExecBalance struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
StateHash []byte `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,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"` Addr []byte `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
ExecAddr []byte `protobuf:"bytes,4,opt,name=execAddr,proto3" json:"execAddr,omitempty"` ExecAddr []byte `protobuf:"bytes,4,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
Execer string `protobuf:"bytes,5,opt,name=execer" json:"execer,omitempty"` Execer string `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
Count int64 `protobuf:"varint,6,opt,name=count" json:"count,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"` NextKey []byte `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqGetExecBalance) Reset() { *m = ReqGetExecBalance{} } func (m *ReqGetExecBalance) Reset() { *m = ReqGetExecBalance{} }
func (m *ReqGetExecBalance) String() string { return proto.CompactTextString(m) } func (m *ReqGetExecBalance) String() string { return proto.CompactTextString(m) }
func (*ReqGetExecBalance) ProtoMessage() {} func (*ReqGetExecBalance) ProtoMessage() {}
func (*ReqGetExecBalance) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{7} } func (*ReqGetExecBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{7}
}
func (m *ReqGetExecBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqGetExecBalance.Unmarshal(m, b)
}
func (m *ReqGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqGetExecBalance.Marshal(b, m, deterministic)
}
func (m *ReqGetExecBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqGetExecBalance.Merge(m, src)
}
func (m *ReqGetExecBalance) XXX_Size() int {
return xxx_messageInfo_ReqGetExecBalance.Size(m)
}
func (m *ReqGetExecBalance) XXX_DiscardUnknown() {
xxx_messageInfo_ReqGetExecBalance.DiscardUnknown(m)
}
var xxx_messageInfo_ReqGetExecBalance proto.InternalMessageInfo
func (m *ReqGetExecBalance) GetSymbol() string { func (m *ReqGetExecBalance) GetSymbol() string {
if m != nil { if m != nil {
...@@ -372,15 +565,38 @@ func (m *ReqGetExecBalance) GetNextKey() []byte { ...@@ -372,15 +565,38 @@ func (m *ReqGetExecBalance) GetNextKey() []byte {
} }
type ExecBalanceItem struct { type ExecBalanceItem struct {
ExecAddr []byte `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"` ExecAddr []byte `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
Frozen int64 `protobuf:"varint,2,opt,name=frozen" json:"frozen,omitempty"` Frozen int64 `protobuf:"varint,2,opt,name=frozen,proto3" json:"frozen,omitempty"`
Active int64 `protobuf:"varint,3,opt,name=active" json:"active,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 (m *ExecBalanceItem) Reset() { *m = ExecBalanceItem{} }
func (m *ExecBalanceItem) String() string { return proto.CompactTextString(m) }
func (*ExecBalanceItem) ProtoMessage() {}
func (*ExecBalanceItem) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{8}
}
func (m *ExecBalanceItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecBalanceItem.Unmarshal(m, b)
}
func (m *ExecBalanceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecBalanceItem.Marshal(b, m, deterministic)
}
func (m *ExecBalanceItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecBalanceItem.Merge(m, src)
}
func (m *ExecBalanceItem) XXX_Size() int {
return xxx_messageInfo_ExecBalanceItem.Size(m)
}
func (m *ExecBalanceItem) XXX_DiscardUnknown() {
xxx_messageInfo_ExecBalanceItem.DiscardUnknown(m)
} }
func (m *ExecBalanceItem) Reset() { *m = ExecBalanceItem{} } var xxx_messageInfo_ExecBalanceItem proto.InternalMessageInfo
func (m *ExecBalanceItem) String() string { return proto.CompactTextString(m) }
func (*ExecBalanceItem) ProtoMessage() {}
func (*ExecBalanceItem) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{8} }
func (m *ExecBalanceItem) GetExecAddr() []byte { func (m *ExecBalanceItem) GetExecAddr() []byte {
if m != nil { if m != nil {
...@@ -403,19 +619,42 @@ func (m *ExecBalanceItem) GetActive() int64 { ...@@ -403,19 +619,42 @@ func (m *ExecBalanceItem) GetActive() int64 {
return 0 return 0
} }
// 查询symbol在合约中的代币总额应答 //查询symbol在合约中的代币总额应答
type ReplyGetExecBalance struct { type ReplyGetExecBalance struct {
Amount int64 `protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"` Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
AmountFrozen int64 `protobuf:"varint,2,opt,name=amountFrozen" json:"amountFrozen,omitempty"` AmountFrozen int64 `protobuf:"varint,2,opt,name=amountFrozen,proto3" json:"amountFrozen,omitempty"`
AmountActive int64 `protobuf:"varint,3,opt,name=amountActive" json:"amountActive,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"` NextKey []byte `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
Items []*ExecBalanceItem `protobuf:"bytes,5,rep,name=items" json:"items,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:"-"`
}
func (m *ReplyGetExecBalance) Reset() { *m = ReplyGetExecBalance{} }
func (m *ReplyGetExecBalance) String() string { return proto.CompactTextString(m) }
func (*ReplyGetExecBalance) ProtoMessage() {}
func (*ReplyGetExecBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_405f6cee9ed2da7e, []int{9}
}
func (m *ReplyGetExecBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyGetExecBalance.Unmarshal(m, b)
}
func (m *ReplyGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyGetExecBalance.Marshal(b, m, deterministic)
}
func (m *ReplyGetExecBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyGetExecBalance.Merge(m, src)
}
func (m *ReplyGetExecBalance) XXX_Size() int {
return xxx_messageInfo_ReplyGetExecBalance.Size(m)
}
func (m *ReplyGetExecBalance) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyGetExecBalance.DiscardUnknown(m)
} }
func (m *ReplyGetExecBalance) Reset() { *m = ReplyGetExecBalance{} } var xxx_messageInfo_ReplyGetExecBalance proto.InternalMessageInfo
func (m *ReplyGetExecBalance) String() string { return proto.CompactTextString(m) }
func (*ReplyGetExecBalance) ProtoMessage() {}
func (*ReplyGetExecBalance) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{9} }
func (m *ReplyGetExecBalance) GetAmount() int64 { func (m *ReplyGetExecBalance) GetAmount() int64 {
if m != nil { if m != nil {
...@@ -465,9 +704,9 @@ func init() { ...@@ -465,9 +704,9 @@ func init() {
proto.RegisterType((*ReplyGetExecBalance)(nil), "types.ReplyGetExecBalance") proto.RegisterType((*ReplyGetExecBalance)(nil), "types.ReplyGetExecBalance")
} }
func init() { proto.RegisterFile("statistic.proto", fileDescriptor8) } func init() { proto.RegisterFile("statistic.proto", fileDescriptor_405f6cee9ed2da7e) }
var fileDescriptor8 = []byte{ var fileDescriptor_405f6cee9ed2da7e = []byte{
// 637 bytes of a gzipped FileDescriptorProto // 637 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0x96, 0xeb, 0x3a, 0x4d, 0xa7, 0x95, 0x12, 0x96, 0xaa, 0x58, 0x88, 0x9f, 0xca, 0x5c, 0x2a, 0x10, 0x96, 0xeb, 0x3a, 0x4d, 0xa7, 0x95, 0x12, 0x96, 0xaa, 0x58, 0x88, 0x9f, 0xca, 0x5c, 0x2a,
......
...@@ -3,43 +3,75 @@ ...@@ -3,43 +3,75 @@
package types package types
import proto "github.com/golang/protobuf/proto" import (
import fmt "fmt" fmt "fmt"
import math "math" math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// 钱包模块存贮的tx交易详细信息 // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
//钱包模块存贮的tx交易详细信息
// tx : tx交易信息 // tx : tx交易信息
// receipt :交易收据信息 // receipt :交易收据信息
// height :交易所在的区块高度 // height :交易所在的区块高度
// index :交易所在区块中的索引 // index :交易所在区块中的索引
// blocktime :交易所在区块的时标 // blocktime :交易所在区块的时标
// amount :交易量 // amount :交易量
// fromaddr :交易打出地址 // fromaddr :交易打出地址
// txhash : 交易对应的哈希值 // txhash : 交易对应的哈希值
// actionName :交易对应的函数调用 // actionName :交易对应的函数调用
// payload: 保存额外的一些信息,主要是给插件使用 // payload: 保存额外的一些信息,主要是给插件使用
type WalletTxDetail struct { type WalletTxDetail struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx" json:"tx,omitempty"` Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
Receipt *ReceiptData `protobuf:"bytes,2,opt,name=receipt" json:"receipt,omitempty"` Receipt *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
Blocktime int64 `protobuf:"varint,5,opt,name=blocktime" json:"blocktime,omitempty"` Blocktime int64 `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
Amount int64 `protobuf:"varint,6,opt,name=amount" json:"amount,omitempty"` Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
Fromaddr string `protobuf:"bytes,7,opt,name=fromaddr" json:"fromaddr,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"` Txhash []byte `protobuf:"bytes,8,opt,name=txhash,proto3" json:"txhash,omitempty"`
ActionName string `protobuf:"bytes,9,opt,name=actionName" json:"actionName,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"` Payload []byte `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
func (m *WalletTxDetail) Reset() { *m = WalletTxDetail{} } XXX_sizecache int32 `json:"-"`
func (m *WalletTxDetail) String() string { return proto.CompactTextString(m) } }
func (*WalletTxDetail) ProtoMessage() {}
func (*WalletTxDetail) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} } func (m *WalletTxDetail) Reset() { *m = WalletTxDetail{} }
func (m *WalletTxDetail) String() string { return proto.CompactTextString(m) }
func (*WalletTxDetail) ProtoMessage() {}
func (*WalletTxDetail) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{0}
}
func (m *WalletTxDetail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletTxDetail.Unmarshal(m, b)
}
func (m *WalletTxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletTxDetail.Marshal(b, m, deterministic)
}
func (m *WalletTxDetail) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletTxDetail.Merge(m, src)
}
func (m *WalletTxDetail) XXX_Size() int {
return xxx_messageInfo_WalletTxDetail.Size(m)
}
func (m *WalletTxDetail) XXX_DiscardUnknown() {
xxx_messageInfo_WalletTxDetail.DiscardUnknown(m)
}
var xxx_messageInfo_WalletTxDetail proto.InternalMessageInfo
func (m *WalletTxDetail) GetTx() *Transaction { func (m *WalletTxDetail) GetTx() *Transaction {
if m != nil { if m != nil {
...@@ -112,13 +144,36 @@ func (m *WalletTxDetail) GetPayload() []byte { ...@@ -112,13 +144,36 @@ func (m *WalletTxDetail) GetPayload() []byte {
} }
type WalletTxDetails struct { type WalletTxDetails struct {
TxDetails []*WalletTxDetail `protobuf:"bytes,1,rep,name=txDetails" json:"txDetails,omitempty"` 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 (m *WalletTxDetails) Reset() { *m = WalletTxDetails{} } func (m *WalletTxDetails) Reset() { *m = WalletTxDetails{} }
func (m *WalletTxDetails) String() string { return proto.CompactTextString(m) } func (m *WalletTxDetails) String() string { return proto.CompactTextString(m) }
func (*WalletTxDetails) ProtoMessage() {} func (*WalletTxDetails) ProtoMessage() {}
func (*WalletTxDetails) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{1} } func (*WalletTxDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{1}
}
func (m *WalletTxDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletTxDetails.Unmarshal(m, b)
}
func (m *WalletTxDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletTxDetails.Marshal(b, m, deterministic)
}
func (m *WalletTxDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletTxDetails.Merge(m, src)
}
func (m *WalletTxDetails) XXX_Size() int {
return xxx_messageInfo_WalletTxDetails.Size(m)
}
func (m *WalletTxDetails) XXX_DiscardUnknown() {
xxx_messageInfo_WalletTxDetails.DiscardUnknown(m)
}
var xxx_messageInfo_WalletTxDetails proto.InternalMessageInfo
func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail { func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail {
if m != nil { if m != nil {
...@@ -127,22 +182,45 @@ func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail { ...@@ -127,22 +182,45 @@ func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail {
return nil return nil
} }
// 钱包模块存贮的账户信息 //钱包模块存贮的账户信息
// privkey : 账户地址对应的私钥 // privkey : 账户地址对应的私钥
// label :账户地址对应的标签 // label :账户地址对应的标签
// addr :账户地址 // addr :账户地址
// timeStamp :创建账户时的时标 // timeStamp :创建账户时的时标
type WalletAccountStore struct { type WalletAccountStore struct {
Privkey string `protobuf:"bytes,1,opt,name=privkey" json:"privkey,omitempty"` Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
TimeStamp string `protobuf:"bytes,4,opt,name=timeStamp" json:"timeStamp,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:"-"`
} }
func (m *WalletAccountStore) Reset() { *m = WalletAccountStore{} } func (m *WalletAccountStore) Reset() { *m = WalletAccountStore{} }
func (m *WalletAccountStore) String() string { return proto.CompactTextString(m) } func (m *WalletAccountStore) String() string { return proto.CompactTextString(m) }
func (*WalletAccountStore) ProtoMessage() {} func (*WalletAccountStore) ProtoMessage() {}
func (*WalletAccountStore) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{2} } func (*WalletAccountStore) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{2}
}
func (m *WalletAccountStore) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletAccountStore.Unmarshal(m, b)
}
func (m *WalletAccountStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletAccountStore.Marshal(b, m, deterministic)
}
func (m *WalletAccountStore) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletAccountStore.Merge(m, src)
}
func (m *WalletAccountStore) XXX_Size() int {
return xxx_messageInfo_WalletAccountStore.Size(m)
}
func (m *WalletAccountStore) XXX_DiscardUnknown() {
xxx_messageInfo_WalletAccountStore.DiscardUnknown(m)
}
var xxx_messageInfo_WalletAccountStore proto.InternalMessageInfo
func (m *WalletAccountStore) GetPrivkey() string { func (m *WalletAccountStore) GetPrivkey() string {
if m != nil { if m != nil {
...@@ -172,18 +250,41 @@ func (m *WalletAccountStore) GetTimeStamp() string { ...@@ -172,18 +250,41 @@ func (m *WalletAccountStore) GetTimeStamp() string {
return "" return ""
} }
// 钱包模块通过一个随机值对钱包密码加密 //钱包模块通过一个随机值对钱包密码加密
// pwHash : 对钱包密码和一个随机值组合进行哈希计算 // pwHash : 对钱包密码和一个随机值组合进行哈希计算
// randstr :对钱包密码加密的一个随机值 // randstr :对钱包密码加密的一个随机值
type WalletPwHash struct { type WalletPwHash struct {
PwHash []byte `protobuf:"bytes,1,opt,name=pwHash,proto3" json:"pwHash,omitempty"` PwHash []byte `protobuf:"bytes,1,opt,name=pwHash,proto3" json:"pwHash,omitempty"`
Randstr string `protobuf:"bytes,2,opt,name=randstr" json:"randstr,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:"-"`
} }
func (m *WalletPwHash) Reset() { *m = WalletPwHash{} } func (m *WalletPwHash) Reset() { *m = WalletPwHash{} }
func (m *WalletPwHash) String() string { return proto.CompactTextString(m) } func (m *WalletPwHash) String() string { return proto.CompactTextString(m) }
func (*WalletPwHash) ProtoMessage() {} func (*WalletPwHash) ProtoMessage() {}
func (*WalletPwHash) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{3} } func (*WalletPwHash) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{3}
}
func (m *WalletPwHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletPwHash.Unmarshal(m, b)
}
func (m *WalletPwHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletPwHash.Marshal(b, m, deterministic)
}
func (m *WalletPwHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletPwHash.Merge(m, src)
}
func (m *WalletPwHash) XXX_Size() int {
return xxx_messageInfo_WalletPwHash.Size(m)
}
func (m *WalletPwHash) XXX_DiscardUnknown() {
xxx_messageInfo_WalletPwHash.DiscardUnknown(m)
}
var xxx_messageInfo_WalletPwHash proto.InternalMessageInfo
func (m *WalletPwHash) GetPwHash() []byte { func (m *WalletPwHash) GetPwHash() []byte {
if m != nil { if m != nil {
...@@ -199,22 +300,45 @@ func (m *WalletPwHash) GetRandstr() string { ...@@ -199,22 +300,45 @@ func (m *WalletPwHash) GetRandstr() string {
return "" return ""
} }
// 钱包当前的状态 //钱包当前的状态
// isWalletLock : 钱包是否锁状态,true锁定,false解锁 // isWalletLock : 钱包是否锁状态,true锁定,false解锁
// isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿 // isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
// isHasSeed : 钱包是否有种子,true已有,false没有 // isHasSeed : 钱包是否有种子,true已有,false没有
// isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账 // isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
type WalletStatus struct { type WalletStatus struct {
IsWalletLock bool `protobuf:"varint,1,opt,name=isWalletLock" json:"isWalletLock,omitempty"` IsWalletLock bool `protobuf:"varint,1,opt,name=isWalletLock,proto3" json:"isWalletLock,omitempty"`
IsAutoMining bool `protobuf:"varint,2,opt,name=isAutoMining" json:"isAutoMining,omitempty"` IsAutoMining bool `protobuf:"varint,2,opt,name=isAutoMining,proto3" json:"isAutoMining,omitempty"`
IsHasSeed bool `protobuf:"varint,3,opt,name=isHasSeed" json:"isHasSeed,omitempty"` IsHasSeed bool `protobuf:"varint,3,opt,name=isHasSeed,proto3" json:"isHasSeed,omitempty"`
IsTicketLock bool `protobuf:"varint,4,opt,name=isTicketLock" json:"isTicketLock,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:"-"`
} }
func (m *WalletStatus) Reset() { *m = WalletStatus{} } func (m *WalletStatus) Reset() { *m = WalletStatus{} }
func (m *WalletStatus) String() string { return proto.CompactTextString(m) } func (m *WalletStatus) String() string { return proto.CompactTextString(m) }
func (*WalletStatus) ProtoMessage() {} func (*WalletStatus) ProtoMessage() {}
func (*WalletStatus) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{4} } func (*WalletStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{4}
}
func (m *WalletStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletStatus.Unmarshal(m, b)
}
func (m *WalletStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletStatus.Marshal(b, m, deterministic)
}
func (m *WalletStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletStatus.Merge(m, src)
}
func (m *WalletStatus) XXX_Size() int {
return xxx_messageInfo_WalletStatus.Size(m)
}
func (m *WalletStatus) XXX_DiscardUnknown() {
xxx_messageInfo_WalletStatus.DiscardUnknown(m)
}
var xxx_messageInfo_WalletStatus proto.InternalMessageInfo
func (m *WalletStatus) GetIsWalletLock() bool { func (m *WalletStatus) GetIsWalletLock() bool {
if m != nil { if m != nil {
...@@ -245,13 +369,36 @@ func (m *WalletStatus) GetIsTicketLock() bool { ...@@ -245,13 +369,36 @@ func (m *WalletStatus) GetIsTicketLock() bool {
} }
type WalletAccounts struct { type WalletAccounts struct {
Wallets []*WalletAccount `protobuf:"bytes,1,rep,name=wallets" json:"wallets,omitempty"` 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 (m *WalletAccounts) Reset() { *m = WalletAccounts{} }
func (m *WalletAccounts) String() string { return proto.CompactTextString(m) }
func (*WalletAccounts) ProtoMessage() {}
func (*WalletAccounts) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{5}
} }
func (m *WalletAccounts) Reset() { *m = WalletAccounts{} } func (m *WalletAccounts) XXX_Unmarshal(b []byte) error {
func (m *WalletAccounts) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_WalletAccounts.Unmarshal(m, b)
func (*WalletAccounts) ProtoMessage() {} }
func (*WalletAccounts) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{5} } func (m *WalletAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletAccounts.Marshal(b, m, deterministic)
}
func (m *WalletAccounts) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletAccounts.Merge(m, src)
}
func (m *WalletAccounts) XXX_Size() int {
return xxx_messageInfo_WalletAccounts.Size(m)
}
func (m *WalletAccounts) XXX_DiscardUnknown() {
xxx_messageInfo_WalletAccounts.DiscardUnknown(m)
}
var xxx_messageInfo_WalletAccounts proto.InternalMessageInfo
func (m *WalletAccounts) GetWallets() []*WalletAccount { func (m *WalletAccounts) GetWallets() []*WalletAccount {
if m != nil { if m != nil {
...@@ -261,14 +408,37 @@ func (m *WalletAccounts) GetWallets() []*WalletAccount { ...@@ -261,14 +408,37 @@ func (m *WalletAccounts) GetWallets() []*WalletAccount {
} }
type WalletAccount struct { type WalletAccount struct {
Acc *Account `protobuf:"bytes,1,opt,name=acc" json:"acc,omitempty"` Acc *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label" json:"label,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 (m *WalletAccount) Reset() { *m = WalletAccount{} } func (m *WalletAccount) Reset() { *m = WalletAccount{} }
func (m *WalletAccount) String() string { return proto.CompactTextString(m) } func (m *WalletAccount) String() string { return proto.CompactTextString(m) }
func (*WalletAccount) ProtoMessage() {} func (*WalletAccount) ProtoMessage() {}
func (*WalletAccount) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{6} } func (*WalletAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{6}
}
func (m *WalletAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletAccount.Unmarshal(m, b)
}
func (m *WalletAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletAccount.Marshal(b, m, deterministic)
}
func (m *WalletAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletAccount.Merge(m, src)
}
func (m *WalletAccount) XXX_Size() int {
return xxx_messageInfo_WalletAccount.Size(m)
}
func (m *WalletAccount) XXX_DiscardUnknown() {
xxx_messageInfo_WalletAccount.DiscardUnknown(m)
}
var xxx_messageInfo_WalletAccount proto.InternalMessageInfo
func (m *WalletAccount) GetAcc() *Account { func (m *WalletAccount) GetAcc() *Account {
if m != nil { if m != nil {
...@@ -284,20 +454,43 @@ func (m *WalletAccount) GetLabel() string { ...@@ -284,20 +454,43 @@ func (m *WalletAccount) GetLabel() string {
return "" return ""
} }
// 钱包解锁 //钱包解锁
// passwd : 钱包密码 // passwd : 钱包密码
// timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定 // timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
// walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包 // walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
type WalletUnLock struct { type WalletUnLock struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd" json:"passwd,omitempty"` Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
Timeout int64 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"` Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
WalletOrTicket bool `protobuf:"varint,3,opt,name=walletOrTicket" json:"walletOrTicket,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:"-"`
}
func (m *WalletUnLock) Reset() { *m = WalletUnLock{} }
func (m *WalletUnLock) String() string { return proto.CompactTextString(m) }
func (*WalletUnLock) ProtoMessage() {}
func (*WalletUnLock) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{7}
}
func (m *WalletUnLock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletUnLock.Unmarshal(m, b)
}
func (m *WalletUnLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletUnLock.Marshal(b, m, deterministic)
}
func (m *WalletUnLock) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletUnLock.Merge(m, src)
}
func (m *WalletUnLock) XXX_Size() int {
return xxx_messageInfo_WalletUnLock.Size(m)
}
func (m *WalletUnLock) XXX_DiscardUnknown() {
xxx_messageInfo_WalletUnLock.DiscardUnknown(m)
} }
func (m *WalletUnLock) Reset() { *m = WalletUnLock{} } var xxx_messageInfo_WalletUnLock proto.InternalMessageInfo
func (m *WalletUnLock) String() string { return proto.CompactTextString(m) }
func (*WalletUnLock) ProtoMessage() {}
func (*WalletUnLock) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{7} }
func (m *WalletUnLock) GetPasswd() string { func (m *WalletUnLock) GetPasswd() string {
if m != nil { if m != nil {
...@@ -321,13 +514,36 @@ func (m *WalletUnLock) GetWalletOrTicket() bool { ...@@ -321,13 +514,36 @@ func (m *WalletUnLock) GetWalletOrTicket() bool {
} }
type GenSeedLang struct { type GenSeedLang struct {
Lang int32 `protobuf:"varint,1,opt,name=lang" json:"lang,omitempty"` 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 (m *GenSeedLang) Reset() { *m = GenSeedLang{} }
func (m *GenSeedLang) String() string { return proto.CompactTextString(m) }
func (*GenSeedLang) ProtoMessage() {}
func (*GenSeedLang) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{8}
}
func (m *GenSeedLang) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GenSeedLang.Unmarshal(m, b)
}
func (m *GenSeedLang) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GenSeedLang.Marshal(b, m, deterministic)
}
func (m *GenSeedLang) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenSeedLang.Merge(m, src)
}
func (m *GenSeedLang) XXX_Size() int {
return xxx_messageInfo_GenSeedLang.Size(m)
}
func (m *GenSeedLang) XXX_DiscardUnknown() {
xxx_messageInfo_GenSeedLang.DiscardUnknown(m)
} }
func (m *GenSeedLang) Reset() { *m = GenSeedLang{} } var xxx_messageInfo_GenSeedLang proto.InternalMessageInfo
func (m *GenSeedLang) String() string { return proto.CompactTextString(m) }
func (*GenSeedLang) ProtoMessage() {}
func (*GenSeedLang) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{8} }
func (m *GenSeedLang) GetLang() int32 { func (m *GenSeedLang) GetLang() int32 {
if m != nil { if m != nil {
...@@ -337,13 +553,36 @@ func (m *GenSeedLang) GetLang() int32 { ...@@ -337,13 +553,36 @@ func (m *GenSeedLang) GetLang() int32 {
} }
type GetSeedByPw struct { type GetSeedByPw struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd" json:"passwd,omitempty"` 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 (m *GetSeedByPw) Reset() { *m = GetSeedByPw{} } func (m *GetSeedByPw) Reset() { *m = GetSeedByPw{} }
func (m *GetSeedByPw) String() string { return proto.CompactTextString(m) } func (m *GetSeedByPw) String() string { return proto.CompactTextString(m) }
func (*GetSeedByPw) ProtoMessage() {} func (*GetSeedByPw) ProtoMessage() {}
func (*GetSeedByPw) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{9} } func (*GetSeedByPw) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{9}
}
func (m *GetSeedByPw) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSeedByPw.Unmarshal(m, b)
}
func (m *GetSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSeedByPw.Marshal(b, m, deterministic)
}
func (m *GetSeedByPw) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSeedByPw.Merge(m, src)
}
func (m *GetSeedByPw) XXX_Size() int {
return xxx_messageInfo_GetSeedByPw.Size(m)
}
func (m *GetSeedByPw) XXX_DiscardUnknown() {
xxx_messageInfo_GetSeedByPw.DiscardUnknown(m)
}
var xxx_messageInfo_GetSeedByPw proto.InternalMessageInfo
func (m *GetSeedByPw) GetPasswd() string { func (m *GetSeedByPw) GetPasswd() string {
if m != nil { if m != nil {
...@@ -352,18 +591,41 @@ func (m *GetSeedByPw) GetPasswd() string { ...@@ -352,18 +591,41 @@ func (m *GetSeedByPw) GetPasswd() string {
return "" return ""
} }
// 存储钱包的种子 //存储钱包的种子
// seed : 钱包种子 // seed : 钱包种子
// passwd :钱包密码 // passwd :钱包密码
type SaveSeedByPw struct { type SaveSeedByPw struct {
Seed string `protobuf:"bytes,1,opt,name=seed" json:"seed,omitempty"` Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
Passwd string `protobuf:"bytes,2,opt,name=passwd" json:"passwd,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 (m *SaveSeedByPw) Reset() { *m = SaveSeedByPw{} }
func (m *SaveSeedByPw) String() string { return proto.CompactTextString(m) }
func (*SaveSeedByPw) ProtoMessage() {}
func (*SaveSeedByPw) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{10}
}
func (m *SaveSeedByPw) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SaveSeedByPw.Unmarshal(m, b)
}
func (m *SaveSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SaveSeedByPw.Marshal(b, m, deterministic)
}
func (m *SaveSeedByPw) XXX_Merge(src proto.Message) {
xxx_messageInfo_SaveSeedByPw.Merge(m, src)
}
func (m *SaveSeedByPw) XXX_Size() int {
return xxx_messageInfo_SaveSeedByPw.Size(m)
}
func (m *SaveSeedByPw) XXX_DiscardUnknown() {
xxx_messageInfo_SaveSeedByPw.DiscardUnknown(m)
} }
func (m *SaveSeedByPw) Reset() { *m = SaveSeedByPw{} } var xxx_messageInfo_SaveSeedByPw proto.InternalMessageInfo
func (m *SaveSeedByPw) String() string { return proto.CompactTextString(m) }
func (*SaveSeedByPw) ProtoMessage() {}
func (*SaveSeedByPw) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{10} }
func (m *SaveSeedByPw) GetSeed() string { func (m *SaveSeedByPw) GetSeed() string {
if m != nil { if m != nil {
...@@ -380,13 +642,36 @@ func (m *SaveSeedByPw) GetPasswd() string { ...@@ -380,13 +642,36 @@ func (m *SaveSeedByPw) GetPasswd() string {
} }
type ReplySeed struct { type ReplySeed struct {
Seed string `protobuf:"bytes,1,opt,name=seed" json:"seed,omitempty"` 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 (m *ReplySeed) Reset() { *m = ReplySeed{} } func (m *ReplySeed) Reset() { *m = ReplySeed{} }
func (m *ReplySeed) String() string { return proto.CompactTextString(m) } func (m *ReplySeed) String() string { return proto.CompactTextString(m) }
func (*ReplySeed) ProtoMessage() {} func (*ReplySeed) ProtoMessage() {}
func (*ReplySeed) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{11} } func (*ReplySeed) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{11}
}
func (m *ReplySeed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplySeed.Unmarshal(m, b)
}
func (m *ReplySeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplySeed.Marshal(b, m, deterministic)
}
func (m *ReplySeed) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplySeed.Merge(m, src)
}
func (m *ReplySeed) XXX_Size() int {
return xxx_messageInfo_ReplySeed.Size(m)
}
func (m *ReplySeed) XXX_DiscardUnknown() {
xxx_messageInfo_ReplySeed.DiscardUnknown(m)
}
var xxx_messageInfo_ReplySeed proto.InternalMessageInfo
func (m *ReplySeed) GetSeed() string { func (m *ReplySeed) GetSeed() string {
if m != nil { if m != nil {
...@@ -396,14 +681,37 @@ func (m *ReplySeed) GetSeed() string { ...@@ -396,14 +681,37 @@ func (m *ReplySeed) GetSeed() string {
} }
type ReqWalletSetPasswd struct { type ReqWalletSetPasswd struct {
OldPass string `protobuf:"bytes,1,opt,name=oldPass" json:"oldPass,omitempty"` OldPass string `protobuf:"bytes,1,opt,name=oldPass,proto3" json:"oldPass,omitempty"`
NewPass string `protobuf:"bytes,2,opt,name=newPass" json:"newPass,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 (m *ReqWalletSetPasswd) Reset() { *m = ReqWalletSetPasswd{} }
func (m *ReqWalletSetPasswd) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSetPasswd) ProtoMessage() {}
func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{12}
}
func (m *ReqWalletSetPasswd) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletSetPasswd.Unmarshal(m, b)
}
func (m *ReqWalletSetPasswd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletSetPasswd.Marshal(b, m, deterministic)
}
func (m *ReqWalletSetPasswd) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletSetPasswd.Merge(m, src)
}
func (m *ReqWalletSetPasswd) XXX_Size() int {
return xxx_messageInfo_ReqWalletSetPasswd.Size(m)
}
func (m *ReqWalletSetPasswd) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletSetPasswd.DiscardUnknown(m)
} }
func (m *ReqWalletSetPasswd) Reset() { *m = ReqWalletSetPasswd{} } var xxx_messageInfo_ReqWalletSetPasswd proto.InternalMessageInfo
func (m *ReqWalletSetPasswd) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSetPasswd) ProtoMessage() {}
func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{12} }
func (m *ReqWalletSetPasswd) GetOldPass() string { func (m *ReqWalletSetPasswd) GetOldPass() string {
if m != nil { if m != nil {
...@@ -420,13 +728,36 @@ func (m *ReqWalletSetPasswd) GetNewPass() string { ...@@ -420,13 +728,36 @@ func (m *ReqWalletSetPasswd) GetNewPass() string {
} }
type ReqNewAccount struct { type ReqNewAccount struct {
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"` 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 (m *ReqNewAccount) Reset() { *m = ReqNewAccount{} }
func (m *ReqNewAccount) String() string { return proto.CompactTextString(m) }
func (*ReqNewAccount) ProtoMessage() {}
func (*ReqNewAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{13}
} }
func (m *ReqNewAccount) Reset() { *m = ReqNewAccount{} } func (m *ReqNewAccount) XXX_Unmarshal(b []byte) error {
func (m *ReqNewAccount) String() string { return proto.CompactTextString(m) } return xxx_messageInfo_ReqNewAccount.Unmarshal(m, b)
func (*ReqNewAccount) ProtoMessage() {} }
func (*ReqNewAccount) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{13} } func (m *ReqNewAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqNewAccount.Marshal(b, m, deterministic)
}
func (m *ReqNewAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqNewAccount.Merge(m, src)
}
func (m *ReqNewAccount) XXX_Size() int {
return xxx_messageInfo_ReqNewAccount.Size(m)
}
func (m *ReqNewAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ReqNewAccount.DiscardUnknown(m)
}
var xxx_messageInfo_ReqNewAccount proto.InternalMessageInfo
func (m *ReqNewAccount) GetLabel() string { func (m *ReqNewAccount) GetLabel() string {
if m != nil { if m != nil {
...@@ -435,22 +766,45 @@ func (m *ReqNewAccount) GetLabel() string { ...@@ -435,22 +766,45 @@ func (m *ReqNewAccount) GetLabel() string {
return "" return ""
} }
// 获取钱包交易的详细信息 //获取钱包交易的详细信息
// fromTx : []byte( Sprintf("%018d", height*100000 + index), // fromTx : []byte( Sprintf("%018d", height*100000 + index),
// 表示从高度 height 中的 index 开始获取交易列表; // 表示从高度 height 中的 index 开始获取交易列表;
// 第一次传参为空,获取最新的交易。) // 第一次传参为空,获取最新的交易。)
// count :获取交易列表的个数。 // count :获取交易列表的个数。
// direction :查找方式;0,上一页;1,下一页。 // direction :查找方式;0,上一页;1,下一页。
type ReqWalletTransactionList struct { type ReqWalletTransactionList struct {
FromTx []byte `protobuf:"bytes,1,opt,name=fromTx,proto3" json:"fromTx,omitempty"` FromTx []byte `protobuf:"bytes,1,opt,name=fromTx,proto3" json:"fromTx,omitempty"`
Count int32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Direction int32 `protobuf:"varint,3,opt,name=direction" json:"direction,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:"-"`
}
func (m *ReqWalletTransactionList) Reset() { *m = ReqWalletTransactionList{} }
func (m *ReqWalletTransactionList) String() string { return proto.CompactTextString(m) }
func (*ReqWalletTransactionList) ProtoMessage() {}
func (*ReqWalletTransactionList) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{14}
}
func (m *ReqWalletTransactionList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletTransactionList.Unmarshal(m, b)
}
func (m *ReqWalletTransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletTransactionList.Marshal(b, m, deterministic)
}
func (m *ReqWalletTransactionList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletTransactionList.Merge(m, src)
}
func (m *ReqWalletTransactionList) XXX_Size() int {
return xxx_messageInfo_ReqWalletTransactionList.Size(m)
}
func (m *ReqWalletTransactionList) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletTransactionList.DiscardUnknown(m)
} }
func (m *ReqWalletTransactionList) Reset() { *m = ReqWalletTransactionList{} } var xxx_messageInfo_ReqWalletTransactionList proto.InternalMessageInfo
func (m *ReqWalletTransactionList) String() string { return proto.CompactTextString(m) }
func (*ReqWalletTransactionList) ProtoMessage() {}
func (*ReqWalletTransactionList) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{14} }
func (m *ReqWalletTransactionList) GetFromTx() []byte { func (m *ReqWalletTransactionList) GetFromTx() []byte {
if m != nil { if m != nil {
...@@ -475,14 +829,37 @@ func (m *ReqWalletTransactionList) GetDirection() int32 { ...@@ -475,14 +829,37 @@ func (m *ReqWalletTransactionList) GetDirection() int32 {
type ReqWalletImportPrivkey struct { type ReqWalletImportPrivkey struct {
// bitcoin 的私钥格式 // bitcoin 的私钥格式
Privkey string `protobuf:"bytes,1,opt,name=privkey" json:"privkey,omitempty"` Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label" json:"label,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 (m *ReqWalletImportPrivkey) Reset() { *m = ReqWalletImportPrivkey{} }
func (m *ReqWalletImportPrivkey) String() string { return proto.CompactTextString(m) }
func (*ReqWalletImportPrivkey) ProtoMessage() {}
func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{15}
}
func (m *ReqWalletImportPrivkey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletImportPrivkey.Unmarshal(m, b)
}
func (m *ReqWalletImportPrivkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletImportPrivkey.Marshal(b, m, deterministic)
}
func (m *ReqWalletImportPrivkey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletImportPrivkey.Merge(m, src)
}
func (m *ReqWalletImportPrivkey) XXX_Size() int {
return xxx_messageInfo_ReqWalletImportPrivkey.Size(m)
}
func (m *ReqWalletImportPrivkey) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletImportPrivkey.DiscardUnknown(m)
} }
func (m *ReqWalletImportPrivkey) Reset() { *m = ReqWalletImportPrivkey{} } var xxx_messageInfo_ReqWalletImportPrivkey proto.InternalMessageInfo
func (m *ReqWalletImportPrivkey) String() string { return proto.CompactTextString(m) }
func (*ReqWalletImportPrivkey) ProtoMessage() {}
func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{15} }
func (m *ReqWalletImportPrivkey) GetPrivkey() string { func (m *ReqWalletImportPrivkey) GetPrivkey() string {
if m != nil { if m != nil {
...@@ -498,24 +875,47 @@ func (m *ReqWalletImportPrivkey) GetLabel() string { ...@@ -498,24 +875,47 @@ func (m *ReqWalletImportPrivkey) GetLabel() string {
return "" return ""
} }
// 发送交易 //发送交易
// from : 打出地址 // from : 打出地址
// to :接受地址 // to :接受地址
// amount : 转账额度 // amount : 转账额度
// note :转账备注 // note :转账备注
type ReqWalletSendToAddress struct { type ReqWalletSendToAddress struct {
From string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"` From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Note string `protobuf:"bytes,4,opt,name=note" json:"note,omitempty"` Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
IsToken bool `protobuf:"varint,5,opt,name=isToken" json:"isToken,omitempty"` IsToken bool `protobuf:"varint,5,opt,name=isToken,proto3" json:"isToken,omitempty"`
TokenSymbol string `protobuf:"bytes,6,opt,name=tokenSymbol" json:"tokenSymbol,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:"-"`
} }
func (m *ReqWalletSendToAddress) Reset() { *m = ReqWalletSendToAddress{} } func (m *ReqWalletSendToAddress) Reset() { *m = ReqWalletSendToAddress{} }
func (m *ReqWalletSendToAddress) String() string { return proto.CompactTextString(m) } func (m *ReqWalletSendToAddress) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSendToAddress) ProtoMessage() {} func (*ReqWalletSendToAddress) ProtoMessage() {}
func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{16} } func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{16}
}
func (m *ReqWalletSendToAddress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletSendToAddress.Unmarshal(m, b)
}
func (m *ReqWalletSendToAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletSendToAddress.Marshal(b, m, deterministic)
}
func (m *ReqWalletSendToAddress) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletSendToAddress.Merge(m, src)
}
func (m *ReqWalletSendToAddress) XXX_Size() int {
return xxx_messageInfo_ReqWalletSendToAddress.Size(m)
}
func (m *ReqWalletSendToAddress) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletSendToAddress.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletSendToAddress proto.InternalMessageInfo
func (m *ReqWalletSendToAddress) GetFrom() string { func (m *ReqWalletSendToAddress) GetFrom() string {
if m != nil { if m != nil {
...@@ -560,13 +960,36 @@ func (m *ReqWalletSendToAddress) GetTokenSymbol() string { ...@@ -560,13 +960,36 @@ func (m *ReqWalletSendToAddress) GetTokenSymbol() string {
} }
type ReqWalletSetFee struct { type ReqWalletSetFee struct {
Amount int64 `protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"` 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 (m *ReqWalletSetFee) Reset() { *m = ReqWalletSetFee{} } func (m *ReqWalletSetFee) Reset() { *m = ReqWalletSetFee{} }
func (m *ReqWalletSetFee) String() string { return proto.CompactTextString(m) } func (m *ReqWalletSetFee) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSetFee) ProtoMessage() {} func (*ReqWalletSetFee) ProtoMessage() {}
func (*ReqWalletSetFee) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{17} } func (*ReqWalletSetFee) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{17}
}
func (m *ReqWalletSetFee) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletSetFee.Unmarshal(m, b)
}
func (m *ReqWalletSetFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletSetFee.Marshal(b, m, deterministic)
}
func (m *ReqWalletSetFee) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletSetFee.Merge(m, src)
}
func (m *ReqWalletSetFee) XXX_Size() int {
return xxx_messageInfo_ReqWalletSetFee.Size(m)
}
func (m *ReqWalletSetFee) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletSetFee.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletSetFee proto.InternalMessageInfo
func (m *ReqWalletSetFee) GetAmount() int64 { func (m *ReqWalletSetFee) GetAmount() int64 {
if m != nil { if m != nil {
...@@ -576,14 +999,37 @@ func (m *ReqWalletSetFee) GetAmount() int64 { ...@@ -576,14 +999,37 @@ func (m *ReqWalletSetFee) GetAmount() int64 {
} }
type ReqWalletSetLabel struct { type ReqWalletSetLabel struct {
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label" json:"label,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 (m *ReqWalletSetLabel) Reset() { *m = ReqWalletSetLabel{} } func (m *ReqWalletSetLabel) Reset() { *m = ReqWalletSetLabel{} }
func (m *ReqWalletSetLabel) String() string { return proto.CompactTextString(m) } func (m *ReqWalletSetLabel) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSetLabel) ProtoMessage() {} func (*ReqWalletSetLabel) ProtoMessage() {}
func (*ReqWalletSetLabel) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{18} } func (*ReqWalletSetLabel) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{18}
}
func (m *ReqWalletSetLabel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletSetLabel.Unmarshal(m, b)
}
func (m *ReqWalletSetLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletSetLabel.Marshal(b, m, deterministic)
}
func (m *ReqWalletSetLabel) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletSetLabel.Merge(m, src)
}
func (m *ReqWalletSetLabel) XXX_Size() int {
return xxx_messageInfo_ReqWalletSetLabel.Size(m)
}
func (m *ReqWalletSetLabel) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletSetLabel.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletSetLabel proto.InternalMessageInfo
func (m *ReqWalletSetLabel) GetAddr() string { func (m *ReqWalletSetLabel) GetAddr() string {
if m != nil { if m != nil {
...@@ -600,13 +1046,36 @@ func (m *ReqWalletSetLabel) GetLabel() string { ...@@ -600,13 +1046,36 @@ func (m *ReqWalletSetLabel) GetLabel() string {
} }
type ReqWalletMergeBalance struct { type ReqWalletMergeBalance struct {
To string `protobuf:"bytes,1,opt,name=to" json:"to,omitempty"` 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 (m *ReqWalletMergeBalance) Reset() { *m = ReqWalletMergeBalance{} } func (m *ReqWalletMergeBalance) Reset() { *m = ReqWalletMergeBalance{} }
func (m *ReqWalletMergeBalance) String() string { return proto.CompactTextString(m) } func (m *ReqWalletMergeBalance) String() string { return proto.CompactTextString(m) }
func (*ReqWalletMergeBalance) ProtoMessage() {} func (*ReqWalletMergeBalance) ProtoMessage() {}
func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{19} } func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{19}
}
func (m *ReqWalletMergeBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletMergeBalance.Unmarshal(m, b)
}
func (m *ReqWalletMergeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletMergeBalance.Marshal(b, m, deterministic)
}
func (m *ReqWalletMergeBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletMergeBalance.Merge(m, src)
}
func (m *ReqWalletMergeBalance) XXX_Size() int {
return xxx_messageInfo_ReqWalletMergeBalance.Size(m)
}
func (m *ReqWalletMergeBalance) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletMergeBalance.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletMergeBalance proto.InternalMessageInfo
func (m *ReqWalletMergeBalance) GetTo() string { func (m *ReqWalletMergeBalance) GetTo() string {
if m != nil { if m != nil {
...@@ -616,19 +1085,42 @@ func (m *ReqWalletMergeBalance) GetTo() string { ...@@ -616,19 +1085,42 @@ func (m *ReqWalletMergeBalance) GetTo() string {
} }
type ReqTokenPreCreate struct { type ReqTokenPreCreate struct {
CreatorAddr string `protobuf:"bytes,1,opt,name=creator_addr,json=creatorAddr" json:"creator_addr,omitempty"` CreatorAddr string `protobuf:"bytes,1,opt,name=creator_addr,json=creatorAddr,proto3" json:"creator_addr,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Symbol string `protobuf:"bytes,3,opt,name=symbol" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
Introduction string `protobuf:"bytes,4,opt,name=introduction" json:"introduction,omitempty"` Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction,omitempty"`
OwnerAddr string `protobuf:"bytes,5,opt,name=owner_addr,json=ownerAddr" json:"owner_addr,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" json:"total,omitempty"` Total int64 `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
Price int64 `protobuf:"varint,7,opt,name=price" json:"price,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 (m *ReqTokenPreCreate) Reset() { *m = ReqTokenPreCreate{} }
func (m *ReqTokenPreCreate) String() string { return proto.CompactTextString(m) }
func (*ReqTokenPreCreate) ProtoMessage() {}
func (*ReqTokenPreCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{20}
}
func (m *ReqTokenPreCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqTokenPreCreate.Unmarshal(m, b)
}
func (m *ReqTokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqTokenPreCreate.Marshal(b, m, deterministic)
}
func (m *ReqTokenPreCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqTokenPreCreate.Merge(m, src)
}
func (m *ReqTokenPreCreate) XXX_Size() int {
return xxx_messageInfo_ReqTokenPreCreate.Size(m)
}
func (m *ReqTokenPreCreate) XXX_DiscardUnknown() {
xxx_messageInfo_ReqTokenPreCreate.DiscardUnknown(m)
} }
func (m *ReqTokenPreCreate) Reset() { *m = ReqTokenPreCreate{} } var xxx_messageInfo_ReqTokenPreCreate proto.InternalMessageInfo
func (m *ReqTokenPreCreate) String() string { return proto.CompactTextString(m) }
func (*ReqTokenPreCreate) ProtoMessage() {}
func (*ReqTokenPreCreate) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{20} }
func (m *ReqTokenPreCreate) GetCreatorAddr() string { func (m *ReqTokenPreCreate) GetCreatorAddr() string {
if m != nil { if m != nil {
...@@ -680,15 +1172,38 @@ func (m *ReqTokenPreCreate) GetPrice() int64 { ...@@ -680,15 +1172,38 @@ func (m *ReqTokenPreCreate) GetPrice() int64 {
} }
type ReqTokenFinishCreate struct { type ReqTokenFinishCreate struct {
FinisherAddr string `protobuf:"bytes,1,opt,name=finisher_addr,json=finisherAddr" json:"finisher_addr,omitempty"` FinisherAddr string `protobuf:"bytes,1,opt,name=finisher_addr,json=finisherAddr,proto3" json:"finisher_addr,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
OwnerAddr string `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr" json:"owner_addr,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 (m *ReqTokenFinishCreate) Reset() { *m = ReqTokenFinishCreate{} } func (m *ReqTokenFinishCreate) Reset() { *m = ReqTokenFinishCreate{} }
func (m *ReqTokenFinishCreate) String() string { return proto.CompactTextString(m) } func (m *ReqTokenFinishCreate) String() string { return proto.CompactTextString(m) }
func (*ReqTokenFinishCreate) ProtoMessage() {} func (*ReqTokenFinishCreate) ProtoMessage() {}
func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{21} } func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{21}
}
func (m *ReqTokenFinishCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqTokenFinishCreate.Unmarshal(m, b)
}
func (m *ReqTokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqTokenFinishCreate.Marshal(b, m, deterministic)
}
func (m *ReqTokenFinishCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqTokenFinishCreate.Merge(m, src)
}
func (m *ReqTokenFinishCreate) XXX_Size() int {
return xxx_messageInfo_ReqTokenFinishCreate.Size(m)
}
func (m *ReqTokenFinishCreate) XXX_DiscardUnknown() {
xxx_messageInfo_ReqTokenFinishCreate.DiscardUnknown(m)
}
var xxx_messageInfo_ReqTokenFinishCreate proto.InternalMessageInfo
func (m *ReqTokenFinishCreate) GetFinisherAddr() string { func (m *ReqTokenFinishCreate) GetFinisherAddr() string {
if m != nil { if m != nil {
...@@ -712,15 +1227,38 @@ func (m *ReqTokenFinishCreate) GetOwnerAddr() string { ...@@ -712,15 +1227,38 @@ func (m *ReqTokenFinishCreate) GetOwnerAddr() string {
} }
type ReqTokenRevokeCreate struct { type ReqTokenRevokeCreate struct {
RevokerAddr string `protobuf:"bytes,1,opt,name=revoker_addr,json=revokerAddr" json:"revoker_addr,omitempty"` RevokerAddr string `protobuf:"bytes,1,opt,name=revoker_addr,json=revokerAddr,proto3" json:"revoker_addr,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
OwnerAddr string `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr" json:"owner_addr,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 (m *ReqTokenRevokeCreate) Reset() { *m = ReqTokenRevokeCreate{} }
func (m *ReqTokenRevokeCreate) String() string { return proto.CompactTextString(m) }
func (*ReqTokenRevokeCreate) ProtoMessage() {}
func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{22}
}
func (m *ReqTokenRevokeCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqTokenRevokeCreate.Unmarshal(m, b)
}
func (m *ReqTokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqTokenRevokeCreate.Marshal(b, m, deterministic)
}
func (m *ReqTokenRevokeCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqTokenRevokeCreate.Merge(m, src)
}
func (m *ReqTokenRevokeCreate) XXX_Size() int {
return xxx_messageInfo_ReqTokenRevokeCreate.Size(m)
}
func (m *ReqTokenRevokeCreate) XXX_DiscardUnknown() {
xxx_messageInfo_ReqTokenRevokeCreate.DiscardUnknown(m)
} }
func (m *ReqTokenRevokeCreate) Reset() { *m = ReqTokenRevokeCreate{} } var xxx_messageInfo_ReqTokenRevokeCreate proto.InternalMessageInfo
func (m *ReqTokenRevokeCreate) String() string { return proto.CompactTextString(m) }
func (*ReqTokenRevokeCreate) ProtoMessage() {}
func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{22} }
func (m *ReqTokenRevokeCreate) GetRevokerAddr() string { func (m *ReqTokenRevokeCreate) GetRevokerAddr() string {
if m != nil { if m != nil {
...@@ -744,16 +1282,39 @@ func (m *ReqTokenRevokeCreate) GetOwnerAddr() string { ...@@ -744,16 +1282,39 @@ func (m *ReqTokenRevokeCreate) GetOwnerAddr() string {
} }
type ReqModifyConfig struct { type ReqModifyConfig struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Op string `protobuf:"bytes,2,opt,name=op" json:"op,omitempty"` Op string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Modifier string `protobuf:"bytes,4,opt,name=modifier" json:"modifier,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 (m *ReqModifyConfig) Reset() { *m = ReqModifyConfig{} }
func (m *ReqModifyConfig) String() string { return proto.CompactTextString(m) }
func (*ReqModifyConfig) ProtoMessage() {}
func (*ReqModifyConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{23}
}
func (m *ReqModifyConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqModifyConfig.Unmarshal(m, b)
}
func (m *ReqModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqModifyConfig.Marshal(b, m, deterministic)
}
func (m *ReqModifyConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqModifyConfig.Merge(m, src)
}
func (m *ReqModifyConfig) XXX_Size() int {
return xxx_messageInfo_ReqModifyConfig.Size(m)
}
func (m *ReqModifyConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ReqModifyConfig.DiscardUnknown(m)
} }
func (m *ReqModifyConfig) Reset() { *m = ReqModifyConfig{} } var xxx_messageInfo_ReqModifyConfig proto.InternalMessageInfo
func (m *ReqModifyConfig) String() string { return proto.CompactTextString(m) }
func (*ReqModifyConfig) ProtoMessage() {}
func (*ReqModifyConfig) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{23} }
func (m *ReqModifyConfig) GetKey() string { func (m *ReqModifyConfig) GetKey() string {
if m != nil { if m != nil {
...@@ -784,25 +1345,48 @@ func (m *ReqModifyConfig) GetModifier() string { ...@@ -784,25 +1345,48 @@ func (m *ReqModifyConfig) GetModifier() string {
} }
type ReqSignRawTx struct { type ReqSignRawTx struct {
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Privkey string `protobuf:"bytes,2,opt,name=privkey" json:"privkey,omitempty"` Privkey string `protobuf:"bytes,2,opt,name=privkey,proto3" json:"privkey,omitempty"`
TxHex string `protobuf:"bytes,3,opt,name=txHex" json:"txHex,omitempty"` TxHex string `protobuf:"bytes,3,opt,name=txHex,proto3" json:"txHex,omitempty"`
Expire string `protobuf:"bytes,4,opt,name=expire" json:"expire,omitempty"` Expire string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
Index int32 `protobuf:"varint,5,opt,name=index" json:"index,omitempty"` Index int32 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
// 签名的模式类型 // 签名的模式类型
// 0:普通交易 // 0:普通交易
// 1:隐私交易 // 1:隐私交易
// int32 mode = 6; // int32 mode = 6;
Token string `protobuf:"bytes,7,opt,name=token" json:"token,omitempty"` Token string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
Fee int64 `protobuf:"varint,8,opt,name=fee" json:"fee,omitempty"` Fee int64 `protobuf:"varint,8,opt,name=fee,proto3" json:"fee,omitempty"`
// bytes newExecer = 9; // bytes newExecer = 9;
NewToAddr string `protobuf:"bytes,10,opt,name=newToAddr" json:"newToAddr,omitempty"` 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 (m *ReqSignRawTx) Reset() { *m = ReqSignRawTx{} } func (m *ReqSignRawTx) Reset() { *m = ReqSignRawTx{} }
func (m *ReqSignRawTx) String() string { return proto.CompactTextString(m) } func (m *ReqSignRawTx) String() string { return proto.CompactTextString(m) }
func (*ReqSignRawTx) ProtoMessage() {} func (*ReqSignRawTx) ProtoMessage() {}
func (*ReqSignRawTx) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{24} } func (*ReqSignRawTx) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{24}
}
func (m *ReqSignRawTx) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqSignRawTx.Unmarshal(m, b)
}
func (m *ReqSignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqSignRawTx.Marshal(b, m, deterministic)
}
func (m *ReqSignRawTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqSignRawTx.Merge(m, src)
}
func (m *ReqSignRawTx) XXX_Size() int {
return xxx_messageInfo_ReqSignRawTx.Size(m)
}
func (m *ReqSignRawTx) XXX_DiscardUnknown() {
xxx_messageInfo_ReqSignRawTx.DiscardUnknown(m)
}
var xxx_messageInfo_ReqSignRawTx proto.InternalMessageInfo
func (m *ReqSignRawTx) GetAddr() string { func (m *ReqSignRawTx) GetAddr() string {
if m != nil { if m != nil {
...@@ -861,13 +1445,36 @@ func (m *ReqSignRawTx) GetNewToAddr() string { ...@@ -861,13 +1445,36 @@ func (m *ReqSignRawTx) GetNewToAddr() string {
} }
type ReplySignRawTx struct { type ReplySignRawTx struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex" json:"txHex,omitempty"` 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 (m *ReplySignRawTx) Reset() { *m = ReplySignRawTx{} } func (m *ReplySignRawTx) Reset() { *m = ReplySignRawTx{} }
func (m *ReplySignRawTx) String() string { return proto.CompactTextString(m) } func (m *ReplySignRawTx) String() string { return proto.CompactTextString(m) }
func (*ReplySignRawTx) ProtoMessage() {} func (*ReplySignRawTx) ProtoMessage() {}
func (*ReplySignRawTx) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{25} } func (*ReplySignRawTx) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{25}
}
func (m *ReplySignRawTx) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplySignRawTx.Unmarshal(m, b)
}
func (m *ReplySignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplySignRawTx.Marshal(b, m, deterministic)
}
func (m *ReplySignRawTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplySignRawTx.Merge(m, src)
}
func (m *ReplySignRawTx) XXX_Size() int {
return xxx_messageInfo_ReplySignRawTx.Size(m)
}
func (m *ReplySignRawTx) XXX_DiscardUnknown() {
xxx_messageInfo_ReplySignRawTx.DiscardUnknown(m)
}
var xxx_messageInfo_ReplySignRawTx proto.InternalMessageInfo
func (m *ReplySignRawTx) GetTxHex() string { func (m *ReplySignRawTx) GetTxHex() string {
if m != nil { if m != nil {
...@@ -877,15 +1484,38 @@ func (m *ReplySignRawTx) GetTxHex() string { ...@@ -877,15 +1484,38 @@ func (m *ReplySignRawTx) GetTxHex() string {
} }
type ReportErrEvent struct { type ReportErrEvent struct {
Frommodule string `protobuf:"bytes,1,opt,name=frommodule" json:"frommodule,omitempty"` Frommodule string `protobuf:"bytes,1,opt,name=frommodule,proto3" json:"frommodule,omitempty"`
Tomodule string `protobuf:"bytes,2,opt,name=tomodule" json:"tomodule,omitempty"` Tomodule string `protobuf:"bytes,2,opt,name=tomodule,proto3" json:"tomodule,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error" json:"error,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 (m *ReportErrEvent) Reset() { *m = ReportErrEvent{} } func (m *ReportErrEvent) Reset() { *m = ReportErrEvent{} }
func (m *ReportErrEvent) String() string { return proto.CompactTextString(m) } func (m *ReportErrEvent) String() string { return proto.CompactTextString(m) }
func (*ReportErrEvent) ProtoMessage() {} func (*ReportErrEvent) ProtoMessage() {}
func (*ReportErrEvent) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{26} } func (*ReportErrEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{26}
}
func (m *ReportErrEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportErrEvent.Unmarshal(m, b)
}
func (m *ReportErrEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportErrEvent.Marshal(b, m, deterministic)
}
func (m *ReportErrEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportErrEvent.Merge(m, src)
}
func (m *ReportErrEvent) XXX_Size() int {
return xxx_messageInfo_ReportErrEvent.Size(m)
}
func (m *ReportErrEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ReportErrEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ReportErrEvent proto.InternalMessageInfo
func (m *ReportErrEvent) GetFrommodule() string { func (m *ReportErrEvent) GetFrommodule() string {
if m != nil { if m != nil {
...@@ -909,13 +1539,36 @@ func (m *ReportErrEvent) GetError() string { ...@@ -909,13 +1539,36 @@ func (m *ReportErrEvent) GetError() string {
} }
type Int32 struct { type Int32 struct {
Data int32 `protobuf:"varint,1,opt,name=data" json:"data,omitempty"` 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 (m *Int32) Reset() { *m = Int32{} } func (m *Int32) Reset() { *m = Int32{} }
func (m *Int32) String() string { return proto.CompactTextString(m) } func (m *Int32) String() string { return proto.CompactTextString(m) }
func (*Int32) ProtoMessage() {} func (*Int32) ProtoMessage() {}
func (*Int32) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{27} } func (*Int32) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{27}
}
func (m *Int32) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Int32.Unmarshal(m, b)
}
func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Int32.Marshal(b, m, deterministic)
}
func (m *Int32) XXX_Merge(src proto.Message) {
xxx_messageInfo_Int32.Merge(m, src)
}
func (m *Int32) XXX_Size() int {
return xxx_messageInfo_Int32.Size(m)
}
func (m *Int32) XXX_DiscardUnknown() {
xxx_messageInfo_Int32.DiscardUnknown(m)
}
var xxx_messageInfo_Int32 proto.InternalMessageInfo
func (m *Int32) GetData() int32 { func (m *Int32) GetData() int32 {
if m != nil { if m != nil {
...@@ -926,29 +1579,52 @@ func (m *Int32) GetData() int32 { ...@@ -926,29 +1579,52 @@ func (m *Int32) GetData() int32 {
// 某些交易需要存在一些复杂的算法,所以需要请求服务器协助构建交易,返回对应交易哈希值,后续签名可以根据此哈希值进行处理 // 某些交易需要存在一些复杂的算法,所以需要请求服务器协助构建交易,返回对应交易哈希值,后续签名可以根据此哈希值进行处理
type ReqCreateTransaction struct { type ReqCreateTransaction struct {
Tokenname string `protobuf:"bytes,1,opt,name=tokenname" json:"tokenname,omitempty"` Tokenname string `protobuf:"bytes,1,opt,name=tokenname,proto3" json:"tokenname,omitempty"`
// 构建交易类型 // 构建交易类型
// 0:普通的交易(暂不支持) // 0:普通的交易(暂不支持)
// 1:隐私交易 公开->隐私 // 1:隐私交易 公开->隐私
// 2:隐私交易 隐私->隐私 // 2:隐私交易 隐私->隐私
// 3:隐私交易 隐私->公开 // 3:隐私交易 隐私->公开
Type int32 `protobuf:"varint,2,opt,name=type" json:"type,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Note string `protobuf:"bytes,4,opt,name=note" json:"note,omitempty"` Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
// 普通交易的发送方 // 普通交易的发送方
From string `protobuf:"bytes,5,opt,name=from" json:"from,omitempty"` From string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"`
// 普通交易的接收方 // 普通交易的接收方
To string `protobuf:"bytes,6,opt,name=to" json:"to,omitempty"` To string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"`
// 隐私交易,接收方的公钥对 // 隐私交易,接收方的公钥对
Pubkeypair string `protobuf:"bytes,10,opt,name=pubkeypair" json:"pubkeypair,omitempty"` Pubkeypair string `protobuf:"bytes,10,opt,name=pubkeypair,proto3" json:"pubkeypair,omitempty"`
Mixcount int32 `protobuf:"varint,11,opt,name=mixcount" json:"mixcount,omitempty"` Mixcount int32 `protobuf:"varint,11,opt,name=mixcount,proto3" json:"mixcount,omitempty"`
Expire int64 `protobuf:"varint,12,opt,name=expire" json:"expire,omitempty"` Expire int64 `protobuf:"varint,12,opt,name=expire,proto3" json:"expire,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqCreateTransaction) Reset() { *m = ReqCreateTransaction{} }
func (m *ReqCreateTransaction) String() string { return proto.CompactTextString(m) }
func (*ReqCreateTransaction) ProtoMessage() {}
func (*ReqCreateTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{28}
}
func (m *ReqCreateTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCreateTransaction.Unmarshal(m, b)
}
func (m *ReqCreateTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCreateTransaction.Marshal(b, m, deterministic)
}
func (m *ReqCreateTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCreateTransaction.Merge(m, src)
}
func (m *ReqCreateTransaction) XXX_Size() int {
return xxx_messageInfo_ReqCreateTransaction.Size(m)
}
func (m *ReqCreateTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_ReqCreateTransaction.DiscardUnknown(m)
} }
func (m *ReqCreateTransaction) Reset() { *m = ReqCreateTransaction{} } var xxx_messageInfo_ReqCreateTransaction proto.InternalMessageInfo
func (m *ReqCreateTransaction) String() string { return proto.CompactTextString(m) }
func (*ReqCreateTransaction) ProtoMessage() {}
func (*ReqCreateTransaction) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{28} }
func (m *ReqCreateTransaction) GetTokenname() string { func (m *ReqCreateTransaction) GetTokenname() string {
if m != nil { if m != nil {
...@@ -1014,13 +1690,36 @@ func (m *ReqCreateTransaction) GetExpire() int64 { ...@@ -1014,13 +1690,36 @@ func (m *ReqCreateTransaction) GetExpire() int64 {
} }
type ReqAccountList struct { type ReqAccountList struct {
WithoutBalance bool `protobuf:"varint,1,opt,name=withoutBalance" json:"withoutBalance,omitempty"` 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 (m *ReqAccountList) Reset() { *m = ReqAccountList{} }
func (m *ReqAccountList) String() string { return proto.CompactTextString(m) }
func (*ReqAccountList) ProtoMessage() {}
func (*ReqAccountList) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{29}
}
func (m *ReqAccountList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqAccountList.Unmarshal(m, b)
}
func (m *ReqAccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqAccountList.Marshal(b, m, deterministic)
}
func (m *ReqAccountList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqAccountList.Merge(m, src)
}
func (m *ReqAccountList) XXX_Size() int {
return xxx_messageInfo_ReqAccountList.Size(m)
}
func (m *ReqAccountList) XXX_DiscardUnknown() {
xxx_messageInfo_ReqAccountList.DiscardUnknown(m)
} }
func (m *ReqAccountList) Reset() { *m = ReqAccountList{} } var xxx_messageInfo_ReqAccountList proto.InternalMessageInfo
func (m *ReqAccountList) String() string { return proto.CompactTextString(m) }
func (*ReqAccountList) ProtoMessage() {}
func (*ReqAccountList) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{29} }
func (m *ReqAccountList) GetWithoutBalance() bool { func (m *ReqAccountList) GetWithoutBalance() bool {
if m != nil { if m != nil {
...@@ -1062,9 +1761,9 @@ func init() { ...@@ -1062,9 +1761,9 @@ func init() {
proto.RegisterType((*ReqAccountList)(nil), "types.ReqAccountList") proto.RegisterType((*ReqAccountList)(nil), "types.ReqAccountList")
} }
func init() { proto.RegisterFile("wallet.proto", fileDescriptor10) } func init() { proto.RegisterFile("wallet.proto", fileDescriptor_b88fd140af4deb6f) }
var fileDescriptor10 = []byte{ var fileDescriptor_b88fd140af4deb6f = []byte{
// 1292 bytes of a gzipped FileDescriptorProto // 1292 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5d, 0x6e, 0x1b, 0xb7, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5d, 0x6e, 0x1b, 0xb7,
0x13, 0xc7, 0x4a, 0x96, 0x6d, 0xd1, 0xb2, 0x93, 0x2c, 0x92, 0x40, 0xf0, 0xff, 0x9f, 0xc4, 0x61, 0x13, 0xc7, 0x4a, 0x96, 0x6d, 0xd1, 0xb2, 0x93, 0x2c, 0x92, 0x40, 0xf0, 0xff, 0x9f, 0xc4, 0x61,
......
...@@ -136,7 +136,7 @@ func RunChain33(name string) { ...@@ -136,7 +136,7 @@ func RunChain33(name string) {
version.SetLocalDBVersion(cfg.Store.LocalDBVersion) version.SetLocalDBVersion(cfg.Store.LocalDBVersion)
version.SetStoreDBVersion(cfg.Store.StoreDBVersion) version.SetStoreDBVersion(cfg.Store.StoreDBVersion)
version.SetAppVersion(cfg.Version) version.SetAppVersion(cfg.Version)
log.Info(cfg.Title + "-app:" + version.GetAppVersion() + " chain33:" + version.GetVersion() + " localdb:" + version.GetLocalDBVersion() + " storedb:" + version.GetStoreDBVersion()) log.Info(cfg.Title + "-app:" + version.GetAppVersion() + " chain33:" + version.GetVersion() + " localdb:" + version.GetLocalDBVersion() + " statedb:" + version.GetStoreDBVersion())
log.Info("loading queue") log.Info("loading queue")
q := queue.New("channel") q := queue.New("channel")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment