• F
    eth: limit number of sent transactions based on message size · 6c73a598
    Felix Lange 提交于
    Nodes that are out of sync will queue many transactions, which causes
    the initial transactions message to grow very large. Larger transactions
    messages can make communication impossible if the message is too big to
    send. Big transactions messages also exhaust egress bandwidth, which
    degrades other peer connections.
    
    The new approach to combat these issues is to send transactions in
    smaller batches. This commit introduces a new goroutine that handles
    delivery of all initial transaction transfers. Size-limited packs of
    transactions are sent to one peer at a time, conserving precious egress
    bandwidth.
    6c73a598
sync.go 10.3 KB