Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
张蕾
Geth-Modification
Commits
80441779
Unverified
Commit
80441779
authored
1 year ago
by
Delweng
Committed by
GitHub
1 year ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/protocols: put protocols in order (#27543)
Signed-off-by:
jsvisa
<
delweng@gmail.com
>
parent
2754b197
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
protocol.go
eth/protocols/eth/protocol.go
+14
-15
No files found.
eth/protocols/eth/protocol.go
View file @
80441779
...
...
@@ -59,13 +59,13 @@ const (
GetBlockBodiesMsg
=
0x05
BlockBodiesMsg
=
0x06
NewBlockMsg
=
0x07
NewPooledTransactionHashesMsg
=
0x08
GetPooledTransactionsMsg
=
0x09
PooledTransactionsMsg
=
0x0a
GetNodeDataMsg
=
0x0d
NodeDataMsg
=
0x0e
GetReceiptsMsg
=
0x0f
ReceiptsMsg
=
0x10
NewPooledTransactionHashesMsg
=
0x08
GetPooledTransactionsMsg
=
0x09
PooledTransactionsMsg
=
0x0a
)
var
(
...
...
@@ -363,6 +363,17 @@ func (*BlockBodiesPacket) Kind() byte { return BlockBodiesMsg }
func
(
*
NewBlockPacket
)
Name
()
string
{
return
"NewBlock"
}
func
(
*
NewBlockPacket
)
Kind
()
byte
{
return
NewBlockMsg
}
func
(
*
NewPooledTransactionHashesPacket66
)
Name
()
string
{
return
"NewPooledTransactionHashes"
}
func
(
*
NewPooledTransactionHashesPacket66
)
Kind
()
byte
{
return
NewPooledTransactionHashesMsg
}
func
(
*
NewPooledTransactionHashesPacket68
)
Name
()
string
{
return
"NewPooledTransactionHashes"
}
func
(
*
NewPooledTransactionHashesPacket68
)
Kind
()
byte
{
return
NewPooledTransactionHashesMsg
}
func
(
*
GetPooledTransactionsPacket
)
Name
()
string
{
return
"GetPooledTransactions"
}
func
(
*
GetPooledTransactionsPacket
)
Kind
()
byte
{
return
GetPooledTransactionsMsg
}
func
(
*
PooledTransactionsPacket
)
Name
()
string
{
return
"PooledTransactions"
}
func
(
*
PooledTransactionsPacket
)
Kind
()
byte
{
return
PooledTransactionsMsg
}
func
(
*
GetNodeDataPacket
)
Name
()
string
{
return
"GetNodeData"
}
func
(
*
GetNodeDataPacket
)
Kind
()
byte
{
return
GetNodeDataMsg
}
...
...
@@ -374,15 +385,3 @@ func (*GetReceiptsPacket) Kind() byte { return GetReceiptsMsg }
func
(
*
ReceiptsPacket
)
Name
()
string
{
return
"Receipts"
}
func
(
*
ReceiptsPacket
)
Kind
()
byte
{
return
ReceiptsMsg
}
func
(
*
NewPooledTransactionHashesPacket66
)
Name
()
string
{
return
"NewPooledTransactionHashes"
}
func
(
*
NewPooledTransactionHashesPacket66
)
Kind
()
byte
{
return
NewPooledTransactionHashesMsg
}
func
(
*
NewPooledTransactionHashesPacket68
)
Name
()
string
{
return
"NewPooledTransactionHashes"
}
func
(
*
NewPooledTransactionHashesPacket68
)
Kind
()
byte
{
return
NewPooledTransactionHashesMsg
}
func
(
*
GetPooledTransactionsPacket
)
Name
()
string
{
return
"GetPooledTransactions"
}
func
(
*
GetPooledTransactionsPacket
)
Kind
()
byte
{
return
GetPooledTransactionsMsg
}
func
(
*
PooledTransactionsPacket
)
Name
()
string
{
return
"PooledTransactions"
}
func
(
*
PooledTransactionsPacket
)
Kind
()
byte
{
return
PooledTransactionsMsg
}
This diff is collapsed.
Click to expand it.
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