Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
44deaf4c
Commit
44deaf4c
authored
Jan 13, 2019
by
vipwzw
Committed by
33cn
Jan 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug test
parent
54d53dfc
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
1224 additions
and
1416 deletions
+1224
-1416
para.go
plugin/consensus/para/para.go
+1
-0
evm_test.go
plugin/dapp/evm/executor/tests/evm_test.go
+1
-1
util_test.go
plugin/dapp/evm/executor/tests/util_test.go
+1
-1
lottery_test.go
plugin/dapp/lottery/executor/lottery_test.go
+1
-1
exec_test.go
plugin/dapp/multisig/executor/exec_test.go
+1
-1
assettransfer_test.go
plugin/dapp/paracross/executor/assettransfer_test.go
+1
-1
assetwithdraw_test.go
plugin/dapp/paracross/executor/assetwithdraw_test.go
+1
-1
paracross_test.go
plugin/dapp/paracross/executor/paracross_test.go
+1
-1
relay_test.go
plugin/dapp/relay/executor/relay_test.go
+7
-7
relaydb_test.go
plugin/dapp/relay/executor/relaydb_test.go
+29
-29
exec_test.go
plugin/dapp/trade/executor/exec_test.go
+2
-2
execenv.go
vendor/github.com/33cn/chain33/executor/execenv.go
+3
-1
executor.go
vendor/github.com/33cn/chain33/executor/executor.go
+4
-0
driver.go
vendor/github.com/33cn/chain33/system/dapp/driver.go
+9
-2
account.pb.go
vendor/github.com/33cn/chain33/types/account.pb.go
+40
-50
blockchain.pb.go
vendor/github.com/33cn/chain33/types/blockchain.pb.go
+180
-202
common.pb.go
vendor/github.com/33cn/chain33/types/common.pb.go
+59
-79
db.pb.go
vendor/github.com/33cn/chain33/types/db.pb.go
+58
-78
executor.pb.go
vendor/github.com/33cn/chain33/types/executor.pb.go
+98
-104
p2p.pb.go
vendor/github.com/33cn/chain33/types/p2p.pb.go
+249
-277
pbft.pb.go
vendor/github.com/33cn/chain33/types/pbft.pb.go
+54
-73
blockchain.proto
vendor/github.com/33cn/chain33/types/proto/blockchain.proto
+1
-0
executor.proto
vendor/github.com/33cn/chain33/types/proto/executor.proto
+2
-1
rpc.pb.go
vendor/github.com/33cn/chain33/types/rpc.pb.go
+148
-148
statistic.pb.go
vendor/github.com/33cn/chain33/types/statistic.pb.go
+48
-61
transaction.pb.go
vendor/github.com/33cn/chain33/types/transaction.pb.go
+120
-158
wallet.pb.go
vendor/github.com/33cn/chain33/types/wallet.pb.go
+104
-137
exec.go
vendor/github.com/33cn/chain33/util/exec.go
+1
-0
No files found.
plugin/consensus/para/para.go
View file @
44deaf4c
...
...
@@ -692,6 +692,7 @@ func (client *client) createBlock(lastBlock *types.Block, txs []*types.Transacti
newblock
.
TxHash
=
merkle
.
CalcMerkleRoot
(
newblock
.
Txs
)
newblock
.
BlockTime
=
mainBlock
.
Detail
.
Block
.
BlockTime
newblock
.
MainHash
=
mainBlock
.
Detail
.
Block
.
Hash
()
newblock
.
MainHeight
=
mainBlock
.
Detail
.
Block
.
Height
err
:=
client
.
addMinerTx
(
lastBlock
.
StateHash
,
&
newblock
,
mainBlock
)
if
err
!=
nil
{
return
err
...
...
plugin/dapp/evm/executor/tests/evm_test.go
View file @
44deaf4c
...
...
@@ -109,7 +109,7 @@ func runCase(tt *testing.T, c VMCase, file string) {
// 1 构建预置环境 pre
inst
:=
evm
.
NewEVMExecutor
()
inst
.
SetEnv
(
c
.
env
.
currentNumber
,
c
.
env
.
currentTimestamp
,
uint64
(
c
.
env
.
currentDifficulty
)
,
nil
,
nil
)
inst
.
SetEnv
(
c
.
env
.
currentNumber
,
c
.
env
.
currentTimestamp
,
uint64
(
c
.
env
.
currentDifficulty
))
inst
.
CheckInit
()
statedb
:=
inst
.
GetMStateDB
()
mdb
:=
createStateDB
(
statedb
,
c
)
...
...
plugin/dapp/evm/executor/tests/util_test.go
View file @
44deaf4c
...
...
@@ -252,7 +252,7 @@ func createContract(mdb *db.GoMemDB, tx types.Transaction, maxCodeSize int) (ret
inst
.
CheckInit
()
msg
,
_
:=
inst
.
GetMessage
(
&
tx
)
inst
.
SetEnv
(
10
,
0
,
uint64
(
10
)
,
nil
,
nil
)
inst
.
SetEnv
(
10
,
0
,
uint64
(
10
))
statedb
=
inst
.
GetMStateDB
()
statedb
.
StateDB
=
mdb
...
...
plugin/dapp/lottery/executor/lottery_test.go
View file @
44deaf4c
...
...
@@ -122,7 +122,7 @@ func TestExecDrawLottery(t *testing.T) {
if
!
CompareLotteryExecResult
(
receipt
,
err
,
&
targetReceipt
,
targetErr
)
{
t
.
Error
(
testNormErr
)
}
lottery
.
SetEnv
(
100
,
0
,
0
,
nil
,
nil
)
lottery
.
SetEnv
(
100
,
0
,
0
)
receipt
,
err
=
lottery
.
Exec
(
tx
,
0
)
targetErr
=
types
.
ErrActionNotSupport
// ErrActionNotSupport case
...
...
plugin/dapp/multisig/executor/exec_test.go
View file @
44deaf4c
...
...
@@ -104,7 +104,7 @@ func TestMultiSigAccCreate(t *testing.T) {
//accA.SaveExecAccount(address.ExecAddress("multisig"), &accountA)
driver
:=
newMultiSig
()
driver
.
SetEnv
(
env
.
blockHeight
,
env
.
blockTime
,
env
.
difficulty
,
nil
,
nil
)
driver
.
SetEnv
(
env
.
blockHeight
,
env
.
blockTime
,
env
.
difficulty
)
driver
.
SetStateDB
(
stateDB
)
driver
.
SetLocalDB
(
localDB
)
driver
.
SetAPI
(
api
)
...
...
plugin/dapp/paracross/executor/assettransfer_test.go
View file @
44deaf4c
...
...
@@ -54,7 +54,7 @@ func (suite *AssetTransferTestSuite) SetupTest() {
suite
.
exec
=
newParacross
()
.
(
*
Paracross
)
suite
.
exec
.
SetLocalDB
(
suite
.
localDB
)
suite
.
exec
.
SetStateDB
(
suite
.
stateDB
)
suite
.
exec
.
SetEnv
(
0
,
0
,
0
,
nil
,
nil
)
suite
.
exec
.
SetEnv
(
0
,
0
,
0
)
suite
.
exec
.
SetAPI
(
suite
.
api
)
enableParacrossTransfer
=
true
...
...
plugin/dapp/paracross/executor/assetwithdraw_test.go
View file @
44deaf4c
...
...
@@ -49,7 +49,7 @@ func (suite *AssetWithdrawTestSuite) SetupTest() {
suite
.
exec
=
newParacross
()
.
(
*
Paracross
)
suite
.
exec
.
SetLocalDB
(
suite
.
localDB
)
suite
.
exec
.
SetStateDB
(
suite
.
stateDB
)
suite
.
exec
.
SetEnv
(
0
,
0
,
0
,
nil
,
nil
)
suite
.
exec
.
SetEnv
(
0
,
0
,
0
)
suite
.
exec
.
SetAPI
(
suite
.
api
)
enableParacrossTransfer
=
true
...
...
plugin/dapp/paracross/executor/paracross_test.go
View file @
44deaf4c
...
...
@@ -102,7 +102,7 @@ func (suite *CommitTestSuite) SetupSuite() {
suite
.
exec
=
newParacross
()
.
(
*
Paracross
)
suite
.
exec
.
SetLocalDB
(
suite
.
localDB
)
suite
.
exec
.
SetStateDB
(
suite
.
stateDB
)
suite
.
exec
.
SetEnv
(
0
,
0
,
0
,
nil
,
nil
)
suite
.
exec
.
SetEnv
(
0
,
0
,
0
)
suite
.
exec
.
SetAPI
(
suite
.
api
)
enableParacrossTransfer
=
false
...
...
plugin/dapp/relay/executor/relay_test.go
View file @
44deaf4c
...
...
@@ -72,7 +72,7 @@ func (s *suiteRelay) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
accDb
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -139,7 +139,7 @@ func (s *suiteRelay) TestExec_1() {
tx
.
Payload
=
types
.
Encode
(
sell
)
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -180,7 +180,7 @@ func (s *suiteRelay) TestExec_2() {
tx
.
Payload
=
types
.
Encode
(
sell
)
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
20
,
2000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
20
,
2000
,
1
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
receipt
,
err
:=
s
.
relay
.
Exec
(
tx
,
0
)
...
...
@@ -216,7 +216,7 @@ func (s *suiteRelay) TestExec_3() {
tx
.
Payload
=
types
.
Encode
(
sell
)
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
30
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
receipt
,
err
:=
s
.
relay
.
Exec
(
tx
,
0
)
...
...
@@ -287,7 +287,7 @@ func (s *suiteRelay) TestExec_4() {
tx
.
Payload
=
types
.
Encode
(
sell
)
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
)
_
,
err
:=
s
.
relay
.
Exec
(
tx
,
0
)
s
.
Nil
(
err
)
...
...
@@ -404,7 +404,7 @@ func (s *suiteBtcHeader) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
s
.
db
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -515,7 +515,7 @@ func (s *suiteBtcHeader) TestSaveBtcHead_1() {
tx
.
Payload
=
types
.
Encode
(
sell
)
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
db
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
nil
,
types
.
ErrNotFound
)
.
Once
()
s
.
db
.
On
(
"Set"
,
mock
.
Anything
,
mock
.
Anything
)
.
Return
(
nil
)
.
Once
()
...
...
plugin/dapp/relay/executor/relaydb_test.go
View file @
44deaf4c
...
...
@@ -152,7 +152,7 @@ func (s *suiteRelayDB) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
accDb
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -175,7 +175,7 @@ func (s *suiteRelayDB) TestRelayCreate_1() {
tx
.
Nonce
=
1
//for different order id
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -207,7 +207,7 @@ func (s *suiteRelayDB) TestRevokeCreate_1aUnlock() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -228,7 +228,7 @@ func (s *suiteRelayDB) TestRevokeCreate_1bCancel() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -308,7 +308,7 @@ func (s *suiteAccept) setupRelayCreate() {
tx
.
Nonce
=
2
//for different order id
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -335,7 +335,7 @@ func (s *suiteAccept) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
accDb
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -356,7 +356,7 @@ func (s *suiteAccept) TestRelayAccept() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -387,7 +387,7 @@ func (s *suiteAccept) TestRevokeAccept_1() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
22
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -408,7 +408,7 @@ func (s *suiteAccept) TestRevokeAccept_2() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
+
lockBtcHeight
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -429,7 +429,7 @@ func (s *suiteAccept) TestRevokeAccept_3() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
11
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
+
lockBtcHeight
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -506,7 +506,7 @@ func (s *suiteConfirm) setupRelayCreate() {
tx
.
Nonce
=
3
//for different order id
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -533,7 +533,7 @@ func (s *suiteConfirm) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
accDb
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -555,7 +555,7 @@ func (s *suiteConfirm) setupAccept() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -586,7 +586,7 @@ func (s *suiteConfirm) TestConfirm_1() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
_
,
err
:=
s
.
relayDb
.
confirmTx
(
order
)
s
.
Equal
(
ty
.
ErrRelayReturnAddr
,
err
)
...
...
@@ -604,7 +604,7 @@ func (s *suiteConfirm) TestConfirm_2() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
30
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -635,7 +635,7 @@ func (s *suiteConfirm) TestRevokeConfirm_1() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
30
+
lockBtcHeight
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -656,7 +656,7 @@ func (s *suiteConfirm) TestRevokeConfirm_2() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
30
+
4
*
lockBtcHeight
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -733,7 +733,7 @@ func (s *suiteVerify) setupRelayCreate() {
tx
.
Nonce
=
4
//for different order id
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -764,7 +764,7 @@ func (s *suiteVerify) setupAccept() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
20
,
2000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
20
,
2000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -795,7 +795,7 @@ func (s *suiteVerify) setupConfirm() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
30
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -822,7 +822,7 @@ func (s *suiteVerify) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
accDb
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -880,7 +880,7 @@ func (s *suiteVerify) TestVerify() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
receipt
,
err
:=
s
.
relayDb
.
verifyTx
(
order
)
...
...
@@ -964,7 +964,7 @@ func (s *suiteVerifyCli) setupRelayCreate() {
tx
.
Nonce
=
5
//for different order id
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
10
,
1000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
10
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -995,7 +995,7 @@ func (s *suiteVerifyCli) setupAccept() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
20
,
2000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
20
,
2000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
20
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -1026,7 +1026,7 @@ func (s *suiteVerifyCli) setupConfirm() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
30
,
3000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
heightBytes
:=
types
.
Encode
(
&
types
.
Int64
{
Data
:
int64
(
30
)})
s
.
kvdb
.
On
(
"Get"
,
mock
.
Anything
)
.
Return
(
heightBytes
,
nil
)
.
Once
()
...
...
@@ -1053,7 +1053,7 @@ func (s *suiteVerifyCli) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
accDb
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -1085,7 +1085,7 @@ func (s *suiteVerifyCli) TestVerify() {
tx
.
To
=
s
.
addrRelay
tx
.
Sign
(
types
.
SECP256K1
,
privTo
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
receipt
,
err
:=
s
.
relayDb
.
verifyCmdTx
(
order
)
...
...
@@ -1128,7 +1128,7 @@ func (s *suiteSaveBtcHeader) SetupSuite() {
relay
:=
&
relay
{}
relay
.
SetStateDB
(
s
.
db
)
relay
.
SetLocalDB
(
s
.
kvdb
)
relay
.
SetEnv
(
10
,
100
,
1
,
nil
,
nil
)
relay
.
SetEnv
(
10
,
100
,
1
)
relay
.
SetIsFree
(
false
)
relay
.
SetAPI
(
nil
)
relay
.
SetChild
(
relay
)
...
...
@@ -1138,7 +1138,7 @@ func (s *suiteSaveBtcHeader) SetupSuite() {
tx
.
To
=
"addr"
tx
.
Sign
(
types
.
SECP256K1
,
privFrom
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
,
nil
,
nil
)
s
.
relay
.
SetEnv
(
40
,
4000
,
1
)
s
.
relayDb
=
newRelayDB
(
s
.
relay
,
tx
)
}
...
...
plugin/dapp/trade/executor/exec_test.go
View file @
44deaf4c
...
...
@@ -84,7 +84,7 @@ func TestTrade_Exec_SellLimit(t *testing.T) {
accA
.
SaveExecAccount
(
address
.
ExecAddress
(
"trade"
),
&
accountA
)
driver
:=
newTrade
()
driver
.
SetEnv
(
env
.
blockHeight
,
env
.
blockTime
,
env
.
difficulty
,
nil
,
nil
)
driver
.
SetEnv
(
env
.
blockHeight
,
env
.
blockTime
,
env
.
difficulty
)
driver
.
SetStateDB
(
stateDB
)
sell
:=
&
pty
.
TradeSellTx
{
...
...
@@ -193,7 +193,7 @@ func TestTrade_Exec_BuyLimit(t *testing.T) {
accA
.
SaveExecAccount
(
address
.
ExecAddress
(
"trade"
),
&
accountA
)
driver
:=
newTrade
()
driver
.
SetEnv
(
env
.
blockHeight
,
env
.
blockTime
,
env
.
difficulty
,
nil
,
nil
)
driver
.
SetEnv
(
env
.
blockHeight
,
env
.
blockTime
,
env
.
difficulty
)
driver
.
SetStateDB
(
stateDB
)
buy
:=
&
pty
.
TradeBuyLimitTx
{
...
...
vendor/github.com/33cn/chain33/executor/execenv.go
View file @
44deaf4c
...
...
@@ -40,6 +40,7 @@ type executorCtx struct {
difficulty
uint64
parentHash
[]
byte
mainHash
[]
byte
mainHeight
int64
}
func
newExecutor
(
ctx
*
executorCtx
,
exec
*
Executor
,
txs
[]
*
types
.
Transaction
,
receipts
[]
*
types
.
ReceiptData
)
*
executor
{
...
...
@@ -146,7 +147,8 @@ func (e *executor) checkTx(tx *types.Transaction, index int) error {
func
(
e
*
executor
)
setEnv
(
exec
drivers
.
Driver
)
{
exec
.
SetStateDB
(
e
.
stateDB
)
exec
.
SetLocalDB
(
e
.
localDB
)
exec
.
SetEnv
(
e
.
height
,
e
.
blocktime
,
e
.
difficulty
,
e
.
ctx
.
parentHash
,
e
.
ctx
.
mainHash
)
exec
.
SetEnv
(
e
.
height
,
e
.
blocktime
,
e
.
difficulty
)
exec
.
SetBlockInfo
(
e
.
ctx
.
parentHash
,
e
.
ctx
.
mainHash
,
e
.
ctx
.
mainHeight
)
exec
.
SetAPI
(
e
.
api
)
e
.
execapi
=
exec
.
GetExecutorAPI
()
exec
.
SetTxs
(
e
.
txs
)
...
...
vendor/github.com/33cn/chain33/executor/executor.go
View file @
44deaf4c
...
...
@@ -163,6 +163,7 @@ func (exec *Executor) procExecCheckTx(msg queue.Message) {
blocktime
:
datas
.
BlockTime
,
difficulty
:
datas
.
Difficulty
,
mainHash
:
datas
.
MainHash
,
mainHeight
:
datas
.
MainHeight
,
parentHash
:
datas
.
ParentHash
,
}
execute
:=
newExecutor
(
ctx
,
exec
,
datas
.
Txs
,
nil
)
...
...
@@ -194,6 +195,7 @@ func (exec *Executor) procExecTxList(msg queue.Message) {
blocktime
:
datas
.
BlockTime
,
difficulty
:
datas
.
Difficulty
,
mainHash
:
datas
.
MainHash
,
mainHeight
:
datas
.
MainHeight
,
parentHash
:
datas
.
ParentHash
,
}
execute
:=
newExecutor
(
ctx
,
exec
,
datas
.
Txs
,
nil
)
...
...
@@ -263,6 +265,7 @@ func (exec *Executor) procExecAddBlock(msg queue.Message) {
blocktime
:
b
.
BlockTime
,
difficulty
:
uint64
(
b
.
Difficulty
),
mainHash
:
b
.
MainHash
,
mainHeight
:
b
.
MainHeight
,
parentHash
:
b
.
ParentHash
,
}
execute
:=
newExecutor
(
ctx
,
exec
,
b
.
Txs
,
datas
.
Receipts
)
...
...
@@ -323,6 +326,7 @@ func (exec *Executor) procExecDelBlock(msg queue.Message) {
blocktime
:
b
.
BlockTime
,
difficulty
:
uint64
(
b
.
Difficulty
),
mainHash
:
b
.
MainHash
,
mainHeight
:
b
.
MainHeight
,
parentHash
:
b
.
ParentHash
,
}
execute
:=
newExecutor
(
ctx
,
exec
,
b
.
Txs
,
nil
)
...
...
vendor/github.com/33cn/chain33/system/dapp/driver.go
View file @
44deaf4c
...
...
@@ -49,7 +49,8 @@ type Driver interface {
Allow
(
tx
*
types
.
Transaction
,
index
int
)
error
IsFriend
(
myexec
[]
byte
,
writekey
[]
byte
,
othertx
*
types
.
Transaction
)
bool
GetActionName
(
tx
*
types
.
Transaction
)
string
SetEnv
(
height
,
blocktime
int64
,
difficulty
uint64
,
parentHash
,
mainHash
[]
byte
)
SetEnv
(
height
,
blocktime
int64
,
difficulty
uint64
)
SetBlockInfo
([]
byte
,
[]
byte
,
int64
)
CheckTx
(
tx
*
types
.
Transaction
,
index
int
)
error
Exec
(
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
ExecLocal
(
tx
*
types
.
Transaction
,
receipt
*
types
.
ReceiptData
,
index
int
)
(
*
types
.
LocalDBSet
,
error
)
...
...
@@ -77,6 +78,7 @@ type DriverBase struct {
height
int64
blocktime
int64
parentHash
,
mainHash
[]
byte
mainHeight
int64
name
string
curname
string
child
Driver
...
...
@@ -141,12 +143,17 @@ func (d *DriverBase) GetExecutorAPI() api.ExecutorAPI {
}
// SetEnv set env
func
(
d
*
DriverBase
)
SetEnv
(
height
,
blocktime
int64
,
difficulty
uint64
,
parentHash
,
mainHash
[]
byte
)
{
func
(
d
*
DriverBase
)
SetEnv
(
height
,
blocktime
int64
,
difficulty
uint64
)
{
d
.
height
=
height
d
.
blocktime
=
blocktime
d
.
difficulty
=
difficulty
}
//SetBlockInfo 设置区块的信息
func
(
d
*
DriverBase
)
SetBlockInfo
(
parentHash
,
mainHash
[]
byte
,
mainHeight
int64
)
{
d
.
parentHash
=
parentHash
d
.
mainHash
=
mainHash
d
.
mainHeight
=
mainHeight
}
// SetIsFree set isfree
...
...
vendor/github.com/33cn/chain33/types/account.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: account.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -25,11 +22,11 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type
Account
struct
{
// coins标识,目前只有0 一个值
Currency
int32
`protobuf:"varint,1,opt,name=currency,proto3" json:"currency,omitempty"`
//账户可用余额
//
账户可用余额
Balance
int64
`protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
//账户冻结余额
//
账户冻结余额
Frozen
int64
`protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
//账户的地址
//
账户的地址
Addr
string
`protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -40,17 +37,16 @@ func (m *Account) Reset() { *m = Account{} }
func
(
m
*
Account
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Account
)
ProtoMessage
()
{}
func
(
*
Account
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8e28828dcb8d24f0
,
[]
int
{
0
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
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
(
dst
*
Account
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Account
.
Merge
(
dst
,
src
)
}
func
(
m
*
Account
)
XXX_Size
()
int
{
return
xxx_messageInfo_Account
.
Size
(
m
)
...
...
@@ -89,13 +85,13 @@ func (m *Account) GetAddr() string {
return
""
}
//账户余额改变的一个交易回报(合约内)
//
账户余额改变的一个交易回报(合约内)
type
ReceiptExecAccountTransfer
struct
{
//合约地址
//
合约地址
ExecAddr
string
`protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
//转移前
//
转移前
Prev
*
Account
`protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
//转移后
//
转移后
Current
*
Account
`protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -106,17 +102,16 @@ func (m *ReceiptExecAccountTransfer) Reset() { *m = ReceiptExecAccountTr
func
(
m
*
ReceiptExecAccountTransfer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptExecAccountTransfer
)
ProtoMessage
()
{}
func
(
*
ReceiptExecAccountTransfer
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8e28828dcb8d24f0
,
[]
int
{
1
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
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
(
dst
*
ReceiptExecAccountTransfer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptExecAccountTransfer
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptExecAccountTransfer
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptExecAccountTransfer
.
Size
(
m
)
...
...
@@ -148,11 +143,11 @@ func (m *ReceiptExecAccountTransfer) GetCurrent() *Account {
return
nil
}
//账户余额改变的一个交易回报(coins内)
//
账户余额改变的一个交易回报(coins内)
type
ReceiptAccountTransfer
struct
{
//转移前
//
转移前
Prev
*
Account
`protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
//转移后
//
转移后
Current
*
Account
`protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -163,17 +158,16 @@ func (m *ReceiptAccountTransfer) Reset() { *m = ReceiptAccountTransfer{}
func
(
m
*
ReceiptAccountTransfer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptAccountTransfer
)
ProtoMessage
()
{}
func
(
*
ReceiptAccountTransfer
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8e28828dcb8d24f0
,
[]
int
{
2
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
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
(
dst
*
ReceiptAccountTransfer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptAccountTransfer
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptAccountTransfer
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptAccountTransfer
.
Size
(
m
)
...
...
@@ -198,11 +192,11 @@ func (m *ReceiptAccountTransfer) GetCurrent() *Account {
return
nil
}
//查询一个地址列表在某个执行器中余额
//
查询一个地址列表在某个执行器中余额
type
ReqBalance
struct
{
//地址列表
//
地址列表
Addresses
[]
string
`protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
//执行器名称
//
执行器名称
Execer
string
`protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
StateHash
string
`protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
AssetExec
string
`protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
...
...
@@ -216,17 +210,16 @@ func (m *ReqBalance) Reset() { *m = ReqBalance{} }
func
(
m
*
ReqBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqBalance
)
ProtoMessage
()
{}
func
(
*
ReqBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8e28828dcb8d24f0
,
[]
int
{
3
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
int
{
3
}
}
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
(
dst
*
ReqBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqBalance
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqBalance
.
Size
(
m
)
...
...
@@ -284,17 +277,16 @@ 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
{
4
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
int
{
4
}
}
func
(
m
*
Accounts
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Accounts
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
Accounts
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Accounts
.
Merge
(
dst
,
src
)
}
func
(
m
*
Accounts
)
XXX_Size
()
int
{
return
xxx_messageInfo_Accounts
.
Size
(
m
)
...
...
@@ -324,17 +316,16 @@ 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
{
5
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
int
{
5
}
}
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
(
dst
*
ExecAccount
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ExecAccount
.
Merge
(
dst
,
src
)
}
func
(
m
*
ExecAccount
)
XXX_Size
()
int
{
return
xxx_messageInfo_ExecAccount
.
Size
(
m
)
...
...
@@ -371,17 +362,16 @@ 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
{
6
}
return
fileDescriptor_
account_8068c89eb9a5d921
,
[]
int
{
6
}
}
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
(
dst
*
AllExecBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AllExecBalance
.
Merge
(
dst
,
src
)
}
func
(
m
*
AllExecBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_AllExecBalance
.
Size
(
m
)
...
...
@@ -416,9 +406,9 @@ func init() {
proto
.
RegisterType
((
*
AllExecBalance
)(
nil
),
"types.AllExecBalance"
)
}
func
init
()
{
proto
.
RegisterFile
(
"account.proto"
,
fileDescriptor_
8e28828dcb8d24f0
)
}
func
init
()
{
proto
.
RegisterFile
(
"account.proto"
,
fileDescriptor_
account_8068c89eb9a5d921
)
}
var
fileDescriptor_
8e28828dcb8d24f0
=
[]
byte
{
var
fileDescriptor_
account_8068c89eb9a5d921
=
[]
byte
{
// 399 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x8c
,
0x53
,
0xc1
,
0x8e
,
0xd3
,
0x30
,
0x10
,
0x95
,
0x9b
,
0x76
,
0xb3
,
0x99
,
0xc2
,
0x1e
,
0x7c
,
0x58
,
0x59
,
0x2b
,
0x56
,
0x84
,
0x9c
,
0x72
,
...
...
vendor/github.com/33cn/chain33/types/blockchain.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: blockchain.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -21,7 +18,7 @@ var _ = math.Inf
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
//区块头信息
//
区块头信息
// version : 版本信息
// parentHash :父哈希
// txHash : 交易根哈希
...
...
@@ -51,17 +48,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
Header
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Header
.
Merge
(
dst
,
src
)
}
func
(
m
*
Header
)
XXX_Size
()
int
{
return
xxx_messageInfo_Header
.
Size
(
m
)
...
...
@@ -153,6 +149,7 @@ type Block struct {
BlockTime
int64
`protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
Difficulty
uint32
`protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
MainHash
[]
byte
`protobuf:"bytes,12,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight
int64
`protobuf:"varint,13,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
Signature
*
Signature
`protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
Txs
[]
*
Transaction
`protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
...
...
@@ -164,17 +161,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
Block
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Block
.
Merge
(
dst
,
src
)
}
func
(
m
*
Block
)
XXX_Size
()
int
{
return
xxx_messageInfo_Block
.
Size
(
m
)
...
...
@@ -241,6 +237,13 @@ func (m *Block) GetMainHash() []byte {
return
nil
}
func
(
m
*
Block
)
GetMainHeight
()
int64
{
if
m
!=
nil
{
return
m
.
MainHeight
}
return
0
}
func
(
m
*
Block
)
GetSignature
()
*
Signature
{
if
m
!=
nil
{
return
m
.
Signature
...
...
@@ -266,17 +269,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
Blocks
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Blocks
.
Merge
(
dst
,
src
)
}
func
(
m
*
Blocks
)
XXX_Size
()
int
{
return
xxx_messageInfo_Blocks
.
Size
(
m
)
...
...
@@ -307,17 +309,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
int
{
3
}
}
func
(
m
*
BlockSeqCB
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_BlockSeqCB
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
BlockSeqCB
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockSeqCB
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockSeqCB
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockSeqCB
.
Size
(
m
)
...
...
@@ -360,17 +361,16 @@ func (m *BlockSeqCBs) Reset() { *m = BlockSeqCBs{} }
func
(
m
*
BlockSeqCBs
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BlockSeqCBs
)
ProtoMessage
()
{}
func
(
*
BlockSeqCBs
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
4
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockSeqCBs
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockSeqCBs
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockSeqCBs
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockSeqCBs
.
Size
(
m
)
...
...
@@ -401,17 +401,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockSeq
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockSeq
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockSeq
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockSeq
.
Size
(
m
)
...
...
@@ -443,7 +442,7 @@ func (m *BlockSeq) GetDetail() *BlockDetail {
return
nil
}
//节点ID以及对应的Block
//
节点ID以及对应的Block
type
BlockPid
struct
{
Pid
string
`protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
Block
*
Block
`protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
...
...
@@ -456,17 +455,16 @@ func (m *BlockPid) Reset() { *m = BlockPid{} }
func
(
m
*
BlockPid
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BlockPid
)
ProtoMessage
()
{}
func
(
*
BlockPid
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
6
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockPid
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockPid
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockPid
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockPid
.
Size
(
m
)
...
...
@@ -503,17 +501,16 @@ func (m *BlockDetails) Reset() { *m = BlockDetails{} }
func
(
m
*
BlockDetails
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BlockDetails
)
ProtoMessage
()
{}
func
(
*
BlockDetails
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
7
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockDetails
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockDetails
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockDetails
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockDetails
.
Size
(
m
)
...
...
@@ -543,17 +540,16 @@ func (m *Headers) Reset() { *m = Headers{} }
func
(
m
*
Headers
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Headers
)
ProtoMessage
()
{}
func
(
*
Headers
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
8
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
Headers
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Headers
.
Merge
(
dst
,
src
)
}
func
(
m
*
Headers
)
XXX_Size
()
int
{
return
xxx_messageInfo_Headers
.
Size
(
m
)
...
...
@@ -583,17 +579,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
int
{
9
}
}
func
(
m
*
HeadersPid
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_HeadersPid
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
HeadersPid
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_HeadersPid
.
Merge
(
dst
,
src
)
}
func
(
m
*
HeadersPid
)
XXX_Size
()
int
{
return
xxx_messageInfo_HeadersPid
.
Size
(
m
)
...
...
@@ -618,7 +613,7 @@ func (m *HeadersPid) GetHeaders() *Headers {
return
nil
}
//区块视图
//
区块视图
// head : 区块头信息
// txCount :区块上交易个数
// txHashes : 区块上交易的哈希列表
...
...
@@ -635,17 +630,16 @@ func (m *BlockOverview) Reset() { *m = BlockOverview{} }
func
(
m
*
BlockOverview
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BlockOverview
)
ProtoMessage
()
{}
func
(
*
BlockOverview
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
10
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockOverview
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockOverview
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockOverview
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockOverview
.
Size
(
m
)
...
...
@@ -677,7 +671,7 @@ func (m *BlockOverview) GetTxHashes() [][]byte {
return
nil
}
//区块详细信息
//
区块详细信息
// block : 区块信息
// receipts :区块上所有交易的收据信息列表
type
BlockDetail
struct
{
...
...
@@ -694,17 +688,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockDetail
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockDetail
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockDetail
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockDetail
.
Size
(
m
)
...
...
@@ -754,17 +747,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
Receipts
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Receipts
.
Merge
(
dst
,
src
)
}
func
(
m
*
Receipts
)
XXX_Size
()
int
{
return
xxx_messageInfo_Receipts
.
Size
(
m
)
...
...
@@ -793,17 +785,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
PrivacyKV
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PrivacyKV
.
Merge
(
dst
,
src
)
}
func
(
m
*
PrivacyKV
)
XXX_Size
()
int
{
return
xxx_messageInfo_PrivacyKV
.
Size
(
m
)
...
...
@@ -835,17 +826,16 @@ func (m *PrivacyKVToken) Reset() { *m = PrivacyKVToken{} }
func
(
m
*
PrivacyKVToken
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PrivacyKVToken
)
ProtoMessage
()
{}
func
(
*
PrivacyKVToken
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
14
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
PrivacyKVToken
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PrivacyKVToken
.
Merge
(
dst
,
src
)
}
func
(
m
*
PrivacyKVToken
)
XXX_Size
()
int
{
return
xxx_messageInfo_PrivacyKVToken
.
Size
(
m
)
...
...
@@ -896,17 +886,16 @@ func (m *ReceiptsAndPrivacyKV) Reset() { *m = ReceiptsAndPrivacyKV{} }
func
(
m
*
ReceiptsAndPrivacyKV
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptsAndPrivacyKV
)
ProtoMessage
()
{}
func
(
*
ReceiptsAndPrivacyKV
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
15
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
ReceiptsAndPrivacyKV
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptsAndPrivacyKV
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptsAndPrivacyKV
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptsAndPrivacyKV
.
Size
(
m
)
...
...
@@ -942,17 +931,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
ReceiptCheckTxList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptCheckTxList
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptCheckTxList
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptCheckTxList
.
Size
(
m
)
...
...
@@ -970,7 +958,7 @@ func (m *ReceiptCheckTxList) GetErrs() []string {
return
nil
}
//区块链状态
//
区块链状态
// currentHeight : 区块最新高度
// mempoolSize :内存池大小
// msgQueueSize : 消息队列大小
...
...
@@ -987,17 +975,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
int
{
17
}
}
func
(
m
*
ChainStatus
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ChainStatus
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
ChainStatus
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ChainStatus
.
Merge
(
dst
,
src
)
}
func
(
m
*
ChainStatus
)
XXX_Size
()
int
{
return
xxx_messageInfo_ChainStatus
.
Size
(
m
)
...
...
@@ -1029,7 +1016,7 @@ func (m *ChainStatus) GetMsgQueueSize() int64 {
return
0
}
//获取区块信息
//
获取区块信息
// start : 获取区块的开始高度
// end :获取区块的结束高度
// Isdetail : 是否需要获取区块的详细信息
...
...
@@ -1048,17 +1035,16 @@ func (m *ReqBlocks) Reset() { *m = ReqBlocks{} }
func
(
m
*
ReqBlocks
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqBlocks
)
ProtoMessage
()
{}
func
(
*
ReqBlocks
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
18
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
ReqBlocks
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqBlocks
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqBlocks
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqBlocks
.
Size
(
m
)
...
...
@@ -1108,17 +1094,16 @@ func (m *MempoolSize) Reset() { *m = MempoolSize{} }
func
(
m
*
MempoolSize
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
MempoolSize
)
ProtoMessage
()
{}
func
(
*
MempoolSize
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
19
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
MempoolSize
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_MempoolSize
.
Merge
(
dst
,
src
)
}
func
(
m
*
MempoolSize
)
XXX_Size
()
int
{
return
xxx_messageInfo_MempoolSize
.
Size
(
m
)
...
...
@@ -1147,17 +1132,16 @@ func (m *ReplyBlockHeight) Reset() { *m = ReplyBlockHeight{} }
func
(
m
*
ReplyBlockHeight
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyBlockHeight
)
ProtoMessage
()
{}
func
(
*
ReplyBlockHeight
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
20
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
ReplyBlockHeight
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyBlockHeight
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyBlockHeight
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyBlockHeight
.
Size
(
m
)
...
...
@@ -1175,7 +1159,7 @@ func (m *ReplyBlockHeight) GetHeight() int64 {
return
0
}
//区块体信息
//
区块体信息
// txs : 区块上所有交易列表
// receipts :区块上所有交易的收据信息列表
type
BlockBody
struct
{
...
...
@@ -1190,17 +1174,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
int
{
21
}
}
func
(
m
*
BlockBody
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_BlockBody
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
BlockBody
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockBody
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockBody
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockBody
.
Size
(
m
)
...
...
@@ -1237,17 +1220,16 @@ func (m *IsCaughtUp) Reset() { *m = IsCaughtUp{} }
func
(
m
*
IsCaughtUp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
IsCaughtUp
)
ProtoMessage
()
{}
func
(
*
IsCaughtUp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
22
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
IsCaughtUp
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_IsCaughtUp
.
Merge
(
dst
,
src
)
}
func
(
m
*
IsCaughtUp
)
XXX_Size
()
int
{
return
xxx_messageInfo_IsCaughtUp
.
Size
(
m
)
...
...
@@ -1277,17 +1259,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
IsNtpClockSync
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_IsNtpClockSync
.
Merge
(
dst
,
src
)
}
func
(
m
*
IsNtpClockSync
)
XXX_Size
()
int
{
return
xxx_messageInfo_IsNtpClockSync
.
Size
(
m
)
...
...
@@ -1310,7 +1291,7 @@ type ChainExecutor struct {
FuncName
string
`protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
StateHash
[]
byte
`protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Param
[]
byte
`protobuf:"bytes,4,opt,name=param,proto3" json:"param,omitempty"`
//扩展字段,用于额外的用途
//
扩展字段,用于额外的用途
Extra
[]
byte
`protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -1321,17 +1302,16 @@ func (m *ChainExecutor) Reset() { *m = ChainExecutor{} }
func
(
m
*
ChainExecutor
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ChainExecutor
)
ProtoMessage
()
{}
func
(
*
ChainExecutor
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e9ac6287ce250c9a
,
[]
int
{
24
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
ChainExecutor
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ChainExecutor
.
Merge
(
dst
,
src
)
}
func
(
m
*
ChainExecutor
)
XXX_Size
()
int
{
return
xxx_messageInfo_ChainExecutor
.
Size
(
m
)
...
...
@@ -1390,17 +1370,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
BlockSequence
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockSequence
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockSequence
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockSequence
.
Size
(
m
)
...
...
@@ -1437,17 +1416,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
int
{
26
}
}
func
(
m
*
BlockSequences
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_BlockSequences
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
BlockSequences
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BlockSequences
.
Merge
(
dst
,
src
)
}
func
(
m
*
BlockSequences
)
XXX_Size
()
int
{
return
xxx_messageInfo_BlockSequences
.
Size
(
m
)
...
...
@@ -1465,7 +1443,7 @@ func (m *BlockSequences) GetItems() []*BlockSequence {
return
nil
}
//平行链区块详细信息
//
平行链区块详细信息
// blockdetail : 区块详细信息
// sequence :区块序列号
type
ParaChainBlockDetail
struct
{
...
...
@@ -1480,17 +1458,16 @@ 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
}
return
fileDescriptor_
blockchain_58f324deceed6ead
,
[]
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
(
dst
*
ParaChainBlockDetail
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ParaChainBlockDetail
.
Merge
(
dst
,
src
)
}
func
(
m
*
ParaChainBlockDetail
)
XXX_Size
()
int
{
return
xxx_messageInfo_ParaChainBlockDetail
.
Size
(
m
)
...
...
@@ -1546,78 +1523,79 @@ func init() {
proto
.
RegisterType
((
*
ParaChainBlockDetail
)(
nil
),
"types.ParaChainBlockDetail"
)
}
func
init
()
{
proto
.
RegisterFile
(
"blockchain.proto"
,
fileDescriptor_e9ac6287ce250c9a
)
}
var
fileDescriptor_e9ac6287ce250c9a
=
[]
byte
{
// 1112 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,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0x00
,
0xff
,
0xff
,
0xb8
,
0xed
,
0x1e
,
0x31
,
0x0c
,
0x0b
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"blockchain.proto"
,
fileDescriptor_blockchain_58f324deceed6ead
)
}
var
fileDescriptor_blockchain_58f324deceed6ead
=
[]
byte
{
// 1122 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xd4
,
0x56
,
0xdb
,
0x6e
,
0x1b
,
0x37
,
0x13
,
0xc6
,
0xea
,
0x64
,
0x69
,
0x74
,
0xf8
,
0x1d
,
0x42
,
0x7f
,
0x21
,
0x18
,
0x6d
,
0xa3
,
0xb0
,
0x41
,
0x2a
,
0xa4
,
0x81
,
0x02
,
0xd8
,
0x45
,
0x9a
,
0x8b
,
0x16
,
0x68
,
0x2d
,
0x17
,
0xb0
,
0xe3
,
0x34
,
0x75
,
0x69
,
0xc7
,
0x17
,
0xbd
,
0xa3
,
0x57
,
0xb4
,
0x97
,
0xb0
,
0xf6
,
0xe0
,
0x25
,
0x57
,
0x95
,
0xfa
,
0x0e
,
0x7d
,
0x91
,
0xa2
,
0xef
,
0xd4
,
0x57
,
0x29
,
0x38
,
0xe4
,
0x6a
,
0x77
,
0x55
,
0xbb
,
0x45
,
0x2e
,
0x7b
,
0x37
,
0xe7
,
0x6f
,
0x66
,
0x48
,
0xce
,
0x10
,
0x76
,
0xaf
,
0x16
,
0xb1
,
0x7f
,
0xeb
,
0x07
,
0x5c
,
0x46
,
0xd3
,
0x24
,
0x8d
,
0x75
,
0x4c
,
0x9a
,
0x7a
,
0x9d
,
0x08
,
0xb5
,
0xf7
,
0x48
,
0xa7
,
0x3c
,
0x52
,
0xdc
,
0xd7
,
0x32
,
0x76
,
0x9a
,
0xbd
,
0x9e
,
0x1f
,
0x87
,
0x61
,
0xce
,
0xd1
,
0x3f
,
0x6a
,
0xd0
,
0x3a
,
0x16
,
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,
0xb8
,
0xf2
,
0xca
,
0x66
,
0xa6
,
0x55
,
0xca
,
0x01
,
0xb8
,
0x1c
,
0x37
,
0xfc
,
0xe1
,
0xe3
,
0x9f
,
0x3f
,
0xb9
,
0x91
,
0x3a
,
0xc8
,
0xae
,
0xa6
,
0x7e
,
0x1c
,
0xbe
,
0x3c
,
0x38
,
0xf0
,
0xa3
,
0x97
,
0xf8
,
0x1f
,
0x3e
,
0x38
,
0x78
,
0x89
,
0x51
,
0xaf
,
0x5a
,
0xf8
,
0xe1
,
0x3d
,
0xf8
,
0x2b
,
0x00
,
0x00
,
0xff
,
0xff
,
0x40
,
0xe2
,
0x2e
,
0x78
,
0x2c
,
0x0b
,
0x00
,
0x00
,
}
vendor/github.com/33cn/chain33/types/common.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -33,17 +30,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
Reply
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Reply
.
Merge
(
dst
,
src
)
}
func
(
m
*
Reply
)
XXX_Size
()
int
{
return
xxx_messageInfo_Reply
.
Size
(
m
)
...
...
@@ -79,17 +75,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReqString
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqString
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqString
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqString
.
Size
(
m
)
...
...
@@ -118,17 +113,16 @@ func (m *ReplyString) Reset() { *m = ReplyString{} }
func
(
m
*
ReplyString
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyString
)
ProtoMessage
()
{}
func
(
*
ReplyString
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
2
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReplyString
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyString
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyString
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyString
.
Size
(
m
)
...
...
@@ -157,17 +151,16 @@ func (m *ReplyStrings) Reset() { *m = ReplyStrings{} }
func
(
m
*
ReplyStrings
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyStrings
)
ProtoMessage
()
{}
func
(
*
ReplyStrings
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
3
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReplyStrings
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyStrings
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyStrings
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyStrings
.
Size
(
m
)
...
...
@@ -196,17 +189,16 @@ func (m *ReqInt) Reset() { *m = ReqInt{} }
func
(
m
*
ReqInt
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqInt
)
ProtoMessage
()
{}
func
(
*
ReqInt
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
4
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReqInt
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqInt
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqInt
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqInt
.
Size
(
m
)
...
...
@@ -235,17 +227,16 @@ func (m *Int64) Reset() { *m = Int64{} }
func
(
m
*
Int64
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Int64
)
ProtoMessage
()
{}
func
(
*
Int64
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
5
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
Int64
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Int64
.
Merge
(
dst
,
src
)
}
func
(
m
*
Int64
)
XXX_Size
()
int
{
return
xxx_messageInfo_Int64
.
Size
(
m
)
...
...
@@ -274,17 +265,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
int
{
6
}
}
func
(
m
*
ReqHash
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqHash
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
ReqHash
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqHash
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqHash
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqHash
.
Size
(
m
)
...
...
@@ -313,17 +303,16 @@ func (m *ReplyHash) Reset() { *m = ReplyHash{} }
func
(
m
*
ReplyHash
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyHash
)
ProtoMessage
()
{}
func
(
*
ReplyHash
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
7
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReplyHash
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyHash
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyHash
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyHash
.
Size
(
m
)
...
...
@@ -351,17 +340,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReqNil
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqNil
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqNil
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqNil
.
Size
(
m
)
...
...
@@ -383,17 +371,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReqHashes
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqHashes
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqHashes
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqHashes
.
Size
(
m
)
...
...
@@ -422,17 +409,16 @@ func (m *ReplyHashes) Reset() { *m = ReplyHashes{} }
func
(
m
*
ReplyHashes
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyHashes
)
ProtoMessage
()
{}
func
(
*
ReplyHashes
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
10
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReplyHashes
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyHashes
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyHashes
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyHashes
.
Size
(
m
)
...
...
@@ -462,17 +448,16 @@ func (m *KeyValue) Reset() { *m = KeyValue{} }
func
(
m
*
KeyValue
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
KeyValue
)
ProtoMessage
()
{}
func
(
*
KeyValue
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
11
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
KeyValue
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_KeyValue
.
Merge
(
dst
,
src
)
}
func
(
m
*
KeyValue
)
XXX_Size
()
int
{
return
xxx_messageInfo_KeyValue
.
Size
(
m
)
...
...
@@ -508,17 +493,16 @@ func (m *TxHash) Reset() { *m = TxHash{} }
func
(
m
*
TxHash
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TxHash
)
ProtoMessage
()
{}
func
(
*
TxHash
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
12
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
TxHash
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TxHash
.
Merge
(
dst
,
src
)
}
func
(
m
*
TxHash
)
XXX_Size
()
int
{
return
xxx_messageInfo_TxHash
.
Size
(
m
)
...
...
@@ -549,17 +533,16 @@ func (m *TimeStatus) Reset() { *m = TimeStatus{} }
func
(
m
*
TimeStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TimeStatus
)
ProtoMessage
()
{}
func
(
*
TimeStatus
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
555bd8c177793206
,
[]
int
{
13
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
TimeStatus
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TimeStatus
.
Merge
(
dst
,
src
)
}
func
(
m
*
TimeStatus
)
XXX_Size
()
int
{
return
xxx_messageInfo_TimeStatus
.
Size
(
m
)
...
...
@@ -602,17 +585,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReqKey
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqKey
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqKey
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqKey
.
Size
(
m
)
...
...
@@ -644,17 +626,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
ReqRandHash
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqRandHash
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqRandHash
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqRandHash
.
Size
(
m
)
...
...
@@ -693,8 +674,8 @@ func (m *ReqRandHash) GetHash() []byte {
return
nil
}
//*
//当前软件版本信息
//
*
//
当前软件版本信息
type
VersionInfo
struct
{
Title
string
`protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
App
string
`protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
...
...
@@ -709,17 +690,16 @@ 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
}
return
fileDescriptor_
common_0ccc312f525edd6a
,
[]
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
(
dst
*
VersionInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VersionInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
VersionInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_VersionInfo
.
Size
(
m
)
...
...
@@ -778,9 +758,9 @@ func init() {
proto
.
RegisterType
((
*
VersionInfo
)(
nil
),
"types.VersionInfo"
)
}
func
init
()
{
proto
.
RegisterFile
(
"common.proto"
,
fileDescriptor_
555bd8c177793206
)
}
func
init
()
{
proto
.
RegisterFile
(
"common.proto"
,
fileDescriptor_
common_0ccc312f525edd6a
)
}
var
fileDescriptor_
555bd8c177793206
=
[]
byte
{
var
fileDescriptor_
common_0ccc312f525edd6a
=
[]
byte
{
// 445 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x84
,
0x53
,
0x51
,
0x6b
,
0xdb
,
0x30
,
0x10
,
0x26
,
0x71
,
0x93
,
0xc6
,
0x57
,
0x3f
,
0x0c
,
0x33
,
0x86
,
0xe9
,
0x5a
,
0x9a
,
0x69
,
0x1b
,
0xe4
,
...
...
vendor/github.com/33cn/chain33/types/db.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: db.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -36,17 +33,16 @@ 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_
8817812184a1337
4
,
[]
int
{
0
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
LeafNode
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LeafNode
.
Merge
(
dst
,
src
)
}
func
(
m
*
LeafNode
)
XXX_Size
()
int
{
return
xxx_messageInfo_LeafNode
.
Size
(
m
)
...
...
@@ -99,17 +95,16 @@ 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_
8817812184a1337
4
,
[]
int
{
1
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
InnerNode
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_InnerNode
.
Merge
(
dst
,
src
)
}
func
(
m
*
InnerNode
)
XXX_Size
()
int
{
return
xxx_messageInfo_InnerNode
.
Size
(
m
)
...
...
@@ -161,17 +156,16 @@ func (m *MAVLProof) Reset() { *m = MAVLProof{} }
func
(
m
*
MAVLProof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
MAVLProof
)
ProtoMessage
()
{}
func
(
*
MAVLProof
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8817812184a1337
4
,
[]
int
{
2
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
MAVLProof
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_MAVLProof
.
Merge
(
dst
,
src
)
}
func
(
m
*
MAVLProof
)
XXX_Size
()
int
{
return
xxx_messageInfo_MAVLProof
.
Size
(
m
)
...
...
@@ -219,17 +213,16 @@ func (m *StoreNode) Reset() { *m = StoreNode{} }
func
(
m
*
StoreNode
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StoreNode
)
ProtoMessage
()
{}
func
(
*
StoreNode
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8817812184a1337
4
,
[]
int
{
3
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreNode
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreNode
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreNode
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreNode
.
Size
(
m
)
...
...
@@ -293,17 +286,16 @@ 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_
8817812184a1337
4
,
[]
int
{
4
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
int
{
4
}
}
func
(
m
*
LocalDBSet
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LocalDBSet
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
LocalDBSet
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalDBSet
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalDBSet
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalDBSet
.
Size
(
m
)
...
...
@@ -335,17 +327,16 @@ 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_
8817812184a1337
4
,
[]
int
{
5
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
int
{
5
}
}
func
(
m
*
LocalDBList
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LocalDBList
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
LocalDBList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalDBList
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalDBList
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalDBList
.
Size
(
m
)
...
...
@@ -395,17 +386,16 @@ func (m *LocalDBGet) Reset() { *m = LocalDBGet{} }
func
(
m
*
LocalDBGet
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalDBGet
)
ProtoMessage
()
{}
func
(
*
LocalDBGet
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8817812184a1337
4
,
[]
int
{
6
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
LocalDBGet
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalDBGet
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalDBGet
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalDBGet
.
Size
(
m
)
...
...
@@ -434,17 +424,16 @@ func (m *LocalReplyValue) Reset() { *m = LocalReplyValue{} }
func
(
m
*
LocalReplyValue
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalReplyValue
)
ProtoMessage
()
{}
func
(
*
LocalReplyValue
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8817812184a1337
4
,
[]
int
{
7
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
LocalReplyValue
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalReplyValue
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalReplyValue
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalReplyValue
.
Size
(
m
)
...
...
@@ -475,17 +464,16 @@ 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_
8817812184a1337
4
,
[]
int
{
8
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreSet
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreSet
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreSet
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreSet
.
Size
(
m
)
...
...
@@ -529,17 +517,16 @@ 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_
8817812184a1337
4
,
[]
int
{
9
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreDel
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreDel
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreDel
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreDel
.
Size
(
m
)
...
...
@@ -576,17 +563,16 @@ func (m *StoreSetWithSync) Reset() { *m = StoreSetWithSync{} }
func
(
m
*
StoreSetWithSync
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StoreSetWithSync
)
ProtoMessage
()
{}
func
(
*
StoreSetWithSync
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8817812184a1337
4
,
[]
int
{
10
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreSetWithSync
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreSetWithSync
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreSetWithSync
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreSetWithSync
.
Size
(
m
)
...
...
@@ -623,17 +609,16 @@ func (m *StoreGet) Reset() { *m = StoreGet{} }
func
(
m
*
StoreGet
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StoreGet
)
ProtoMessage
()
{}
func
(
*
StoreGet
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
8817812184a1337
4
,
[]
int
{
11
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreGet
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreGet
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreGet
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreGet
.
Size
(
m
)
...
...
@@ -669,17 +654,16 @@ 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_
8817812184a1337
4
,
[]
int
{
12
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreReplyValue
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreReplyValue
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreReplyValue
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreReplyValue
.
Size
(
m
)
...
...
@@ -713,17 +697,16 @@ 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_
8817812184a1337
4
,
[]
int
{
13
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreList
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreList
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreList
.
Size
(
m
)
...
...
@@ -795,17 +778,16 @@ 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_
8817812184a1337
4
,
[]
int
{
14
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreListReply
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreListReply
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreListReply
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreListReply
.
Size
(
m
)
...
...
@@ -891,17 +873,16 @@ 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_
8817812184a1337
4
,
[]
int
{
15
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
PruneData
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PruneData
.
Merge
(
dst
,
src
)
}
func
(
m
*
PruneData
)
XXX_Size
()
int
{
return
xxx_messageInfo_PruneData
.
Size
(
m
)
...
...
@@ -919,7 +900,7 @@ func (m *PruneData) GetHashs() [][]byte {
return
nil
}
//用于存储db Pool数据的Value
//
用于存储db Pool数据的Value
type
StoreValuePool
struct
{
Values
[][]
byte
`protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
...
...
@@ -931,17 +912,16 @@ 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_
8817812184a1337
4
,
[]
int
{
16
}
return
fileDescriptor_
db_caba95e52f56b39
4
,
[]
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
(
dst
*
StoreValuePool
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StoreValuePool
.
Merge
(
dst
,
src
)
}
func
(
m
*
StoreValuePool
)
XXX_Size
()
int
{
return
xxx_messageInfo_StoreValuePool
.
Size
(
m
)
...
...
@@ -979,9 +959,9 @@ func init() {
proto
.
RegisterType
((
*
StoreValuePool
)(
nil
),
"types.StoreValuePool"
)
}
func
init
()
{
proto
.
RegisterFile
(
"db.proto"
,
fileDescriptor_
8817812184a1337
4
)
}
func
init
()
{
proto
.
RegisterFile
(
"db.proto"
,
fileDescriptor_
db_caba95e52f56b39
4
)
}
var
fileDescriptor_
8817812184a1337
4
=
[]
byte
{
var
fileDescriptor_
db_caba95e52f56b39
4
=
[]
byte
{
// 625 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x55
,
0x4d
,
0x6b
,
0xdb
,
0x40
,
0x10
,
0x45
,
0x92
,
0x9d
,
0x48
,
0x93
,
0xd0
,
0x18
,
0x11
,
0x8a
,
0x08
,
0x29
,
0x71
,
0x75
,
0x72
,
0x29
,
...
...
vendor/github.com/33cn/chain33/types/executor.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: executor.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -32,17 +29,16 @@ func (m *Genesis) Reset() { *m = Genesis{} }
func
(
m
*
Genesis
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Genesis
)
ProtoMessage
()
{}
func
(
*
Genesis
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
12d1cdcda51e000f
,
[]
int
{
0
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
Genesis
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Genesis
.
Merge
(
dst
,
src
)
}
func
(
m
*
Genesis
)
XXX_Size
()
int
{
return
xxx_messageInfo_Genesis
.
Size
(
m
)
...
...
@@ -64,11 +60,12 @@ type ExecTxList struct {
StateHash
[]
byte
`protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
ParentHash
[]
byte
`protobuf:"bytes,7,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
MainHash
[]
byte
`protobuf:"bytes,8,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
Txs
[]
*
Transaction
`protobuf:"bytes,2,rep,name=txs,proto3" json:"txs
,omitempty"`
MainHeight
int64
`protobuf:"varint,9,opt,name=mainHeight,proto3" json:"mainHeight
,omitempty"`
BlockTime
int64
`protobuf:"varint,3,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
Height
int64
`protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Difficulty
uint64
`protobuf:"varint,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
IsMempool
bool
`protobuf:"varint,6,opt,name=isMempool,proto3" json:"isMempool,omitempty"`
Txs
[]
*
Transaction
`protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -78,17 +75,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
ExecTxList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ExecTxList
.
Merge
(
dst
,
src
)
}
func
(
m
*
ExecTxList
)
XXX_Size
()
int
{
return
xxx_messageInfo_ExecTxList
.
Size
(
m
)
...
...
@@ -120,11 +116,11 @@ func (m *ExecTxList) GetMainHash() []byte {
return
nil
}
func
(
m
*
ExecTxList
)
Get
Txs
()
[]
*
Transaction
{
func
(
m
*
ExecTxList
)
Get
MainHeight
()
int64
{
if
m
!=
nil
{
return
m
.
Txs
return
m
.
MainHeight
}
return
nil
return
0
}
func
(
m
*
ExecTxList
)
GetBlockTime
()
int64
{
...
...
@@ -155,6 +151,13 @@ func (m *ExecTxList) GetIsMempool() bool {
return
false
}
func
(
m
*
ExecTxList
)
GetTxs
()
[]
*
Transaction
{
if
m
!=
nil
{
return
m
.
Txs
}
return
nil
}
type
Query
struct
{
Execer
[]
byte
`protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
FuncName
string
`protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
...
...
@@ -168,17 +171,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
Query
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Query
.
Merge
(
dst
,
src
)
}
func
(
m
*
Query
)
XXX_Size
()
int
{
return
xxx_messageInfo_Query
.
Size
(
m
)
...
...
@@ -223,17 +225,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
CreateTxIn
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CreateTxIn
.
Merge
(
dst
,
src
)
}
func
(
m
*
CreateTxIn
)
XXX_Size
()
int
{
return
xxx_messageInfo_CreateTxIn
.
Size
(
m
)
...
...
@@ -277,17 +278,16 @@ func (m *ArrayConfig) Reset() { *m = ArrayConfig{} }
func
(
m
*
ArrayConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ArrayConfig
)
ProtoMessage
()
{}
func
(
*
ArrayConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
12d1cdcda51e000f
,
[]
int
{
4
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
ArrayConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ArrayConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
ArrayConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_ArrayConfig
.
Size
(
m
)
...
...
@@ -316,17 +316,16 @@ func (m *StringConfig) Reset() { *m = StringConfig{} }
func
(
m
*
StringConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StringConfig
)
ProtoMessage
()
{}
func
(
*
StringConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
12d1cdcda51e000f
,
[]
int
{
5
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
StringConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StringConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
StringConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_StringConfig
.
Size
(
m
)
...
...
@@ -355,17 +354,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
Int32Config
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Int32Config
.
Merge
(
dst
,
src
)
}
func
(
m
*
Int32Config
)
XXX_Size
()
int
{
return
xxx_messageInfo_Int32Config
.
Size
(
m
)
...
...
@@ -401,17 +399,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
ConfigItem
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ConfigItem
.
Merge
(
dst
,
src
)
}
func
(
m
*
ConfigItem
)
XXX_Size
()
int
{
return
xxx_messageInfo_ConfigItem
.
Size
(
m
)
...
...
@@ -600,17 +597,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
ModifyConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ModifyConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
ModifyConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_ModifyConfig
.
Size
(
m
)
...
...
@@ -661,17 +657,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
ReceiptConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptConfig
.
Size
(
m
)
...
...
@@ -708,17 +703,16 @@ func (m *ReplyConfig) Reset() { *m = ReplyConfig{} }
func
(
m
*
ReplyConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyConfig
)
ProtoMessage
()
{}
func
(
*
ReplyConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
12d1cdcda51e000f
,
[]
int
{
10
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
ReplyConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyConfig
.
Size
(
m
)
...
...
@@ -758,17 +752,16 @@ 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
}
return
fileDescriptor_
executor_f327a0ce98880449
,
[]
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
(
dst
*
HistoryCertStore
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_HistoryCertStore
.
Merge
(
dst
,
src
)
}
func
(
m
*
HistoryCertStore
)
XXX_Size
()
int
{
return
xxx_messageInfo_HistoryCertStore
.
Size
(
m
)
...
...
@@ -829,49 +822,50 @@ func init() {
proto
.
RegisterType
((
*
HistoryCertStore
)(
nil
),
"types.HistoryCertStore"
)
}
func
init
()
{
proto
.
RegisterFile
(
"executor.proto"
,
fileDescriptor_12d1cdcda51e000f
)
}
var
fileDescriptor_12d1cdcda51e000f
=
[]
byte
{
// 653 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x54
,
0x61
,
0x6b
,
0x13
,
0x41
,
0x10
,
0xf5
,
0xee
,
0x92
,
0xa6
,
0x99
,
0xc4
,
0xd2
,
0xae
,
0x22
,
0x47
,
0xd1
,
0x36
,
0x5c
,
0x6b
,
0x0d
,
0x28
,
0x29
,
0x24
,
0xf8
,
0x03
,
0x6c
,
0x10
,
0x53
,
0xb0
,
0x82
,
0xd7
,
0xf8
,
0xa5
,
0x1f
,
0x84
,
0xed
,
0x66
,
0x92
,
0x2c
,
0x4d
,
0x76
,
0x8f
,
0xbd
,
0xb9
,
0x92
,
0xfb
,
0xe6
,
0x6f
,
0x13
,
0x7f
,
0x98
,
0xec
,
0xe6
,
0x92
,
0x3b
,
0x6c
,
0x15
,
0xfc
,
0x76
,
0xf3
,
0xde
,
0xe3
,
0xed
,
0xbc
,
0xd9
,
0x9b
,
0x85
,
0x3d
,
0x5c
,
0xa1
,
0xc8
,
0x48
,
0x9b
,
0x5e
,
0x62
,
0x34
,
0x69
,
0x56
,
0xa7
,
0x3c
,
0xc1
,
0xf4
,
0xf0
,
0x80
,
0x0c
,
0x57
,
0x29
,
0x17
,
0x24
,
0xb5
,
0x5a
,
0x33
,
0xd1
,
0x31
,
0x34
,
0x3e
,
0xa1
,
0xc2
,
0x54
,
0xa6
,
0xec
,
0x39
,
0xd4
,
0x65
,
0x6a
,
0x32
,
0x15
,
0x7a
,
0x1d
,
0xaf
,
0xbb
,
0x1b
,
0xaf
,
0x8b
,
0xe8
,
0x87
,
0x0f
,
0xf0
,
0x71
,
0x85
,
0x62
,
0xbc
,
0xfa
,
0x2c
,
0x53
,
0x62
,
0x2f
,
0xa1
,
0x99
,
0x12
,
0x27
,
0x1c
,
0xf1
,
0x74
,
0x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
0xcf
,
0x6e
,
0x7b
,
0x42
,
0x2f
,
0xcf
,
0x07
,
0x03
,
0xa1
,
0xce
,
0xc5
,
0x9c
,
0x4b
,
0x35
,
0x18
,
0x9c
,
0xbb
,
0x81
,
0xdd
,
0xee
,
0xb8
,
0x67
,
0x6f
,
0xf0
,
0x3b
,
0x00
,
0x00
,
0xff
,
0xff
,
0xd4
,
0xce
,
0x6b
,
0x62
,
0x22
,
0x05
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"executor.proto"
,
fileDescriptor_executor_f327a0ce98880449
)
}
var
fileDescriptor_executor_f327a0ce98880449
=
[]
byte
{
// 665 bytes of a gzipped FileDescriptorProto
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
,
0x53
,
0x43
,
0x8b
,
0x03
,
0x36
,
0x7d
,
0x80
,
0xc6
,
0x94
,
0x26
,
0xd0
,
0x14
,
0xaa
,
0xb8
,
0x7f
,
0xf2
,
0xa3
,
0xb0
,
0x59
,
0x8f
,
0xed
,
0x25
,
0xf6
,
0xae
,
0x58
,
0x8d
,
0x82
,
0xf5
,
0x36
,
0x7d
,
0x96
,
0xd2
,
0x07
,
0x2b
,
0xbb
,
0x92
,
0x2d
,
0xd1
,
0xa4
,
0x85
,
0xfe
,
0xd3
,
0x9c
,
0x73
,
0x74
,
0x76
,
0xce
,
0xec
,
0x07
,
0xec
,
0xe1
,
0x1a
,
0x45
,
0x46
,
0xda
,
0x0c
,
0x12
,
0xa3
,
0x49
,
0xb3
,
0x26
,
0xe5
,
0x09
,
0xa6
,
0x87
,
0x07
,
0x64
,
0xb8
,
0x4a
,
0xb9
,
0x20
,
0xa9
,
0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2b
,
0x9c
,
0x4a
,
0x4e
,
0x38
,
0x76
,
0x2a
,
0xdf
,
0xa9
,
0x1e
,
0x13
,
0xec
,
0x0c
,
0xf6
,
0x0c
,
0x3e
,
0x68
,
0xc1
,
0xed
,
0xd9
,
0xb5
,
0x8f
,
0x8d
,
0x3b
,
0x89
,
0xdd
,
0xf8
,
0x17
,
0xd4
,
0xae
,
0x29
,
0x32
,
0x63
,
0x5f
,
0x05
,
0x5a
,
0x94
,
0xb7
,
0xbd
,
0x02
,
0x2c
,
0xab
,
0xd6
,
0x54
,
0xbe
,
0x22
,
0xcd
,
0x82
,
0xdd
,
0x02
,
0x17
,
0xc7
,
0xb7
,
0x2f
,
0xe6
,
0x92
,
0x16
,
0xd9
,
0xdd
,
0x40
,
0xe8
,
0xd5
,
0xf9
,
0x68
,
0x24
,
0xd4
,
0xb9
,
0x58
,
0x70
,
0xa9
,
0x46
,
0xa3
,
0x73
,
0x37
,
0xb0
,
0xbb
,
0x1d
,
0xf7
,
0x2c
,
0x8e
,
0x7e
,
0x06
,
0x00
,
0x00
,
0xff
,
0xff
,
0x22
,
0x46
,
0xb1
,
0x62
,
0x42
,
0x05
,
0x00
,
0x00
,
}
vendor/github.com/33cn/chain33/types/p2p.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: p2p.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
context
"context"
fmt
"fmt"
math
"math"
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
proto
"github.com/golang/protobuf/proto"
import
(
context
"golang.org/x/net/context"
grpc
"google.golang.org/grpc"
)
...
...
@@ -23,10 +23,10 @@ var _ = math.Inf
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
//*
//
*
// 请求获取远程节点的节点信息
type
P2PGetPeerInfo
struct
{
/// p2p版本
//
/ p2p版本
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -37,17 +37,16 @@ func (m *P2PGetPeerInfo) Reset() { *m = P2PGetPeerInfo{} }
func
(
m
*
P2PGetPeerInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PGetPeerInfo
)
ProtoMessage
()
{}
func
(
*
P2PGetPeerInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
0
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PGetPeerInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PGetPeerInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PGetPeerInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PGetPeerInfo
.
Size
(
m
)
...
...
@@ -65,18 +64,18 @@ func (m *P2PGetPeerInfo) GetVersion() int32 {
return
0
}
//*
//
*
// 节点信息
type
P2PPeerInfo
struct
{
///节点的IP地址
//
/节点的IP地址
Addr
string
`protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
///节点的外网端口
//
/节点的外网端口
Port
int32
`protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
///节点的名称
//
/节点的名称
Name
string
`protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
/// mempool 的大小
//
/ mempool 的大小
MempoolSize
int32
`protobuf:"varint,4,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
///节点当前高度头部数据
//
/节点当前高度头部数据
Header
*
Header
`protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -87,17 +86,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PPeerInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PPeerInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PPeerInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PPeerInfo
.
Size
(
m
)
...
...
@@ -143,24 +141,24 @@ func (m *P2PPeerInfo) GetHeader() *Header {
return
nil
}
//*
//
*
// p2p节点间发送版本数据结构
type
P2PVersion
struct
{
///当前版本
//
/当前版本
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
///服务类型
//
/服务类型
Service
int64
`protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
///时间戳
//
/时间戳
Timestamp
int64
`protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
///数据包的目的地址
//
/数据包的目的地址
AddrRecv
string
`protobuf:"bytes,4,opt,name=addrRecv,proto3" json:"addrRecv,omitempty"`
///数据发送的源地址
//
/数据发送的源地址
AddrFrom
string
`protobuf:"bytes,5,opt,name=addrFrom,proto3" json:"addrFrom,omitempty"`
///随机数
//
/随机数
Nonce
int64
`protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
///用户代理
//
/用户代理
UserAgent
string
`protobuf:"bytes,7,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
///当前节点的高度
//
/当前节点的高度
StartHeight
int64
`protobuf:"varint,8,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -171,17 +169,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PVersion
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PVersion
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PVersion
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PVersion
.
Size
(
m
)
...
...
@@ -248,7 +245,7 @@ func (m *P2PVersion) GetStartHeight() int64 {
return
0
}
//*
//
*
// P2P 版本返回
type
P2PVerAck
struct
{
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
...
...
@@ -263,17 +260,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PVerAck
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PVerAck
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PVerAck
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PVerAck
.
Size
(
m
)
...
...
@@ -305,16 +301,16 @@ func (m *P2PVerAck) GetNonce() int64 {
return
0
}
//*
//
*
// P2P 心跳包
type
P2PPing
struct
{
///随机数
//
/随机数
Nonce
int64
`protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
///节点的外网地址
//
/节点的外网地址
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
///节点的外网端口
//
/节点的外网端口
Port
int32
`protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
//签名
//
签名
Sign
*
Signature
`protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -325,17 +321,16 @@ func (m *P2PPing) Reset() { *m = P2PPing{} }
func
(
m
*
P2PPing
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PPing
)
ProtoMessage
()
{}
func
(
*
P2PPing
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
4
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PPing
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PPing
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PPing
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PPing
.
Size
(
m
)
...
...
@@ -374,7 +369,7 @@ func (m *P2PPing) GetSign() *Signature {
return
nil
}
//*
//
*
// 心跳返回包
type
P2PPong
struct
{
Nonce
int64
`protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
...
...
@@ -387,17 +382,16 @@ func (m *P2PPong) Reset() { *m = P2PPong{} }
func
(
m
*
P2PPong
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PPong
)
ProtoMessage
()
{}
func
(
*
P2PPong
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
5
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PPong
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PPong
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PPong
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PPong
.
Size
(
m
)
...
...
@@ -415,7 +409,7 @@ func (m *P2PPong) GetNonce() int64 {
return
0
}
//*
//
*
// 获取对方节点所连接的其他节点地址的请求包
type
P2PGetAddr
struct
{
Nonce
int64
`protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
...
...
@@ -428,17 +422,16 @@ func (m *P2PGetAddr) Reset() { *m = P2PGetAddr{} }
func
(
m
*
P2PGetAddr
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PGetAddr
)
ProtoMessage
()
{}
func
(
*
P2PGetAddr
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
6
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PGetAddr
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PGetAddr
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PGetAddr
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PGetAddr
.
Size
(
m
)
...
...
@@ -456,11 +449,11 @@ func (m *P2PGetAddr) GetNonce() int64 {
return
0
}
//*
//
*
// 返回请求地址列表的社保
type
P2PAddr
struct
{
Nonce
int64
`protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
///对方节点返回的其他节点信息
//
/对方节点返回的其他节点信息
Addrlist
[]
string
`protobuf:"bytes,2,rep,name=addrlist,proto3" json:"addrlist,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -471,17 +464,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PAddr
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PAddr
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PAddr
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PAddr
.
Size
(
m
)
...
...
@@ -518,17 +510,16 @@ func (m *P2PAddrList) Reset() { *m = P2PAddrList{} }
func
(
m
*
P2PAddrList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PAddrList
)
ProtoMessage
()
{}
func
(
*
P2PAddrList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
8
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PAddrList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PAddrList
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PAddrList
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PAddrList
.
Size
(
m
)
...
...
@@ -553,12 +544,12 @@ func (m *P2PAddrList) GetPeerinfo() []*P2PPeerInfo {
return
nil
}
//*
//
*
// 节点外网信息
type
P2PExternalInfo
struct
{
///节点的外网地址
//
/节点的外网地址
Addr
string
`protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//节点是否在外网
//
节点是否在外网
Isoutside
bool
`protobuf:"varint,2,opt,name=isoutside,proto3" json:"isoutside,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -569,17 +560,16 @@ func (m *P2PExternalInfo) Reset() { *m = P2PExternalInfo{} }
func
(
m
*
P2PExternalInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PExternalInfo
)
ProtoMessage
()
{}
func
(
*
P2PExternalInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
9
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PExternalInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PExternalInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PExternalInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PExternalInfo
.
Size
(
m
)
...
...
@@ -604,7 +594,7 @@ func (m *P2PExternalInfo) GetIsoutside() bool {
return
false
}
//*
//
*
// 获取区间区块
type
P2PGetBlocks
struct
{
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
...
...
@@ -619,17 +609,16 @@ func (m *P2PGetBlocks) Reset() { *m = P2PGetBlocks{} }
func
(
m
*
P2PGetBlocks
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PGetBlocks
)
ProtoMessage
()
{}
func
(
*
P2PGetBlocks
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
10
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PGetBlocks
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PGetBlocks
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PGetBlocks
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PGetBlocks
.
Size
(
m
)
...
...
@@ -661,7 +650,7 @@ func (m *P2PGetBlocks) GetEndHeight() int64 {
return
0
}
//*
//
*
// 获取mempool
type
P2PGetMempool
struct
{
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
...
...
@@ -674,17 +663,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PGetMempool
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PGetMempool
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PGetMempool
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PGetMempool
.
Size
(
m
)
...
...
@@ -713,17 +701,16 @@ func (m *P2PInv) Reset() { *m = P2PInv{} }
func
(
m
*
P2PInv
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PInv
)
ProtoMessage
()
{}
func
(
*
P2PInv
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
12
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PInv
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PInv
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PInv
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PInv
.
Size
(
m
)
...
...
@@ -743,11 +730,11 @@ func (m *P2PInv) GetInvs() []*Inventory {
// ty=MSG_TX MSG_BLOCK
type
Inventory
struct
{
//类型,数据类型,MSG_TX MSG_BLOCK
//
类型,数据类型,MSG_TX MSG_BLOCK
Ty
int32
`protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
///哈希
//
/哈希
Hash
[]
byte
`protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
//高度
//
高度
Height
int64
`protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -758,17 +745,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
Inventory
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Inventory
.
Merge
(
dst
,
src
)
}
func
(
m
*
Inventory
)
XXX_Size
()
int
{
return
xxx_messageInfo_Inventory
.
Size
(
m
)
...
...
@@ -800,12 +786,12 @@ func (m *Inventory) GetHeight() int64 {
return
0
}
//*
//
*
// 通过invs 下载数据
type
P2PGetData
struct
{
/// p2p版本
//
/ p2p版本
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
/// invs 数组
//
/ invs 数组
Invs
[]
*
Inventory
`protobuf:"bytes,2,rep,name=invs,proto3" json:"invs,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -816,17 +802,16 @@ func (m *P2PGetData) Reset() { *m = P2PGetData{} }
func
(
m
*
P2PGetData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PGetData
)
ProtoMessage
()
{}
func
(
*
P2PGetData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
14
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PGetData
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PGetData
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PGetData
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PGetData
.
Size
(
m
)
...
...
@@ -851,7 +836,7 @@ func (m *P2PGetData) GetInvs() []*Inventory {
return
nil
}
//*
//
*
// p2p 发送交易协议
type
P2PTx
struct
{
Tx
*
Transaction
`protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
...
...
@@ -864,17 +849,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PTx
.
Size
(
m
)
...
...
@@ -892,7 +876,7 @@ func (m *P2PTx) GetTx() *Transaction {
return
nil
}
//*
//
*
// p2p 发送区块协议
type
P2PBlock
struct
{
Block
*
Block
`protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
...
...
@@ -905,17 +889,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PBlock
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PBlock
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PBlock
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PBlock
.
Size
(
m
)
...
...
@@ -933,7 +916,7 @@ func (m *P2PBlock) GetBlock() *Block {
return
nil
}
//*
//
*
// p2p 协议和软件版本
type
Versions
struct
{
P2Pversion
int32
`protobuf:"varint,1,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
...
...
@@ -948,17 +931,16 @@ func (m *Versions) Reset() { *m = Versions{} }
func
(
m
*
Versions
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Versions
)
ProtoMessage
()
{}
func
(
*
Versions
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
17
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
Versions
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Versions
.
Merge
(
dst
,
src
)
}
func
(
m
*
Versions
)
XXX_Size
()
int
{
return
xxx_messageInfo_Versions
.
Size
(
m
)
...
...
@@ -990,7 +972,7 @@ func (m *Versions) GetPeername() string {
return
""
}
//*
//
*
// p2p 广播数据协议
type
BroadCastData
struct
{
// Types that are valid to be assigned to Value:
...
...
@@ -1008,17 +990,16 @@ func (m *BroadCastData) Reset() { *m = BroadCastData{} }
func
(
m
*
BroadCastData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BroadCastData
)
ProtoMessage
()
{}
func
(
*
BroadCastData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
18
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
BroadCastData
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BroadCastData
.
Merge
(
dst
,
src
)
}
func
(
m
*
BroadCastData
)
XXX_Size
()
int
{
return
xxx_messageInfo_BroadCastData
.
Size
(
m
)
...
...
@@ -1204,7 +1185,7 @@ func _BroadCastData_OneofSizer(msg proto.Message) (n int) {
return
n
}
//*
//
*
// p2p 获取区块区间头部信息协议
type
P2PGetHeaders
struct
{
Version
int32
`protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
...
...
@@ -1219,17 +1200,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
int
{
19
}
}
func
(
m
*
P2PGetHeaders
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_P2PGetHeaders
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
P2PGetHeaders
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PGetHeaders
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PGetHeaders
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PGetHeaders
.
Size
(
m
)
...
...
@@ -1261,7 +1241,7 @@ func (m *P2PGetHeaders) GetEndHeight() int64 {
return
0
}
//*
//
*
// p2p 区块头传输协议
type
P2PHeaders
struct
{
Headers
[]
*
Header
`protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
...
...
@@ -1274,17 +1254,16 @@ func (m *P2PHeaders) Reset() { *m = P2PHeaders{} }
func
(
m
*
P2PHeaders
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
P2PHeaders
)
ProtoMessage
()
{}
func
(
*
P2PHeaders
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
20
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
P2PHeaders
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_P2PHeaders
.
Merge
(
dst
,
src
)
}
func
(
m
*
P2PHeaders
)
XXX_Size
()
int
{
return
xxx_messageInfo_P2PHeaders
.
Size
(
m
)
...
...
@@ -1302,7 +1281,7 @@ func (m *P2PHeaders) GetHeaders() []*Header {
return
nil
}
//*
//
*
// inv 请求协议
type
InvData
struct
{
// Types that are valid to be assigned to Value:
...
...
@@ -1319,17 +1298,16 @@ func (m *InvData) Reset() { *m = InvData{} }
func
(
m
*
InvData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InvData
)
ProtoMessage
()
{}
func
(
*
InvData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
21
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
InvData
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_InvData
.
Merge
(
dst
,
src
)
}
func
(
m
*
InvData
)
XXX_Size
()
int
{
return
xxx_messageInfo_InvData
.
Size
(
m
)
...
...
@@ -1458,7 +1436,7 @@ func _InvData_OneofSizer(msg proto.Message) (n int) {
return
n
}
//*
//
*
// inv 返回数据
type
InvDatas
struct
{
Items
[]
*
InvData
`protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
...
...
@@ -1471,17 +1449,16 @@ func (m *InvDatas) Reset() { *m = InvDatas{} }
func
(
m
*
InvDatas
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InvDatas
)
ProtoMessage
()
{}
func
(
*
InvDatas
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
22
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
InvDatas
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_InvDatas
.
Merge
(
dst
,
src
)
}
func
(
m
*
InvDatas
)
XXX_Size
()
int
{
return
xxx_messageInfo_InvDatas
.
Size
(
m
)
...
...
@@ -1499,7 +1476,7 @@ func (m *InvDatas) GetItems() []*InvData {
return
nil
}
//*
//
*
// peer 信息
type
Peer
struct
{
Addr
string
`protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
...
...
@@ -1517,17 +1494,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
Peer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Peer
.
Merge
(
dst
,
src
)
}
func
(
m
*
Peer
)
XXX_Size
()
int
{
return
xxx_messageInfo_Peer
.
Size
(
m
)
...
...
@@ -1580,7 +1556,7 @@ func (m *Peer) GetHeader() *Header {
return
nil
}
//*
//
*
// peer 列表
type
PeerList
struct
{
Peers
[]
*
Peer
`protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
...
...
@@ -1593,17 +1569,16 @@ func (m *PeerList) Reset() { *m = PeerList{} }
func
(
m
*
PeerList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PeerList
)
ProtoMessage
()
{}
func
(
*
PeerList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
24
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
PeerList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PeerList
.
Merge
(
dst
,
src
)
}
func
(
m
*
PeerList
)
XXX_Size
()
int
{
return
xxx_messageInfo_PeerList
.
Size
(
m
)
...
...
@@ -1621,8 +1596,8 @@ func (m *PeerList) GetPeers() []*Peer {
return
nil
}
//*
//当前节点的网络信息
//
*
//
当前节点的网络信息
type
NodeNetInfo
struct
{
Externaladdr
string
`protobuf:"bytes,1,opt,name=externaladdr,proto3" json:"externaladdr,omitempty"`
Localaddr
string
`protobuf:"bytes,2,opt,name=localaddr,proto3" json:"localaddr,omitempty"`
...
...
@@ -1638,17 +1613,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
NodeNetInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_NodeNetInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
NodeNetInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_NodeNetInfo
.
Size
(
m
)
...
...
@@ -1705,17 +1679,16 @@ 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
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
PeersReply
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PeersReply
.
Merge
(
dst
,
src
)
}
func
(
m
*
PeersReply
)
XXX_Size
()
int
{
return
xxx_messageInfo_PeersReply
.
Size
(
m
)
...
...
@@ -1748,17 +1721,16 @@ func (m *PeersInfo) Reset() { *m = PeersInfo{} }
func
(
m
*
PeersInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PeersInfo
)
ProtoMessage
()
{}
func
(
*
PeersInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
e7fdddb109e6467a
,
[]
int
{
27
}
return
fileDescriptor_
p2p_13b4cb20d67e9052
,
[]
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
(
dst
*
PeersInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PeersInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
PeersInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_PeersInfo
.
Size
(
m
)
...
...
@@ -1835,93 +1807,6 @@ func init() {
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
,
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4
,
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.
var
_
context
.
Context
var
_
grpc
.
ClientConn
...
...
@@ -1934,30 +1819,30 @@ const _ = grpc.SupportPackageIsVersion4
//
// 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
{
//广播交易
//
广播交易
BroadCastTx
(
ctx
context
.
Context
,
in
*
P2PTx
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//广播区块
//
广播区块
BroadCastBlock
(
ctx
context
.
Context
,
in
*
P2PBlock
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
// PING
Ping
(
ctx
context
.
Context
,
in
*
P2PPing
,
opts
...
grpc
.
CallOption
)
(
*
P2PPong
,
error
)
//获取地址
//
获取地址
GetAddr
(
ctx
context
.
Context
,
in
*
P2PGetAddr
,
opts
...
grpc
.
CallOption
)
(
*
P2PAddr
,
error
)
GetAddrList
(
ctx
context
.
Context
,
in
*
P2PGetAddr
,
opts
...
grpc
.
CallOption
)
(
*
P2PAddrList
,
error
)
//版本
//
版本
Version
(
ctx
context
.
Context
,
in
*
P2PVersion
,
opts
...
grpc
.
CallOption
)
(
*
P2PVerAck
,
error
)
//获取p2p协议的版本号
//
获取p2p协议的版本号
Version2
(
ctx
context
.
Context
,
in
*
P2PVersion
,
opts
...
grpc
.
CallOption
)
(
*
P2PVersion
,
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
)
//获取mempool
//
获取mempool
GetMemPool
(
ctx
context
.
Context
,
in
*
P2PGetMempool
,
opts
...
grpc
.
CallOption
)
(
*
P2PInv
,
error
)
//获取数据
//
获取数据
GetData
(
ctx
context
.
Context
,
in
*
P2PGetData
,
opts
...
grpc
.
CallOption
)
(
P2Pgservice_GetDataClient
,
error
)
//获取头部
//
获取头部
GetHeaders
(
ctx
context
.
Context
,
in
*
P2PGetHeaders
,
opts
...
grpc
.
CallOption
)
(
*
P2PHeaders
,
error
)
//获取 peerinfo
//
获取 peerinfo
GetPeerInfo
(
ctx
context
.
Context
,
in
*
P2PGetPeerInfo
,
opts
...
grpc
.
CallOption
)
(
*
P2PPeerInfo
,
error
)
// grpc server 读客户端发送来的数据
ServerStreamRead
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
P2Pgservice_ServerStreamReadClient
,
error
)
...
...
@@ -2202,30 +2087,30 @@ func (c *p2PgserviceClient) CollectInPeers2(ctx context.Context, in *P2PPing, op
// P2PgserviceServer is the server API for P2Pgservice service.
type
P2PgserviceServer
interface
{
//广播交易
//
广播交易
BroadCastTx
(
context
.
Context
,
*
P2PTx
)
(
*
Reply
,
error
)
//广播区块
//
广播区块
BroadCastBlock
(
context
.
Context
,
*
P2PBlock
)
(
*
Reply
,
error
)
// PING
Ping
(
context
.
Context
,
*
P2PPing
)
(
*
P2PPong
,
error
)
//获取地址
//
获取地址
GetAddr
(
context
.
Context
,
*
P2PGetAddr
)
(
*
P2PAddr
,
error
)
GetAddrList
(
context
.
Context
,
*
P2PGetAddr
)
(
*
P2PAddrList
,
error
)
//版本
//
版本
Version
(
context
.
Context
,
*
P2PVersion
)
(
*
P2PVerAck
,
error
)
//获取p2p协议的版本号
//
获取p2p协议的版本号
Version2
(
context
.
Context
,
*
P2PVersion
)
(
*
P2PVersion
,
error
)
//获取软件的版本号
//
获取软件的版本号
SoftVersion
(
context
.
Context
,
*
P2PPing
)
(
*
Reply
,
error
)
//获取区块,最高200
//
获取区块,最高200
GetBlocks
(
context
.
Context
,
*
P2PGetBlocks
)
(
*
P2PInv
,
error
)
//获取mempool
//
获取mempool
GetMemPool
(
context
.
Context
,
*
P2PGetMempool
)
(
*
P2PInv
,
error
)
//获取数据
//
获取数据
GetData
(
*
P2PGetData
,
P2Pgservice_GetDataServer
)
error
//获取头部
//
获取头部
GetHeaders
(
context
.
Context
,
*
P2PGetHeaders
)
(
*
P2PHeaders
,
error
)
//获取 peerinfo
//
获取 peerinfo
GetPeerInfo
(
context
.
Context
,
*
P2PGetPeerInfo
)
(
*
P2PPeerInfo
,
error
)
// grpc server 读客户端发送来的数据
ServerStreamRead
(
P2Pgservice_ServerStreamReadServer
)
error
...
...
@@ -2640,3 +2525,90 @@ var _P2Pgservice_serviceDesc = grpc.ServiceDesc{
},
Metadata
:
"p2p.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"p2p.proto"
,
fileDescriptor_p2p_13b4cb20d67e9052
)
}
var
fileDescriptor_p2p_13b4cb20d67e9052
=
[]
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
,
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x1d
,
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
,
}
vendor/github.com/33cn/chain33/types/pbft.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pbft.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -32,17 +29,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
Operation
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Operation
.
Merge
(
dst
,
src
)
}
func
(
m
*
Operation
)
XXX_Size
()
int
{
return
xxx_messageInfo_Operation
.
Size
(
m
)
...
...
@@ -72,17 +68,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
Checkpoint
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Checkpoint
.
Merge
(
dst
,
src
)
}
func
(
m
*
Checkpoint
)
XXX_Size
()
int
{
return
xxx_messageInfo_Checkpoint
.
Size
(
m
)
...
...
@@ -120,17 +115,16 @@ func (m *Entry) Reset() { *m = Entry{} }
func
(
m
*
Entry
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Entry
)
ProtoMessage
()
{}
func
(
*
Entry
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
6cc19f28ccff0670
,
[]
int
{
2
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
Entry
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Entry
.
Merge
(
dst
,
src
)
}
func
(
m
*
Entry
)
XXX_Size
()
int
{
return
xxx_messageInfo_Entry
.
Size
(
m
)
...
...
@@ -174,17 +168,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
int
{
3
}
}
func
(
m
*
ViewChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ViewChange
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
ViewChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ViewChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
ViewChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_ViewChange
.
Size
(
m
)
...
...
@@ -221,17 +214,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
int
{
4
}
}
func
(
m
*
Summary
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Summary
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
Summary
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Summary
.
Merge
(
dst
,
src
)
}
func
(
m
*
Summary
)
XXX_Size
()
int
{
return
xxx_messageInfo_Summary
.
Size
(
m
)
...
...
@@ -267,17 +259,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
Result
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Result
.
Merge
(
dst
,
src
)
}
func
(
m
*
Result
)
XXX_Size
()
int
{
return
xxx_messageInfo_Result
.
Size
(
m
)
...
...
@@ -315,17 +306,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
Request
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Request
.
Merge
(
dst
,
src
)
}
func
(
m
*
Request
)
XXX_Size
()
int
{
return
xxx_messageInfo_Request
.
Size
(
m
)
...
...
@@ -652,17 +642,16 @@ func (m *RequestClient) Reset() { *m = RequestClient{} }
func
(
m
*
RequestClient
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RequestClient
)
ProtoMessage
()
{}
func
(
*
RequestClient
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
6cc19f28ccff0670
,
[]
int
{
7
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
RequestClient
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestClient
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestClient
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestClient
.
Size
(
m
)
...
...
@@ -708,17 +697,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
int
{
8
}
}
func
(
m
*
RequestPrePrepare
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RequestPrePrepare
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
RequestPrePrepare
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestPrePrepare
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestPrePrepare
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestPrePrepare
.
Size
(
m
)
...
...
@@ -771,17 +759,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
int
{
9
}
}
func
(
m
*
RequestPrepare
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RequestPrepare
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
RequestPrepare
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestPrepare
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestPrepare
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestPrepare
.
Size
(
m
)
...
...
@@ -833,17 +820,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
RequestCommit
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestCommit
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestCommit
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestCommit
.
Size
(
m
)
...
...
@@ -888,17 +874,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
RequestCheckpoint
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestCheckpoint
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestCheckpoint
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestCheckpoint
.
Size
(
m
)
...
...
@@ -946,17 +931,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
RequestViewChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestViewChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestViewChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestViewChange
.
Size
(
m
)
...
...
@@ -1023,17 +1007,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
RequestAck
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestAck
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestAck
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestAck
.
Size
(
m
)
...
...
@@ -1086,17 +1069,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
RequestNewView
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RequestNewView
.
Merge
(
dst
,
src
)
}
func
(
m
*
RequestNewView
)
XXX_Size
()
int
{
return
xxx_messageInfo_RequestNewView
.
Size
(
m
)
...
...
@@ -1150,17 +1132,16 @@ 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
}
return
fileDescriptor_
pbft_b619df59a8941bae
,
[]
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
(
dst
*
ClientReply
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ClientReply
.
Merge
(
dst
,
src
)
}
func
(
m
*
ClientReply
)
XXX_Size
()
int
{
return
xxx_messageInfo_ClientReply
.
Size
(
m
)
...
...
@@ -1225,9 +1206,9 @@ func init() {
proto
.
RegisterType
((
*
ClientReply
)(
nil
),
"types.ClientReply"
)
}
func
init
()
{
proto
.
RegisterFile
(
"pbft.proto"
,
fileDescriptor_
6cc19f28ccff0670
)
}
func
init
()
{
proto
.
RegisterFile
(
"pbft.proto"
,
fileDescriptor_
pbft_b619df59a8941bae
)
}
var
fileDescriptor_
6cc19f28ccff0670
=
[]
byte
{
var
fileDescriptor_
pbft_b619df59a8941bae
=
[]
byte
{
// 677 bytes of a gzipped FileDescriptorProto
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
,
...
...
vendor/github.com/33cn/chain33/types/proto/blockchain.proto
View file @
44deaf4c
...
...
@@ -38,6 +38,7 @@ message Block {
int64
blockTime
=
6
;
uint32
difficulty
=
11
;
bytes
mainHash
=
12
;
int64
mainHeight
=
13
;
Signature
signature
=
8
;
repeated
Transaction
txs
=
7
;
}
...
...
vendor/github.com/33cn/chain33/types/proto/executor.proto
View file @
44deaf4c
...
...
@@ -13,11 +13,12 @@ message ExecTxList {
bytes
stateHash
=
1
;
bytes
parentHash
=
7
;
bytes
mainHash
=
8
;
repeated
Transaction
txs
=
2
;
int64
mainHeight
=
9
;
int64
blockTime
=
3
;
int64
height
=
4
;
uint64
difficulty
=
5
;
bool
isMempool
=
6
;
repeated
Transaction
txs
=
2
;
}
message
Query
{
...
...
vendor/github.com/33cn/chain33/types/rpc.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: rpc.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
context
"context"
fmt
"fmt"
math
"math"
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
proto
"github.com/golang/protobuf/proto"
import
(
context
"golang.org/x/net/context"
grpc
"google.golang.org/grpc"
)
...
...
@@ -23,78 +23,6 @@ var _ = math.Inf
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
func
init
()
{
proto
.
RegisterFile
(
"rpc.proto"
,
fileDescriptor_77a6da22d6a3feb1
)
}
var
fileDescriptor_77a6da22d6a3feb1
=
[]
byte
{
// 1049 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
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xe3
,
0x1c
,
0xcd
,
0xb4
,
0x30
,
0x85
,
0xc6
,
0x4c
,
0xd3
,
0x62
,
0xcb
,
0xc0
,
0x63
,
0x64
,
0xc6
,
0xb4
,
0x9f
,
0xb2
,
0xc4
,
0x5f
,
0xdd
,
0x87
,
0x55
,
0xa6
,
0xbc
,
0xc7
,
0xd5
,
0x29
,
0x6a
,
0xa8
,
0x99
,
0xbc
,
0x22
,
0x74
,
0x39
,
0x0d
,
0xd7
,
0x38
,
0x63
,
0xf7
,
0xad
,
0x14
,
0xa9
,
0x9e
,
0xd4
,
0xad
,
0xbf
,
0xaf
,
0xd5
,
0x2e
,
0x1b
,
0xb2
,
0xa0
,
0x70
,
0xa1
,
0x7e
,
0x87
,
0x6d
,
0xb9
,
0x83
,
0x83
,
0xd7
,
0x7f
,
0xbf
,
0x5a
,
0xb9
,
0xe2
,
0x3a
,
0x5c
,
0x74
,
0x1c
,
0xb6
,
0xee
,
0xf6
,
0xfb
,
0x0e
,
0xed
,
0x26
,
0x9f
,
0xdb
,
0x5d
,
0x65
,
0xb8
,
0x78
,
0xa2
,
0xbe
,
0xc3
,
0xfb
,
0xff
,
0x05
,
0x00
,
0x00
,
0xff
,
0xff
,
0xf5
,
0xb2
,
0x51
,
0x39
,
0x06
,
0x0c
,
0x00
,
0x00
,
}
// Reference imports to suppress errors if they are not otherwise used.
var
_
context
.
Context
var
_
grpc
.
ClientConn
...
...
@@ -108,99 +36,99 @@ const _ = grpc.SupportPackageIsVersion4
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type
Chain33Client
interface
{
// chain33 对外提供服务的接口
//区块链接口
//
区块链接口
GetBlocks
(
ctx
context
.
Context
,
in
*
ReqBlocks
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//获取最新的区块头
//
获取最新的区块头
GetLastHeader
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Header
,
error
)
//交易接口
//
交易接口
CreateRawTransaction
(
ctx
context
.
Context
,
in
*
CreateTx
,
opts
...
grpc
.
CallOption
)
(
*
UnsignTx
,
error
)
CreateRawTxGroup
(
ctx
context
.
Context
,
in
*
CreateTransactionGroup
,
opts
...
grpc
.
CallOption
)
(
*
UnsignTx
,
error
)
//发送签名后交易
//
发送签名后交易
SendRawTransaction
(
ctx
context
.
Context
,
in
*
SignedTx
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
// 根据哈希查询交易
QueryTransaction
(
ctx
context
.
Context
,
in
*
ReqHash
,
opts
...
grpc
.
CallOption
)
(
*
TransactionDetail
,
error
)
// 发送交易
SendTransaction
(
ctx
context
.
Context
,
in
*
Transaction
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//通过地址获取交易信息
//
通过地址获取交易信息
GetTransactionByAddr
(
ctx
context
.
Context
,
in
*
ReqAddr
,
opts
...
grpc
.
CallOption
)
(
*
ReplyTxInfos
,
error
)
//通过哈希数组获取对应的交易
//
通过哈希数组获取对应的交易
GetTransactionByHashes
(
ctx
context
.
Context
,
in
*
ReqHashes
,
opts
...
grpc
.
CallOption
)
(
*
TransactionDetails
,
error
)
//缓存接口
//
缓存接口
GetMemPool
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
ReplyTxList
,
error
)
//钱包接口
//获取钱包账户信息
//
钱包接口
//
获取钱包账户信息
GetAccounts
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
WalletAccounts
,
error
)
//创建钱包账户
//
创建钱包账户
NewAccount
(
ctx
context
.
Context
,
in
*
ReqNewAccount
,
opts
...
grpc
.
CallOption
)
(
*
WalletAccount
,
error
)
//获取钱包的交易列表
//
获取钱包的交易列表
WalletTransactionList
(
ctx
context
.
Context
,
in
*
ReqWalletTransactionList
,
opts
...
grpc
.
CallOption
)
(
*
WalletTxDetails
,
error
)
//导入钱包私钥
//
导入钱包私钥
ImportPrivkey
(
ctx
context
.
Context
,
in
*
ReqWalletImportPrivkey
,
opts
...
grpc
.
CallOption
)
(
*
WalletAccount
,
error
)
// 发送交易
SendToAddress
(
ctx
context
.
Context
,
in
*
ReqWalletSendToAddress
,
opts
...
grpc
.
CallOption
)
(
*
ReplyHash
,
error
)
//设置交易手续费
//
设置交易手续费
SetTxFee
(
ctx
context
.
Context
,
in
*
ReqWalletSetFee
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//设置标签
//
设置标签
SetLabl
(
ctx
context
.
Context
,
in
*
ReqWalletSetLabel
,
opts
...
grpc
.
CallOption
)
(
*
WalletAccount
,
error
)
//合并钱包余额
//
合并钱包余额
MergeBalance
(
ctx
context
.
Context
,
in
*
ReqWalletMergeBalance
,
opts
...
grpc
.
CallOption
)
(
*
ReplyHashes
,
error
)
//设置钱包密码
//
设置钱包密码
SetPasswd
(
ctx
context
.
Context
,
in
*
ReqWalletSetPasswd
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//给钱包上锁
//
给钱包上锁
Lock
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//给钱包解锁
//
给钱包解锁
UnLock
(
ctx
context
.
Context
,
in
*
WalletUnLock
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//获取当前节点连接的其他节点信息
//
获取当前节点连接的其他节点信息
GetPeerInfo
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
PeerList
,
error
)
//获取最新的Mempool
//
获取最新的Mempool
GetLastMemPool
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
ReplyTxList
,
error
)
// 获取钱包状态
GetWalletStatus
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
WalletStatus
,
error
)
//区块浏览器接口
///
//
区块浏览器接口
//
/
GetBlockOverview
(
ctx
context
.
Context
,
in
*
ReqHash
,
opts
...
grpc
.
CallOption
)
(
*
BlockOverview
,
error
)
GetAddrOverview
(
ctx
context
.
Context
,
in
*
ReqAddr
,
opts
...
grpc
.
CallOption
)
(
*
AddrOverview
,
error
)
GetBlockHash
(
ctx
context
.
Context
,
in
*
ReqInt
,
opts
...
grpc
.
CallOption
)
(
*
ReplyHash
,
error
)
// seed
// 创建seed
GenSeed
(
ctx
context
.
Context
,
in
*
GenSeedLang
,
opts
...
grpc
.
CallOption
)
(
*
ReplySeed
,
error
)
//获取seed
//
获取seed
GetSeed
(
ctx
context
.
Context
,
in
*
GetSeedByPw
,
opts
...
grpc
.
CallOption
)
(
*
ReplySeed
,
error
)
//保存seed
//
保存seed
SaveSeed
(
ctx
context
.
Context
,
in
*
SaveSeedByPw
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
// Balance Query
//获取余额
//
获取余额
GetBalance
(
ctx
context
.
Context
,
in
*
ReqBalance
,
opts
...
grpc
.
CallOption
)
(
*
Accounts
,
error
)
QueryChain
(
ctx
context
.
Context
,
in
*
ChainExecutor
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
ExecWallet
(
ctx
context
.
Context
,
in
*
ChainExecutor
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
QueryConsensus
(
ctx
context
.
Context
,
in
*
ChainExecutor
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
CreateTransaction
(
ctx
context
.
Context
,
in
*
CreateTxIn
,
opts
...
grpc
.
CallOption
)
(
*
UnsignTx
,
error
)
//获取交易的十六进制编码
//
获取交易的十六进制编码
GetHexTxByHash
(
ctx
context
.
Context
,
in
*
ReqHash
,
opts
...
grpc
.
CallOption
)
(
*
HexTx
,
error
)
// 导出私钥
DumpPrivkey
(
ctx
context
.
Context
,
in
*
ReqString
,
opts
...
grpc
.
CallOption
)
(
*
ReplyString
,
error
)
//获取程序版本
//
获取程序版本
Version
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
VersionInfo
,
error
)
//是否同步
//
是否同步
IsSync
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
// ntpclock是否同步
IsNtpClockSync
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//获取当前节点的网络信息
//
获取当前节点的网络信息
NetInfo
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
NodeNetInfo
,
error
)
//获取系统致命故障信息
//
获取系统致命故障信息
GetFatalFailure
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Int32
,
error
)
GetLastBlockSequence
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Int64
,
error
)
// get add block's sequence by hash
GetSequenceByHash
(
ctx
context
.
Context
,
in
*
ReqHash
,
opts
...
grpc
.
CallOption
)
(
*
Int64
,
error
)
//通过block hash 获取对应的blocks信息
//
通过block hash 获取对应的blocks信息
GetBlockByHashes
(
ctx
context
.
Context
,
in
*
ReqHashes
,
opts
...
grpc
.
CallOption
)
(
*
BlockDetails
,
error
)
//通过block seq 获取对应的blocks hash 信息
//
通过block seq 获取对应的blocks hash 信息
GetBlockBySeq
(
ctx
context
.
Context
,
in
*
Int64
,
opts
...
grpc
.
CallOption
)
(
*
BlockSeq
,
error
)
//关闭chain33
//
关闭chain33
CloseQueue
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//获取地址所以合约下的余额
//
获取地址所以合约下的余额
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
ReqAddr
,
opts
...
grpc
.
CallOption
)
(
*
AllExecBalance
,
error
)
//签名交易
//
签名交易
SignRawTx
(
ctx
context
.
Context
,
in
*
ReqSignRawTx
,
opts
...
grpc
.
CallOption
)
(
*
ReplySignRawTx
,
error
)
CreateNoBalanceTransaction
(
ctx
context
.
Context
,
in
*
NoBalanceTx
,
opts
...
grpc
.
CallOption
)
(
*
ReplySignRawTx
,
error
)
// 获取随机HASH
...
...
@@ -688,99 +616,99 @@ func (c *chain33Client) GetFork(ctx context.Context, in *ReqKey, opts ...grpc.Ca
// Chain33Server is the server API for Chain33 service.
type
Chain33Server
interface
{
// chain33 对外提供服务的接口
//区块链接口
//
区块链接口
GetBlocks
(
context
.
Context
,
*
ReqBlocks
)
(
*
Reply
,
error
)
//获取最新的区块头
//
获取最新的区块头
GetLastHeader
(
context
.
Context
,
*
ReqNil
)
(
*
Header
,
error
)
//交易接口
//
交易接口
CreateRawTransaction
(
context
.
Context
,
*
CreateTx
)
(
*
UnsignTx
,
error
)
CreateRawTxGroup
(
context
.
Context
,
*
CreateTransactionGroup
)
(
*
UnsignTx
,
error
)
//发送签名后交易
//
发送签名后交易
SendRawTransaction
(
context
.
Context
,
*
SignedTx
)
(
*
Reply
,
error
)
// 根据哈希查询交易
QueryTransaction
(
context
.
Context
,
*
ReqHash
)
(
*
TransactionDetail
,
error
)
// 发送交易
SendTransaction
(
context
.
Context
,
*
Transaction
)
(
*
Reply
,
error
)
//通过地址获取交易信息
//
通过地址获取交易信息
GetTransactionByAddr
(
context
.
Context
,
*
ReqAddr
)
(
*
ReplyTxInfos
,
error
)
//通过哈希数组获取对应的交易
//
通过哈希数组获取对应的交易
GetTransactionByHashes
(
context
.
Context
,
*
ReqHashes
)
(
*
TransactionDetails
,
error
)
//缓存接口
//
缓存接口
GetMemPool
(
context
.
Context
,
*
ReqNil
)
(
*
ReplyTxList
,
error
)
//钱包接口
//获取钱包账户信息
//
钱包接口
//
获取钱包账户信息
GetAccounts
(
context
.
Context
,
*
ReqNil
)
(
*
WalletAccounts
,
error
)
//创建钱包账户
//
创建钱包账户
NewAccount
(
context
.
Context
,
*
ReqNewAccount
)
(
*
WalletAccount
,
error
)
//获取钱包的交易列表
//
获取钱包的交易列表
WalletTransactionList
(
context
.
Context
,
*
ReqWalletTransactionList
)
(
*
WalletTxDetails
,
error
)
//导入钱包私钥
//
导入钱包私钥
ImportPrivkey
(
context
.
Context
,
*
ReqWalletImportPrivkey
)
(
*
WalletAccount
,
error
)
// 发送交易
SendToAddress
(
context
.
Context
,
*
ReqWalletSendToAddress
)
(
*
ReplyHash
,
error
)
//设置交易手续费
//
设置交易手续费
SetTxFee
(
context
.
Context
,
*
ReqWalletSetFee
)
(
*
Reply
,
error
)
//设置标签
//
设置标签
SetLabl
(
context
.
Context
,
*
ReqWalletSetLabel
)
(
*
WalletAccount
,
error
)
//合并钱包余额
//
合并钱包余额
MergeBalance
(
context
.
Context
,
*
ReqWalletMergeBalance
)
(
*
ReplyHashes
,
error
)
//设置钱包密码
//
设置钱包密码
SetPasswd
(
context
.
Context
,
*
ReqWalletSetPasswd
)
(
*
Reply
,
error
)
//给钱包上锁
//
给钱包上锁
Lock
(
context
.
Context
,
*
ReqNil
)
(
*
Reply
,
error
)
//给钱包解锁
//
给钱包解锁
UnLock
(
context
.
Context
,
*
WalletUnLock
)
(
*
Reply
,
error
)
//获取当前节点连接的其他节点信息
//
获取当前节点连接的其他节点信息
GetPeerInfo
(
context
.
Context
,
*
ReqNil
)
(
*
PeerList
,
error
)
//获取最新的Mempool
//
获取最新的Mempool
GetLastMemPool
(
context
.
Context
,
*
ReqNil
)
(
*
ReplyTxList
,
error
)
// 获取钱包状态
GetWalletStatus
(
context
.
Context
,
*
ReqNil
)
(
*
WalletStatus
,
error
)
//区块浏览器接口
///
//
区块浏览器接口
//
/
GetBlockOverview
(
context
.
Context
,
*
ReqHash
)
(
*
BlockOverview
,
error
)
GetAddrOverview
(
context
.
Context
,
*
ReqAddr
)
(
*
AddrOverview
,
error
)
GetBlockHash
(
context
.
Context
,
*
ReqInt
)
(
*
ReplyHash
,
error
)
// seed
// 创建seed
GenSeed
(
context
.
Context
,
*
GenSeedLang
)
(
*
ReplySeed
,
error
)
//获取seed
//
获取seed
GetSeed
(
context
.
Context
,
*
GetSeedByPw
)
(
*
ReplySeed
,
error
)
//保存seed
//
保存seed
SaveSeed
(
context
.
Context
,
*
SaveSeedByPw
)
(
*
Reply
,
error
)
// Balance Query
//获取余额
//
获取余额
GetBalance
(
context
.
Context
,
*
ReqBalance
)
(
*
Accounts
,
error
)
QueryChain
(
context
.
Context
,
*
ChainExecutor
)
(
*
Reply
,
error
)
ExecWallet
(
context
.
Context
,
*
ChainExecutor
)
(
*
Reply
,
error
)
QueryConsensus
(
context
.
Context
,
*
ChainExecutor
)
(
*
Reply
,
error
)
CreateTransaction
(
context
.
Context
,
*
CreateTxIn
)
(
*
UnsignTx
,
error
)
//获取交易的十六进制编码
//
获取交易的十六进制编码
GetHexTxByHash
(
context
.
Context
,
*
ReqHash
)
(
*
HexTx
,
error
)
// 导出私钥
DumpPrivkey
(
context
.
Context
,
*
ReqString
)
(
*
ReplyString
,
error
)
//获取程序版本
//
获取程序版本
Version
(
context
.
Context
,
*
ReqNil
)
(
*
VersionInfo
,
error
)
//是否同步
//
是否同步
IsSync
(
context
.
Context
,
*
ReqNil
)
(
*
Reply
,
error
)
// ntpclock是否同步
IsNtpClockSync
(
context
.
Context
,
*
ReqNil
)
(
*
Reply
,
error
)
//获取当前节点的网络信息
//
获取当前节点的网络信息
NetInfo
(
context
.
Context
,
*
ReqNil
)
(
*
NodeNetInfo
,
error
)
//获取系统致命故障信息
//
获取系统致命故障信息
GetFatalFailure
(
context
.
Context
,
*
ReqNil
)
(
*
Int32
,
error
)
GetLastBlockSequence
(
context
.
Context
,
*
ReqNil
)
(
*
Int64
,
error
)
// get add block's sequence by hash
GetSequenceByHash
(
context
.
Context
,
*
ReqHash
)
(
*
Int64
,
error
)
//通过block hash 获取对应的blocks信息
//
通过block hash 获取对应的blocks信息
GetBlockByHashes
(
context
.
Context
,
*
ReqHashes
)
(
*
BlockDetails
,
error
)
//通过block seq 获取对应的blocks hash 信息
//
通过block seq 获取对应的blocks hash 信息
GetBlockBySeq
(
context
.
Context
,
*
Int64
)
(
*
BlockSeq
,
error
)
//关闭chain33
//
关闭chain33
CloseQueue
(
context
.
Context
,
*
ReqNil
)
(
*
Reply
,
error
)
//获取地址所以合约下的余额
//
获取地址所以合约下的余额
GetAllExecBalance
(
context
.
Context
,
*
ReqAddr
)
(
*
AllExecBalance
,
error
)
//签名交易
//
签名交易
SignRawTx
(
context
.
Context
,
*
ReqSignRawTx
)
(
*
ReplySignRawTx
,
error
)
CreateNoBalanceTransaction
(
context
.
Context
,
*
NoBalanceTx
)
(
*
ReplySignRawTx
,
error
)
// 获取随机HASH
...
...
@@ -1945,3 +1873,75 @@ var _Chain33_serviceDesc = grpc.ServiceDesc{
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"rpc.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"rpc.proto"
,
fileDescriptor_rpc_40304259cd41f724
)
}
var
fileDescriptor_rpc_40304259cd41f724
=
[]
byte
{
// 1049 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x56
,
0x6d
,
0x6f
,
0xdb
,
0x36
,
0x10
,
0xd6
,
0x87
,
0xad
,
0x69
,
0x58
,
0xc7
,
0x71
,
0x18
,
0x37
,
0x68
,
0x85
,
0x15
,
0x05
,
0x04
,
0x0c
,
0x1b
,
0x30
,
0xd4
,
0x6e
,
0xed
,
0x2d
,
0x7b
,
0xe9
,
0x36
,
0x20
,
0x4e
,
0x66
,
0xc7
,
0x98
,
0xeb
,
0xb9
,
0x91
,
0xbb
,
0x01
,
0xfb
,
0x46
,
0xcb
,
0x37
,
0x47
,
0x88
,
0x4c
,
0x2a
,
0x22
,
0x15
,
0xcb
,
0x3f
,
0x76
,
0xff
,
0x65
,
0x20
,
0x25
,
0xea
,
0xdd
,
0x49
,
0xf6
,
0xcd
,
0xbc
,
0xbb
,
0xe7
,
0x5e
,
0x7c
,
0xcf
,
0xdd
,
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0x1c
,
0xb6
,
0xee
,
0xf6
,
0xfb
,
0x0e
,
0xed
,
0x26
,
0x9f
,
0xdb
,
0x5d
,
0x65
,
0xb8
,
0x78
,
0xa2
,
0xbe
,
0xc3
,
0xfb
,
0xff
,
0x05
,
0x00
,
0x00
,
0xff
,
0xff
,
0xf5
,
0xb2
,
0x51
,
0x39
,
0x06
,
0x0c
,
0x00
,
0x00
,
}
vendor/github.com/33cn/chain33/types/statistic.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: statistic.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -21,7 +18,7 @@ var _ = math.Inf
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
//手续费
//
手续费
type
TotalFee
struct
{
Fee
int64
`protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
TxCount
int64
`protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
...
...
@@ -34,17 +31,16 @@ func (m *TotalFee) Reset() { *m = TotalFee{} }
func
(
m
*
TotalFee
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TotalFee
)
ProtoMessage
()
{}
func
(
*
TotalFee
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
405f6cee9ed2da7e
,
[]
int
{
0
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
TotalFee
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TotalFee
.
Merge
(
dst
,
src
)
}
func
(
m
*
TotalFee
)
XXX_Size
()
int
{
return
xxx_messageInfo_TotalFee
.
Size
(
m
)
...
...
@@ -69,7 +65,7 @@ func (m *TotalFee) GetTxCount() int64 {
return
0
}
//查询symbol代币总额
//
查询symbol代币总额
type
ReqGetTotalCoins
struct
{
Symbol
string
`protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
StateHash
[]
byte
`protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
...
...
@@ -85,17 +81,16 @@ func (m *ReqGetTotalCoins) Reset() { *m = ReqGetTotalCoins{} }
func
(
m
*
ReqGetTotalCoins
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqGetTotalCoins
)
ProtoMessage
()
{}
func
(
*
ReqGetTotalCoins
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
405f6cee9ed2da7e
,
[]
int
{
1
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
ReqGetTotalCoins
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqGetTotalCoins
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqGetTotalCoins
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqGetTotalCoins
.
Size
(
m
)
...
...
@@ -141,7 +136,7 @@ func (m *ReqGetTotalCoins) GetExecer() string {
return
""
}
//查询symbol代币总额应答
//
查询symbol代币总额应答
type
ReplyGetTotalCoins
struct
{
Count
int64
`protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Num
int64
`protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
...
...
@@ -156,17 +151,16 @@ func (m *ReplyGetTotalCoins) Reset() { *m = ReplyGetTotalCoins{} }
func
(
m
*
ReplyGetTotalCoins
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyGetTotalCoins
)
ProtoMessage
()
{}
func
(
*
ReplyGetTotalCoins
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
405f6cee9ed2da7e
,
[]
int
{
2
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
ReplyGetTotalCoins
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyGetTotalCoins
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyGetTotalCoins
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyGetTotalCoins
.
Size
(
m
)
...
...
@@ -205,7 +199,7 @@ func (m *ReplyGetTotalCoins) GetNextKey() []byte {
return
nil
}
//迭代查询symbol代币总额
//
迭代查询symbol代币总额
type
IterateRangeByStateHash
struct
{
StateHash
[]
byte
`protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Start
[]
byte
`protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
...
...
@@ -220,17 +214,16 @@ 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
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
IterateRangeByStateHash
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_IterateRangeByStateHash
.
Merge
(
dst
,
src
)
}
func
(
m
*
IterateRangeByStateHash
)
XXX_Size
()
int
{
return
xxx_messageInfo_IterateRangeByStateHash
.
Size
(
m
)
...
...
@@ -270,11 +263,11 @@ func (m *IterateRangeByStateHash) GetCount() int64 {
}
type
TicketStatistic
struct
{
//当前在挖的ticket
//
当前在挖的ticket
CurrentOpenCount
int64
`protobuf:"varint,1,opt,name=currentOpenCount,proto3" json:"currentOpenCount,omitempty"`
//一共挖到的ticket
//
一共挖到的ticket
TotalMinerCount
int64
`protobuf:"varint,2,opt,name=totalMinerCount,proto3" json:"totalMinerCount,omitempty"`
//一共取消的ticket
//
一共取消的ticket
TotalCancleCount
int64
`protobuf:"varint,3,opt,name=totalCancleCount,proto3" json:"totalCancleCount,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -285,17 +278,16 @@ 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
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
TicketStatistic
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TicketStatistic
.
Merge
(
dst
,
src
)
}
func
(
m
*
TicketStatistic
)
XXX_Size
()
int
{
return
xxx_messageInfo_TicketStatistic
.
Size
(
m
)
...
...
@@ -334,13 +326,13 @@ type TicketMinerInfo struct {
PrevStatus
int32
`protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"`
// genesis 创建的私钥比较特殊
IsGenesis
bool
`protobuf:"varint,4,opt,name=isGenesis,proto3" json:"isGenesis,omitempty"`
//创建ticket时间
//
创建ticket时间
CreateTime
int64
`protobuf:"varint,5,opt,name=createTime,proto3" json:"createTime,omitempty"`
// ticket挖矿时间
MinerTime
int64
`protobuf:"varint,6,opt,name=minerTime,proto3" json:"minerTime,omitempty"`
//关闭ticket时间
//
关闭ticket时间
CloseTime
int64
`protobuf:"varint,7,opt,name=closeTime,proto3" json:"closeTime,omitempty"`
//挖到的币的数目
//
挖到的币的数目
MinerValue
int64
`protobuf:"varint,8,opt,name=minerValue,proto3" json:"minerValue,omitempty"`
MinerAddress
string
`protobuf:"bytes,9,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
...
...
@@ -352,17 +344,16 @@ func (m *TicketMinerInfo) Reset() { *m = TicketMinerInfo{} }
func
(
m
*
TicketMinerInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TicketMinerInfo
)
ProtoMessage
()
{}
func
(
*
TicketMinerInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
405f6cee9ed2da7e
,
[]
int
{
5
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
TicketMinerInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TicketMinerInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
TicketMinerInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_TicketMinerInfo
.
Size
(
m
)
...
...
@@ -448,17 +439,16 @@ func (m *TotalAmount) Reset() { *m = TotalAmount{} }
func
(
m
*
TotalAmount
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TotalAmount
)
ProtoMessage
()
{}
func
(
*
TotalAmount
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
405f6cee9ed2da7e
,
[]
int
{
6
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
TotalAmount
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TotalAmount
.
Merge
(
dst
,
src
)
}
func
(
m
*
TotalAmount
)
XXX_Size
()
int
{
return
xxx_messageInfo_TotalAmount
.
Size
(
m
)
...
...
@@ -476,7 +466,7 @@ func (m *TotalAmount) GetTotal() int64 {
return
0
}
//查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额
//
查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额
type
ReqGetExecBalance
struct
{
Symbol
string
`protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
StateHash
[]
byte
`protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
...
...
@@ -494,17 +484,16 @@ func (m *ReqGetExecBalance) Reset() { *m = ReqGetExecBalance{} }
func
(
m
*
ReqGetExecBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqGetExecBalance
)
ProtoMessage
()
{}
func
(
*
ReqGetExecBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
405f6cee9ed2da7e
,
[]
int
{
7
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
ReqGetExecBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqGetExecBalance
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqGetExecBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqGetExecBalance
.
Size
(
m
)
...
...
@@ -577,17 +566,16 @@ 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
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
ExecBalanceItem
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ExecBalanceItem
.
Merge
(
dst
,
src
)
}
func
(
m
*
ExecBalanceItem
)
XXX_Size
()
int
{
return
xxx_messageInfo_ExecBalanceItem
.
Size
(
m
)
...
...
@@ -619,7 +607,7 @@ func (m *ExecBalanceItem) GetActive() int64 {
return
0
}
//查询symbol在合约中的代币总额应答
//
查询symbol在合约中的代币总额应答
type
ReplyGetExecBalance
struct
{
Amount
int64
`protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
AmountFrozen
int64
`protobuf:"varint,2,opt,name=amountFrozen,proto3" json:"amountFrozen,omitempty"`
...
...
@@ -635,17 +623,16 @@ 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
}
return
fileDescriptor_
statistic_607114b65907e3b8
,
[]
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
(
dst
*
ReplyGetExecBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyGetExecBalance
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyGetExecBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyGetExecBalance
.
Size
(
m
)
...
...
@@ -704,9 +691,9 @@ func init() {
proto
.
RegisterType
((
*
ReplyGetExecBalance
)(
nil
),
"types.ReplyGetExecBalance"
)
}
func
init
()
{
proto
.
RegisterFile
(
"statistic.proto"
,
fileDescriptor_
405f6cee9ed2da7e
)
}
func
init
()
{
proto
.
RegisterFile
(
"statistic.proto"
,
fileDescriptor_
statistic_607114b65907e3b8
)
}
var
fileDescriptor_
405f6cee9ed2da7e
=
[]
byte
{
var
fileDescriptor_
statistic_607114b65907e3b8
=
[]
byte
{
// 637 bytes of a gzipped FileDescriptorProto
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
,
...
...
vendor/github.com/33cn/chain33/types/transaction.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: transaction.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -34,17 +31,16 @@ func (m *AssetsGenesis) Reset() { *m = AssetsGenesis{} }
func
(
m
*
AssetsGenesis
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AssetsGenesis
)
ProtoMessage
()
{}
func
(
*
AssetsGenesis
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
0
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
0
}
}
func
(
m
*
AssetsGenesis
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AssetsGenesis
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AssetsGenesis
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AssetsGenesis
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
AssetsGenesis
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsGenesis
.
Merge
(
m
,
src
)
func
(
dst
*
AssetsGenesis
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsGenesis
.
Merge
(
dst
,
src
)
}
func
(
m
*
AssetsGenesis
)
XXX_Size
()
int
{
return
xxx_messageInfo_AssetsGenesis
.
Size
(
m
)
...
...
@@ -84,17 +80,16 @@ func (m *AssetsTransferToExec) Reset() { *m = AssetsTransferToExec{} }
func
(
m
*
AssetsTransferToExec
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AssetsTransferToExec
)
ProtoMessage
()
{}
func
(
*
AssetsTransferToExec
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
1
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
1
}
}
func
(
m
*
AssetsTransferToExec
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AssetsTransferToExec
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AssetsTransferToExec
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AssetsTransferToExec
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
AssetsTransferToExec
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsTransferToExec
.
Merge
(
m
,
src
)
func
(
dst
*
AssetsTransferToExec
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsTransferToExec
.
Merge
(
dst
,
src
)
}
func
(
m
*
AssetsTransferToExec
)
XXX_Size
()
int
{
return
xxx_messageInfo_AssetsTransferToExec
.
Size
(
m
)
...
...
@@ -155,17 +150,16 @@ func (m *AssetsWithdraw) Reset() { *m = AssetsWithdraw{} }
func
(
m
*
AssetsWithdraw
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AssetsWithdraw
)
ProtoMessage
()
{}
func
(
*
AssetsWithdraw
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
2
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
2
}
}
func
(
m
*
AssetsWithdraw
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AssetsWithdraw
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AssetsWithdraw
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AssetsWithdraw
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
AssetsWithdraw
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsWithdraw
.
Merge
(
m
,
src
)
func
(
dst
*
AssetsWithdraw
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsWithdraw
.
Merge
(
dst
,
src
)
}
func
(
m
*
AssetsWithdraw
)
XXX_Size
()
int
{
return
xxx_messageInfo_AssetsWithdraw
.
Size
(
m
)
...
...
@@ -225,17 +219,16 @@ func (m *AssetsTransfer) Reset() { *m = AssetsTransfer{} }
func
(
m
*
AssetsTransfer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AssetsTransfer
)
ProtoMessage
()
{}
func
(
*
AssetsTransfer
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
3
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
3
}
}
func
(
m
*
AssetsTransfer
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AssetsTransfer
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AssetsTransfer
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AssetsTransfer
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
AssetsTransfer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsTransfer
.
Merge
(
m
,
src
)
func
(
dst
*
AssetsTransfer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetsTransfer
.
Merge
(
dst
,
src
)
}
func
(
m
*
AssetsTransfer
)
XXX_Size
()
int
{
return
xxx_messageInfo_AssetsTransfer
.
Size
(
m
)
...
...
@@ -287,17 +280,16 @@ func (m *Asset) Reset() { *m = Asset{} }
func
(
m
*
Asset
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Asset
)
ProtoMessage
()
{}
func
(
*
Asset
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
4
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
4
}
}
func
(
m
*
Asset
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Asset
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Asset
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Asset
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Asset
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Asset
.
Merge
(
m
,
src
)
func
(
dst
*
Asset
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Asset
.
Merge
(
dst
,
src
)
}
func
(
m
*
Asset
)
XXX_Size
()
int
{
return
xxx_messageInfo_Asset
.
Size
(
m
)
...
...
@@ -348,17 +340,16 @@ func (m *CreateTx) Reset() { *m = CreateTx{} }
func
(
m
*
CreateTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CreateTx
)
ProtoMessage
()
{}
func
(
*
CreateTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
5
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
5
}
}
func
(
m
*
CreateTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_CreateTx
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
CreateTx
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_CreateTx
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
CreateTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CreateTx
.
Merge
(
m
,
src
)
func
(
dst
*
CreateTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CreateTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
CreateTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_CreateTx
.
Size
(
m
)
...
...
@@ -447,17 +438,16 @@ func (m *ReWriteRawTx) Reset() { *m = ReWriteRawTx{} }
func
(
m
*
ReWriteRawTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReWriteRawTx
)
ProtoMessage
()
{}
func
(
*
ReWriteRawTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
6
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
6
}
}
func
(
m
*
ReWriteRawTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReWriteRawTx
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReWriteRawTx
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReWriteRawTx
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReWriteRawTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReWriteRawTx
.
Merge
(
m
,
src
)
func
(
dst
*
ReWriteRawTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReWriteRawTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReWriteRawTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReWriteRawTx
.
Size
(
m
)
...
...
@@ -514,17 +504,16 @@ func (m *CreateTransactionGroup) Reset() { *m = CreateTransactionGroup{}
func
(
m
*
CreateTransactionGroup
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CreateTransactionGroup
)
ProtoMessage
()
{}
func
(
*
CreateTransactionGroup
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
7
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
7
}
}
func
(
m
*
CreateTransactionGroup
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_CreateTransactionGroup
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
CreateTransactionGroup
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_CreateTransactionGroup
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
CreateTransactionGroup
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CreateTransactionGroup
.
Merge
(
m
,
src
)
func
(
dst
*
CreateTransactionGroup
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CreateTransactionGroup
.
Merge
(
dst
,
src
)
}
func
(
m
*
CreateTransactionGroup
)
XXX_Size
()
int
{
return
xxx_messageInfo_CreateTransactionGroup
.
Size
(
m
)
...
...
@@ -553,17 +542,16 @@ func (m *UnsignTx) Reset() { *m = UnsignTx{} }
func
(
m
*
UnsignTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UnsignTx
)
ProtoMessage
()
{}
func
(
*
UnsignTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
8
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
8
}
}
func
(
m
*
UnsignTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UnsignTx
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
UnsignTx
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_UnsignTx
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
UnsignTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_UnsignTx
.
Merge
(
m
,
src
)
func
(
dst
*
UnsignTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_UnsignTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
UnsignTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_UnsignTx
.
Size
(
m
)
...
...
@@ -596,17 +584,16 @@ func (m *NoBalanceTx) Reset() { *m = NoBalanceTx{} }
func
(
m
*
NoBalanceTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
NoBalanceTx
)
ProtoMessage
()
{}
func
(
*
NoBalanceTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
9
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
9
}
}
func
(
m
*
NoBalanceTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_NoBalanceTx
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
NoBalanceTx
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_NoBalanceTx
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
NoBalanceTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_NoBalanceTx
.
Merge
(
m
,
src
)
func
(
dst
*
NoBalanceTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_NoBalanceTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
NoBalanceTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_NoBalanceTx
.
Size
(
m
)
...
...
@@ -659,17 +646,16 @@ func (m *SignedTx) Reset() { *m = SignedTx{} }
func
(
m
*
SignedTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SignedTx
)
ProtoMessage
()
{}
func
(
*
SignedTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
10
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
10
}
}
func
(
m
*
SignedTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_SignedTx
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
SignedTx
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_SignedTx
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
SignedTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_SignedTx
.
Merge
(
m
,
src
)
func
(
dst
*
SignedTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_SignedTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
SignedTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_SignedTx
.
Size
(
m
)
...
...
@@ -714,9 +700,9 @@ type Transaction struct {
Signature
*
Signature
`protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
Fee
int64
`protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
Expire
int64
`protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"`
//随机ID,可以防止payload 相同的时候,交易重复
//
随机ID,可以防止payload 相同的时候,交易重复
Nonce
int64
`protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
//对方地址,如果没有对方地址,可以为空
//
对方地址,如果没有对方地址,可以为空
To
string
`protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"`
GroupCount
int32
`protobuf:"varint,8,opt,name=groupCount,proto3" json:"groupCount,omitempty"`
Header
[]
byte
`protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"`
...
...
@@ -730,17 +716,16 @@ func (m *Transaction) Reset() { *m = Transaction{} }
func
(
m
*
Transaction
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Transaction
)
ProtoMessage
()
{}
func
(
*
Transaction
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
11
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
11
}
}
func
(
m
*
Transaction
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Transaction
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Transaction
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Transaction
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Transaction
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Transaction
.
Merge
(
m
,
src
)
func
(
dst
*
Transaction
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Transaction
.
Merge
(
dst
,
src
)
}
func
(
m
*
Transaction
)
XXX_Size
()
int
{
return
xxx_messageInfo_Transaction
.
Size
(
m
)
...
...
@@ -832,17 +817,16 @@ func (m *Transactions) Reset() { *m = Transactions{} }
func
(
m
*
Transactions
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Transactions
)
ProtoMessage
()
{}
func
(
*
Transactions
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
12
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
12
}
}
func
(
m
*
Transactions
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Transactions
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Transactions
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Transactions
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Transactions
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Transactions
.
Merge
(
m
,
src
)
func
(
dst
*
Transactions
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Transactions
.
Merge
(
dst
,
src
)
}
func
(
m
*
Transactions
)
XXX_Size
()
int
{
return
xxx_messageInfo_Transactions
.
Size
(
m
)
...
...
@@ -872,17 +856,16 @@ func (m *RingSignature) Reset() { *m = RingSignature{} }
func
(
m
*
RingSignature
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RingSignature
)
ProtoMessage
()
{}
func
(
*
RingSignature
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
13
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
13
}
}
func
(
m
*
RingSignature
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RingSignature
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RingSignature
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RingSignature
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
RingSignature
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RingSignature
.
Merge
(
m
,
src
)
func
(
dst
*
RingSignature
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RingSignature
.
Merge
(
dst
,
src
)
}
func
(
m
*
RingSignature
)
XXX_Size
()
int
{
return
xxx_messageInfo_RingSignature
.
Size
(
m
)
...
...
@@ -913,17 +896,16 @@ func (m *RingSignatureItem) Reset() { *m = RingSignatureItem{} }
func
(
m
*
RingSignatureItem
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RingSignatureItem
)
ProtoMessage
()
{}
func
(
*
RingSignatureItem
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
14
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
14
}
}
func
(
m
*
RingSignatureItem
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RingSignatureItem
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RingSignatureItem
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RingSignatureItem
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
RingSignatureItem
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RingSignatureItem
.
Merge
(
m
,
src
)
func
(
dst
*
RingSignatureItem
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RingSignatureItem
.
Merge
(
dst
,
src
)
}
func
(
m
*
RingSignatureItem
)
XXX_Size
()
int
{
return
xxx_messageInfo_RingSignatureItem
.
Size
(
m
)
...
...
@@ -948,11 +930,11 @@ func (m *RingSignatureItem) GetSignature() [][]byte {
return
nil
}
//对于一个交易组中的交易,要么全部成功,要么全部失败
//这个要好好设计一下
//最好交易构成一个链条[prevhash].独立的交易构成链条
//只要这个组中有一个执行是出错的,那么就执行不成功
//三种签名支持
//
对于一个交易组中的交易,要么全部成功,要么全部失败
//
这个要好好设计一下
//
最好交易构成一个链条[prevhash].独立的交易构成链条
//
只要这个组中有一个执行是出错的,那么就执行不成功
//
三种签名支持
// ty = 1 -> secp256k1
// ty = 2 -> ed25519
// ty = 3 -> sm2
...
...
@@ -961,7 +943,7 @@ func (m *RingSignatureItem) GetSignature() [][]byte {
type
Signature
struct
{
Ty
int32
`protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
Pubkey
[]
byte
`protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
//当ty为5时,格式应该用RingSignature去解析
//
当ty为5时,格式应该用RingSignature去解析
Signature
[]
byte
`protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
@@ -972,17 +954,16 @@ func (m *Signature) Reset() { *m = Signature{} }
func
(
m
*
Signature
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Signature
)
ProtoMessage
()
{}
func
(
*
Signature
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
15
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
15
}
}
func
(
m
*
Signature
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Signature
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Signature
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Signature
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Signature
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Signature
.
Merge
(
m
,
src
)
func
(
dst
*
Signature
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Signature
.
Merge
(
dst
,
src
)
}
func
(
m
*
Signature
)
XXX_Size
()
int
{
return
xxx_messageInfo_Signature
.
Size
(
m
)
...
...
@@ -1027,17 +1008,16 @@ func (m *AddrOverview) Reset() { *m = AddrOverview{} }
func
(
m
*
AddrOverview
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AddrOverview
)
ProtoMessage
()
{}
func
(
*
AddrOverview
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
16
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
16
}
}
func
(
m
*
AddrOverview
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AddrOverview
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AddrOverview
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AddrOverview
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
AddrOverview
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AddrOverview
.
Merge
(
m
,
src
)
func
(
dst
*
AddrOverview
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AddrOverview
.
Merge
(
dst
,
src
)
}
func
(
m
*
AddrOverview
)
XXX_Size
()
int
{
return
xxx_messageInfo_AddrOverview
.
Size
(
m
)
...
...
@@ -1071,7 +1051,7 @@ func (m *AddrOverview) GetTxCount() int64 {
type
ReqAddr
struct
{
Addr
string
`protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//表示取所有/from/to/其他的hash列表
//
表示取所有/from/to/其他的hash列表
Flag
int32
`protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
...
...
@@ -1086,17 +1066,16 @@ func (m *ReqAddr) Reset() { *m = ReqAddr{} }
func
(
m
*
ReqAddr
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqAddr
)
ProtoMessage
()
{}
func
(
*
ReqAddr
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
17
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
17
}
}
func
(
m
*
ReqAddr
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqAddr
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqAddr
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqAddr
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqAddr
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqAddr
.
Merge
(
m
,
src
)
func
(
dst
*
ReqAddr
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqAddr
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqAddr
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqAddr
.
Size
(
m
)
...
...
@@ -1162,17 +1141,16 @@ func (m *ReqPrivacy) Reset() { *m = ReqPrivacy{} }
func
(
m
*
ReqPrivacy
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqPrivacy
)
ProtoMessage
()
{}
func
(
*
ReqPrivacy
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
18
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
18
}
}
func
(
m
*
ReqPrivacy
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqPrivacy
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqPrivacy
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqPrivacy
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqPrivacy
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqPrivacy
.
Merge
(
m
,
src
)
func
(
dst
*
ReqPrivacy
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqPrivacy
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqPrivacy
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqPrivacy
.
Size
(
m
)
...
...
@@ -1215,17 +1193,16 @@ func (m *HexTx) Reset() { *m = HexTx{} }
func
(
m
*
HexTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
HexTx
)
ProtoMessage
()
{}
func
(
*
HexTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
19
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
19
}
}
func
(
m
*
HexTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_HexTx
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
HexTx
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_HexTx
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
HexTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_HexTx
.
Merge
(
m
,
src
)
func
(
dst
*
HexTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_HexTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
HexTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_HexTx
.
Size
(
m
)
...
...
@@ -1257,17 +1234,16 @@ func (m *ReplyTxInfo) Reset() { *m = ReplyTxInfo{} }
func
(
m
*
ReplyTxInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyTxInfo
)
ProtoMessage
()
{}
func
(
*
ReplyTxInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
20
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
20
}
}
func
(
m
*
ReplyTxInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyTxInfo
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyTxInfo
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyTxInfo
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReplyTxInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyTxInfo
.
Merge
(
m
,
src
)
func
(
dst
*
ReplyTxInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyTxInfo
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyTxInfo
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyTxInfo
.
Size
(
m
)
...
...
@@ -1317,17 +1293,16 @@ func (m *ReqTxList) Reset() { *m = ReqTxList{} }
func
(
m
*
ReqTxList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqTxList
)
ProtoMessage
()
{}
func
(
*
ReqTxList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
21
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
21
}
}
func
(
m
*
ReqTxList
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqTxList
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqTxList
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqTxList
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqTxList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqTxList
.
Merge
(
m
,
src
)
func
(
dst
*
ReqTxList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqTxList
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqTxList
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqTxList
.
Size
(
m
)
...
...
@@ -1356,17 +1331,16 @@ func (m *ReplyTxList) Reset() { *m = ReplyTxList{} }
func
(
m
*
ReplyTxList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyTxList
)
ProtoMessage
()
{}
func
(
*
ReplyTxList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
22
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
22
}
}
func
(
m
*
ReplyTxList
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyTxList
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyTxList
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyTxList
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReplyTxList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyTxList
.
Merge
(
m
,
src
)
func
(
dst
*
ReplyTxList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyTxList
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyTxList
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyTxList
.
Size
(
m
)
...
...
@@ -1397,17 +1371,16 @@ func (m *TxHashList) Reset() { *m = TxHashList{} }
func
(
m
*
TxHashList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TxHashList
)
ProtoMessage
()
{}
func
(
*
TxHashList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
23
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
23
}
}
func
(
m
*
TxHashList
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TxHashList
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TxHashList
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TxHashList
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TxHashList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TxHashList
.
Merge
(
m
,
src
)
func
(
dst
*
TxHashList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TxHashList
.
Merge
(
dst
,
src
)
}
func
(
m
*
TxHashList
)
XXX_Size
()
int
{
return
xxx_messageInfo_TxHashList
.
Size
(
m
)
...
...
@@ -1450,17 +1423,16 @@ func (m *ReplyTxInfos) Reset() { *m = ReplyTxInfos{} }
func
(
m
*
ReplyTxInfos
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyTxInfos
)
ProtoMessage
()
{}
func
(
*
ReplyTxInfos
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
24
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
24
}
}
func
(
m
*
ReplyTxInfos
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyTxInfos
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyTxInfos
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyTxInfos
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReplyTxInfos
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyTxInfos
.
Merge
(
m
,
src
)
func
(
dst
*
ReplyTxInfos
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyTxInfos
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyTxInfos
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyTxInfos
.
Size
(
m
)
...
...
@@ -1490,17 +1462,16 @@ func (m *ReceiptLog) Reset() { *m = ReceiptLog{} }
func
(
m
*
ReceiptLog
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptLog
)
ProtoMessage
()
{}
func
(
*
ReceiptLog
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
25
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
25
}
}
func
(
m
*
ReceiptLog
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptLog
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptLog
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptLog
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReceiptLog
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptLog
.
Merge
(
m
,
src
)
func
(
dst
*
ReceiptLog
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptLog
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptLog
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptLog
.
Size
(
m
)
...
...
@@ -1541,17 +1512,16 @@ func (m *Receipt) Reset() { *m = Receipt{} }
func
(
m
*
Receipt
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Receipt
)
ProtoMessage
()
{}
func
(
*
Receipt
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
26
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
26
}
}
func
(
m
*
Receipt
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Receipt
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Receipt
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Receipt
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Receipt
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Receipt
.
Merge
(
m
,
src
)
func
(
dst
*
Receipt
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Receipt
.
Merge
(
dst
,
src
)
}
func
(
m
*
Receipt
)
XXX_Size
()
int
{
return
xxx_messageInfo_Receipt
.
Size
(
m
)
...
...
@@ -1595,17 +1565,16 @@ func (m *ReceiptData) Reset() { *m = ReceiptData{} }
func
(
m
*
ReceiptData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptData
)
ProtoMessage
()
{}
func
(
*
ReceiptData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
27
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
27
}
}
func
(
m
*
ReceiptData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptData
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptData
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptData
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReceiptData
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptData
.
Merge
(
m
,
src
)
func
(
dst
*
ReceiptData
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptData
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptData
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptData
.
Size
(
m
)
...
...
@@ -1646,17 +1615,16 @@ func (m *TxResult) Reset() { *m = TxResult{} }
func
(
m
*
TxResult
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TxResult
)
ProtoMessage
()
{}
func
(
*
TxResult
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
28
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
28
}
}
func
(
m
*
TxResult
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TxResult
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TxResult
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TxResult
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TxResult
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TxResult
.
Merge
(
m
,
src
)
func
(
dst
*
TxResult
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TxResult
.
Merge
(
dst
,
src
)
}
func
(
m
*
TxResult
)
XXX_Size
()
int
{
return
xxx_messageInfo_TxResult
.
Size
(
m
)
...
...
@@ -1729,17 +1697,16 @@ func (m *TransactionDetail) Reset() { *m = TransactionDetail{} }
func
(
m
*
TransactionDetail
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransactionDetail
)
ProtoMessage
()
{}
func
(
*
TransactionDetail
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
29
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
29
}
}
func
(
m
*
TransactionDetail
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransactionDetail
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransactionDetail
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransactionDetail
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransactionDetail
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransactionDetail
.
Merge
(
m
,
src
)
func
(
dst
*
TransactionDetail
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransactionDetail
.
Merge
(
dst
,
src
)
}
func
(
m
*
TransactionDetail
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransactionDetail
.
Size
(
m
)
...
...
@@ -1831,17 +1798,16 @@ func (m *TransactionDetails) Reset() { *m = TransactionDetails{} }
func
(
m
*
TransactionDetails
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransactionDetails
)
ProtoMessage
()
{}
func
(
*
TransactionDetails
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
30
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
30
}
}
func
(
m
*
TransactionDetails
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransactionDetails
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransactionDetails
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransactionDetails
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransactionDetails
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransactionDetails
.
Merge
(
m
,
src
)
func
(
dst
*
TransactionDetails
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransactionDetails
.
Merge
(
dst
,
src
)
}
func
(
m
*
TransactionDetails
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransactionDetails
.
Size
(
m
)
...
...
@@ -1870,17 +1836,16 @@ func (m *ReqAddrs) Reset() { *m = ReqAddrs{} }
func
(
m
*
ReqAddrs
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqAddrs
)
ProtoMessage
()
{}
func
(
*
ReqAddrs
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
31
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
31
}
}
func
(
m
*
ReqAddrs
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqAddrs
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqAddrs
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqAddrs
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqAddrs
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqAddrs
.
Merge
(
m
,
src
)
func
(
dst
*
ReqAddrs
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqAddrs
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqAddrs
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqAddrs
.
Size
(
m
)
...
...
@@ -1909,17 +1874,16 @@ func (m *ReqDecodeRawTransaction) Reset() { *m = ReqDecodeRawTransaction
func
(
m
*
ReqDecodeRawTransaction
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqDecodeRawTransaction
)
ProtoMessage
()
{}
func
(
*
ReqDecodeRawTransaction
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
32
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
32
}
}
func
(
m
*
ReqDecodeRawTransaction
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqDecodeRawTransaction
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqDecodeRawTransaction
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqDecodeRawTransaction
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqDecodeRawTransaction
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqDecodeRawTransaction
.
Merge
(
m
,
src
)
func
(
dst
*
ReqDecodeRawTransaction
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqDecodeRawTransaction
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqDecodeRawTransaction
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqDecodeRawTransaction
.
Size
(
m
)
...
...
@@ -1949,17 +1913,16 @@ func (m *UserWrite) Reset() { *m = UserWrite{} }
func
(
m
*
UserWrite
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UserWrite
)
ProtoMessage
()
{}
func
(
*
UserWrite
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
33
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
33
}
}
func
(
m
*
UserWrite
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UserWrite
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
UserWrite
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_UserWrite
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
UserWrite
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_UserWrite
.
Merge
(
m
,
src
)
func
(
dst
*
UserWrite
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_UserWrite
.
Merge
(
dst
,
src
)
}
func
(
m
*
UserWrite
)
XXX_Size
()
int
{
return
xxx_messageInfo_UserWrite
.
Size
(
m
)
...
...
@@ -1997,17 +1960,16 @@ func (m *UpgradeMeta) Reset() { *m = UpgradeMeta{} }
func
(
m
*
UpgradeMeta
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UpgradeMeta
)
ProtoMessage
()
{}
func
(
*
UpgradeMeta
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
2cc4e03d2c28c490
,
[]
int
{
34
}
return
fileDescriptor_
transaction_5d666f0bb41864e5
,
[]
int
{
34
}
}
func
(
m
*
UpgradeMeta
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UpgradeMeta
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
UpgradeMeta
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_UpgradeMeta
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
UpgradeMeta
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_UpgradeMeta
.
Merge
(
m
,
src
)
func
(
dst
*
UpgradeMeta
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_UpgradeMeta
.
Merge
(
dst
,
src
)
}
func
(
m
*
UpgradeMeta
)
XXX_Size
()
int
{
return
xxx_messageInfo_UpgradeMeta
.
Size
(
m
)
...
...
@@ -2077,9 +2039,9 @@ func init() {
proto
.
RegisterType
((
*
UpgradeMeta
)(
nil
),
"types.UpgradeMeta"
)
}
func
init
()
{
proto
.
RegisterFile
(
"transaction.proto"
,
fileDescriptor_
2cc4e03d2c28c490
)
}
func
init
()
{
proto
.
RegisterFile
(
"transaction.proto"
,
fileDescriptor_
transaction_5d666f0bb41864e5
)
}
var
fileDescriptor_
2cc4e03d2c28c490
=
[]
byte
{
var
fileDescriptor_
transaction_5d666f0bb41864e5
=
[]
byte
{
// 1332 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xc4
,
0x57
,
0xdd
,
0x6e
,
0x13
,
0x47
,
0x14
,
0xd6
,
0xee
,
0xda
,
0x89
,
0x7d
,
0x6c
,
0x28
,
0x59
,
0x21
,
0xb0
,
0x10
,
0x85
,
0x74
,
0x44
,
0x25
,
...
...
vendor/github.com/33cn/chain33/types/wallet.pb.go
View file @
44deaf4c
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: wallet.proto
package
types
package
types
// import "github.com/33cn/chain33/types"
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -21,7 +18,7 @@ var _ = math.Inf
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
//钱包模块存贮的tx交易详细信息
//
钱包模块存贮的tx交易详细信息
// tx : tx交易信息
// receipt :交易收据信息
// height :交易所在的区块高度
...
...
@@ -52,17 +49,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletTxDetail
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletTxDetail
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletTxDetail
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletTxDetail
.
Size
(
m
)
...
...
@@ -154,17 +150,16 @@ func (m *WalletTxDetails) Reset() { *m = WalletTxDetails{} }
func
(
m
*
WalletTxDetails
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletTxDetails
)
ProtoMessage
()
{}
func
(
*
WalletTxDetails
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
1
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletTxDetails
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletTxDetails
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletTxDetails
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletTxDetails
.
Size
(
m
)
...
...
@@ -182,7 +177,7 @@ func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail {
return
nil
}
//钱包模块存贮的账户信息
//
钱包模块存贮的账户信息
// privkey : 账户地址对应的私钥
// label :账户地址对应的标签
// addr :账户地址
...
...
@@ -201,17 +196,16 @@ func (m *WalletAccountStore) Reset() { *m = WalletAccountStore{} }
func
(
m
*
WalletAccountStore
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletAccountStore
)
ProtoMessage
()
{}
func
(
*
WalletAccountStore
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
2
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletAccountStore
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletAccountStore
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletAccountStore
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletAccountStore
.
Size
(
m
)
...
...
@@ -250,7 +244,7 @@ func (m *WalletAccountStore) GetTimeStamp() string {
return
""
}
//钱包模块通过一个随机值对钱包密码加密
//
钱包模块通过一个随机值对钱包密码加密
// pwHash : 对钱包密码和一个随机值组合进行哈希计算
// randstr :对钱包密码加密的一个随机值
type
WalletPwHash
struct
{
...
...
@@ -265,17 +259,16 @@ func (m *WalletPwHash) Reset() { *m = WalletPwHash{} }
func
(
m
*
WalletPwHash
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletPwHash
)
ProtoMessage
()
{}
func
(
*
WalletPwHash
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
3
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletPwHash
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletPwHash
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletPwHash
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletPwHash
.
Size
(
m
)
...
...
@@ -300,7 +293,7 @@ func (m *WalletPwHash) GetRandstr() string {
return
""
}
//钱包当前的状态
//
钱包当前的状态
// isWalletLock : 钱包是否锁状态,true锁定,false解锁
// isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
// isHasSeed : 钱包是否有种子,true已有,false没有
...
...
@@ -319,17 +312,16 @@ func (m *WalletStatus) Reset() { *m = WalletStatus{} }
func
(
m
*
WalletStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletStatus
)
ProtoMessage
()
{}
func
(
*
WalletStatus
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
4
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletStatus
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletStatus
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletStatus
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletStatus
.
Size
(
m
)
...
...
@@ -379,17 +371,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
int
{
5
}
}
func
(
m
*
WalletAccounts
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_WalletAccounts
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
WalletAccounts
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletAccounts
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletAccounts
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletAccounts
.
Size
(
m
)
...
...
@@ -419,17 +410,16 @@ func (m *WalletAccount) Reset() { *m = WalletAccount{} }
func
(
m
*
WalletAccount
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletAccount
)
ProtoMessage
()
{}
func
(
*
WalletAccount
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
6
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletAccount
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletAccount
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletAccount
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletAccount
.
Size
(
m
)
...
...
@@ -454,7 +444,7 @@ func (m *WalletAccount) GetLabel() string {
return
""
}
//钱包解锁
//
钱包解锁
// passwd : 钱包密码
// timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
// walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
...
...
@@ -471,17 +461,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
WalletUnLock
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_WalletUnLock
.
Merge
(
dst
,
src
)
}
func
(
m
*
WalletUnLock
)
XXX_Size
()
int
{
return
xxx_messageInfo_WalletUnLock
.
Size
(
m
)
...
...
@@ -524,17 +513,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
GenSeedLang
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_GenSeedLang
.
Merge
(
dst
,
src
)
}
func
(
m
*
GenSeedLang
)
XXX_Size
()
int
{
return
xxx_messageInfo_GenSeedLang
.
Size
(
m
)
...
...
@@ -563,17 +551,16 @@ func (m *GetSeedByPw) Reset() { *m = GetSeedByPw{} }
func
(
m
*
GetSeedByPw
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetSeedByPw
)
ProtoMessage
()
{}
func
(
*
GetSeedByPw
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
9
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
GetSeedByPw
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_GetSeedByPw
.
Merge
(
dst
,
src
)
}
func
(
m
*
GetSeedByPw
)
XXX_Size
()
int
{
return
xxx_messageInfo_GetSeedByPw
.
Size
(
m
)
...
...
@@ -591,7 +578,7 @@ func (m *GetSeedByPw) GetPasswd() string {
return
""
}
//存储钱包的种子
//
存储钱包的种子
// seed : 钱包种子
// passwd :钱包密码
type
SaveSeedByPw
struct
{
...
...
@@ -606,17 +593,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
SaveSeedByPw
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_SaveSeedByPw
.
Merge
(
dst
,
src
)
}
func
(
m
*
SaveSeedByPw
)
XXX_Size
()
int
{
return
xxx_messageInfo_SaveSeedByPw
.
Size
(
m
)
...
...
@@ -652,17 +638,16 @@ func (m *ReplySeed) Reset() { *m = ReplySeed{} }
func
(
m
*
ReplySeed
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplySeed
)
ProtoMessage
()
{}
func
(
*
ReplySeed
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
11
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReplySeed
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplySeed
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplySeed
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplySeed
.
Size
(
m
)
...
...
@@ -692,17 +677,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletSetPasswd
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletSetPasswd
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletSetPasswd
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletSetPasswd
.
Size
(
m
)
...
...
@@ -738,17 +722,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
int
{
13
}
}
func
(
m
*
ReqNewAccount
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqNewAccount
.
Unmarshal
(
m
,
b
)
}
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
(
dst
*
ReqNewAccount
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqNewAccount
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqNewAccount
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqNewAccount
.
Size
(
m
)
...
...
@@ -766,7 +749,7 @@ func (m *ReqNewAccount) GetLabel() string {
return
""
}
//获取钱包交易的详细信息
//
获取钱包交易的详细信息
// fromTx : []byte( Sprintf("%018d", height*100000 + index),
// 表示从高度 height 中的 index 开始获取交易列表;
// 第一次传参为空,获取最新的交易。)
...
...
@@ -785,17 +768,16 @@ func (m *ReqWalletTransactionList) Reset() { *m = ReqWalletTransactionLi
func
(
m
*
ReqWalletTransactionList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqWalletTransactionList
)
ProtoMessage
()
{}
func
(
*
ReqWalletTransactionList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
14
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletTransactionList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletTransactionList
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletTransactionList
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletTransactionList
.
Size
(
m
)
...
...
@@ -840,17 +822,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletImportPrivkey
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletImportPrivkey
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletImportPrivkey
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletImportPrivkey
.
Size
(
m
)
...
...
@@ -875,7 +856,7 @@ func (m *ReqWalletImportPrivkey) GetLabel() string {
return
""
}
//发送交易
//
发送交易
// from : 打出地址
// to :接受地址
// amount : 转账额度
...
...
@@ -896,17 +877,16 @@ func (m *ReqWalletSendToAddress) Reset() { *m = ReqWalletSendToAddress{}
func
(
m
*
ReqWalletSendToAddress
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqWalletSendToAddress
)
ProtoMessage
()
{}
func
(
*
ReqWalletSendToAddress
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
16
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletSendToAddress
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletSendToAddress
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletSendToAddress
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletSendToAddress
.
Size
(
m
)
...
...
@@ -970,17 +950,16 @@ func (m *ReqWalletSetFee) Reset() { *m = ReqWalletSetFee{} }
func
(
m
*
ReqWalletSetFee
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqWalletSetFee
)
ProtoMessage
()
{}
func
(
*
ReqWalletSetFee
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
17
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletSetFee
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletSetFee
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletSetFee
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletSetFee
.
Size
(
m
)
...
...
@@ -1010,17 +989,16 @@ func (m *ReqWalletSetLabel) Reset() { *m = ReqWalletSetLabel{} }
func
(
m
*
ReqWalletSetLabel
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqWalletSetLabel
)
ProtoMessage
()
{}
func
(
*
ReqWalletSetLabel
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
18
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletSetLabel
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletSetLabel
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletSetLabel
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletSetLabel
.
Size
(
m
)
...
...
@@ -1056,17 +1034,16 @@ func (m *ReqWalletMergeBalance) Reset() { *m = ReqWalletMergeBalance{} }
func
(
m
*
ReqWalletMergeBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqWalletMergeBalance
)
ProtoMessage
()
{}
func
(
*
ReqWalletMergeBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
19
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqWalletMergeBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqWalletMergeBalance
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqWalletMergeBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqWalletMergeBalance
.
Size
(
m
)
...
...
@@ -1101,17 +1078,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqTokenPreCreate
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqTokenPreCreate
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqTokenPreCreate
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqTokenPreCreate
.
Size
(
m
)
...
...
@@ -1184,17 +1160,16 @@ func (m *ReqTokenFinishCreate) Reset() { *m = ReqTokenFinishCreate{} }
func
(
m
*
ReqTokenFinishCreate
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqTokenFinishCreate
)
ProtoMessage
()
{}
func
(
*
ReqTokenFinishCreate
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
21
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqTokenFinishCreate
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqTokenFinishCreate
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqTokenFinishCreate
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqTokenFinishCreate
.
Size
(
m
)
...
...
@@ -1239,17 +1214,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqTokenRevokeCreate
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqTokenRevokeCreate
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqTokenRevokeCreate
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqTokenRevokeCreate
.
Size
(
m
)
...
...
@@ -1295,17 +1269,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqModifyConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqModifyConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqModifyConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqModifyConfig
.
Size
(
m
)
...
...
@@ -1367,17 +1340,16 @@ func (m *ReqSignRawTx) Reset() { *m = ReqSignRawTx{} }
func
(
m
*
ReqSignRawTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqSignRawTx
)
ProtoMessage
()
{}
func
(
*
ReqSignRawTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
24
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqSignRawTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqSignRawTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqSignRawTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqSignRawTx
.
Size
(
m
)
...
...
@@ -1462,17 +1434,16 @@ func (m *ReplySignRawTx) Reset() { *m = ReplySignRawTx{} }
func
(
m
*
ReplySignRawTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplySignRawTx
)
ProtoMessage
()
{}
func
(
*
ReplySignRawTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
25
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReplySignRawTx
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplySignRawTx
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplySignRawTx
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplySignRawTx
.
Size
(
m
)
...
...
@@ -1503,17 +1474,16 @@ func (m *ReportErrEvent) Reset() { *m = ReportErrEvent{} }
func
(
m
*
ReportErrEvent
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReportErrEvent
)
ProtoMessage
()
{}
func
(
*
ReportErrEvent
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
26
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReportErrEvent
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReportErrEvent
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReportErrEvent
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReportErrEvent
.
Size
(
m
)
...
...
@@ -1556,17 +1526,16 @@ func (m *Int32) Reset() { *m = Int32{} }
func
(
m
*
Int32
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Int32
)
ProtoMessage
()
{}
func
(
*
Int32
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_
b88fd140af4deb6f
,
[]
int
{
27
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
Int32
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Int32
.
Merge
(
dst
,
src
)
}
func
(
m
*
Int32
)
XXX_Size
()
int
{
return
xxx_messageInfo_Int32
.
Size
(
m
)
...
...
@@ -1612,17 +1581,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqCreateTransaction
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqCreateTransaction
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqCreateTransaction
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqCreateTransaction
.
Size
(
m
)
...
...
@@ -1707,17 +1675,16 @@ 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
}
return
fileDescriptor_
wallet_eef25aa2c816ecd6
,
[]
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
(
dst
*
ReqAccountList
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqAccountList
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqAccountList
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqAccountList
.
Size
(
m
)
...
...
@@ -1768,9 +1735,9 @@ func init() {
proto
.
RegisterType
((
*
ReqAccountList
)(
nil
),
"types.ReqAccountList"
)
}
func
init
()
{
proto
.
RegisterFile
(
"wallet.proto"
,
fileDescriptor_
b88fd140af4deb6f
)
}
func
init
()
{
proto
.
RegisterFile
(
"wallet.proto"
,
fileDescriptor_
wallet_eef25aa2c816ecd6
)
}
var
fileDescriptor_
b88fd140af4deb6f
=
[]
byte
{
var
fileDescriptor_
wallet_eef25aa2c816ecd6
=
[]
byte
{
// 1305 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xa4
,
0x56
,
0x5f
,
0x6e
,
0x1b
,
0x37
,
0x13
,
0xc7
,
0x4a
,
0x96
,
0x6d
,
0xd1
,
0xb2
,
0x93
,
0x2c
,
0x92
,
0x40
,
0xf0
,
0xf7
,
0x25
,
0x71
,
0x58
,
...
...
vendor/github.com/33cn/chain33/util/exec.go
View file @
44deaf4c
...
...
@@ -35,6 +35,7 @@ func ExecTx(client queue.Client, prevStateRoot []byte, block *types.Block) (*typ
StateHash
:
prevStateRoot
,
ParentHash
:
block
.
ParentHash
,
MainHash
:
block
.
MainHash
,
MainHeight
:
block
.
MainHeight
,
Txs
:
block
.
Txs
,
BlockTime
:
block
.
BlockTime
,
Height
:
block
.
Height
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment