mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 02:52:19 +00:00
s
This commit is contained in:
parent
62390de485
commit
e866d47c1b
@ -104,7 +104,7 @@ func ParseGetPooledTransactions66(payload []byte, pos int, hashbuf []byte) (requ
|
|||||||
}
|
}
|
||||||
hashes = ensureEnoughSize(hashbuf, 32*hashesCount)
|
hashes = ensureEnoughSize(hashbuf, 32*hashesCount)
|
||||||
|
|
||||||
for i := 0; pos != len(payload); i++ {
|
for i := 0; pos < len(payload); i++ {
|
||||||
pos, err = rlp.ParseHash(payload, pos, hashes[i*32:])
|
pos, err = rlp.ParseHash(payload, pos, hashes[i*32:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, hashes, 0, err
|
return 0, hashes, 0, err
|
||||||
@ -126,7 +126,7 @@ func ParseGetPooledTransactions65(payload []byte, pos int, hashbuf []byte) (hash
|
|||||||
}
|
}
|
||||||
hashes = ensureEnoughSize(hashbuf, 32*hashesCount)
|
hashes = ensureEnoughSize(hashbuf, 32*hashesCount)
|
||||||
|
|
||||||
for i := 0; pos != len(payload); i++ {
|
for i := 0; pos < len(payload); i++ {
|
||||||
pos, err = rlp.ParseHash(payload, pos, hashes[i*32:])
|
pos, err = rlp.ParseHash(payload, pos, hashes[i*32:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return hashes, 0, err
|
return hashes, 0, err
|
||||||
|
Loading…
Reference in New Issue
Block a user