mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
Remove a couple of incorrect comments.
This commit is contained in:
parent
d54fba85b4
commit
65eae18285
3 changed files with 0 additions and 3 deletions
|
@ -111,7 +111,6 @@ func TestVarIntWireErrors(t *testing.T) {
|
||||||
writeErr error // Expected write error
|
writeErr error // Expected write error
|
||||||
readErr error // Expected read error
|
readErr error // Expected read error
|
||||||
}{
|
}{
|
||||||
// Latest protocol version with intentional read/write errors.
|
|
||||||
// Force errors on discriminant.
|
// Force errors on discriminant.
|
||||||
{0, []byte{0x00}, pver, 0, io.ErrShortWrite, io.EOF},
|
{0, []byte{0x00}, pver, 0, io.ErrShortWrite, io.EOF},
|
||||||
// Force errors on 2-byte read/write.
|
// Force errors on 2-byte read/write.
|
||||||
|
|
|
@ -311,7 +311,6 @@ func TestGetHeadersWireErrors(t *testing.T) {
|
||||||
}
|
}
|
||||||
maxGetHeaders.BlockLocatorHashes = append(maxGetHeaders.BlockLocatorHashes,
|
maxGetHeaders.BlockLocatorHashes = append(maxGetHeaders.BlockLocatorHashes,
|
||||||
&btcwire.GenesisHash)
|
&btcwire.GenesisHash)
|
||||||
//maxGetHeaders.InvList = append(maxGetData.InvList, iv)
|
|
||||||
maxGetHeadersEncoded := []byte{
|
maxGetHeadersEncoded := []byte{
|
||||||
0x62, 0xea, 0x00, 0x00, // Protocol version 60002
|
0x62, 0xea, 0x00, 0x00, // Protocol version 60002
|
||||||
0xfd, 0xf5, 0x01, // Varint for number of block loc hashes (501)
|
0xfd, 0xf5, 0x01, // Varint for number of block loc hashes (501)
|
||||||
|
|
|
@ -268,7 +268,6 @@ func TestNotFoundWireErrors(t *testing.T) {
|
||||||
writeErr error // Expected write error
|
writeErr error // Expected write error
|
||||||
readErr error // Expected read error
|
readErr error // Expected read error
|
||||||
}{
|
}{
|
||||||
// Latest protocol version with intentional read/write errors.
|
|
||||||
// Force error in inventory vector count
|
// Force error in inventory vector count
|
||||||
{baseNotFound, baseNotFoundEncoded, pver, 0, io.ErrShortWrite, io.EOF},
|
{baseNotFound, baseNotFoundEncoded, pver, 0, io.ErrShortWrite, io.EOF},
|
||||||
// Force error in inventory list.
|
// Force error in inventory list.
|
||||||
|
|
Loading…
Add table
Reference in a new issue