We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7e61de commit 1d1af11Copy full SHA for 1d1af11
p2p/rpc_changeset.go
@@ -36,7 +36,7 @@ func (c *Connection) ChangeSet(request ChangeList, response *Changes) (err error
36
37
c.update(&request.Common) // update common information
38
39
- previous_topo := request.TopoHeights[0] // used to verify the topo heights are in order
+ previous_topo := request.TopoHeights[0] - 1 // used to verify the topo heights are in order
40
// first requested topo can't be higher than chain AND can't be lower than 10 (because of connection.TopoHeight-50-max_request_topoheights < 10)
41
if previous_topo > chain.Load_TOPO_HEIGHT() || previous_topo < 10 {
42
c.logger.V(1).Info("malformed object request received, banning peer", "request", request)
0 commit comments