Skip to content

Commit

Permalink
fix eth67 protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng762 committed Nov 20, 2023
1 parent 5bd8471 commit a54bab2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion eth/protocols/eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ var eth67 = map[uint64]msgHandler{
PPOSStorageV2Msg: handlePPosStorageV2Msg,
GetOriginAndPivotMsg: handleGetOriginAndPivotMsg,
OriginAndPivotMsg: handleOriginAndPivotMsg,
PPOSInfoMsg: handlePPOSInfoMsg,
}

// handleMessage is invoked whenever an inbound message is received from a remote
Expand Down
2 changes: 1 addition & 1 deletion eth/protocols/eth/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var ProtocolVersions = []uint{ETH67, ETH66}

// protocolLengths are the number of implemented message corresponding to
// different protocol versions.
var protocolLengths = map[uint]uint64{ETH67: 17, ETH66: 40}
var protocolLengths = map[uint]uint64{ETH67: 40, ETH66: 40}

// maxMessageSize is the maximum cap on the size of a protocol message.
const maxMessageSize = 10 * 1024 * 1024
Expand Down

0 comments on commit a54bab2

Please sign in to comment.