mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
fix: Fix slice index bug
This commit is contained in:
parent
3f9e1229ea
commit
8a8fef540a
1 changed files with 2 additions and 2 deletions
|
|
@ -439,8 +439,8 @@ func (f *TxFetcher) loop() {
|
||||||
if want > maxTxAnnounces {
|
if want > maxTxAnnounces {
|
||||||
txAnnounceDOSMeter.Mark(int64(want - maxTxAnnounces))
|
txAnnounceDOSMeter.Mark(int64(want - maxTxAnnounces))
|
||||||
|
|
||||||
ann.hashes = ann.hashes[:want-maxTxAnnounces]
|
ann.hashes = ann.hashes[:maxTxAnnounces-used]
|
||||||
ann.metas = ann.metas[:want-maxTxAnnounces]
|
ann.metas = ann.metas[:maxTxAnnounces-used]
|
||||||
}
|
}
|
||||||
// All is well, schedule the remainder of the transactions
|
// All is well, schedule the remainder of the transactions
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue