Skip to content

Commit a0ffcdd

Browse files
8lecrammNelbert442
authored andcommitted
Fix broken fastsync (deroproject#149)
1 parent 803fb44 commit a0ffcdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/rpc_changeset.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (c *Connection) ChangeSet(request ChangeList, response *Changes) (err error
3636

3737
c.update(&request.Common) // update common information
3838

39-
previous_topo := request.TopoHeights[0] // used to verify the topo heights are in order
39+
previous_topo := request.TopoHeights[0] - 1 // used to verify the topo heights are in order
4040
// 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)
4141
if previous_topo > chain.Load_TOPO_HEIGHT() || previous_topo < 10 {
4242
c.logger.V(1).Info("malformed object request received, banning peer", "request", request)

0 commit comments

Comments
 (0)