Update tests for corrected max block payload size.
This commit is contained in:
parent
9989865fa2
commit
90bf9e7449
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ func TestBlock(t *testing.T) {
|
||||||
|
|
||||||
// Ensure max payload is expected value for latest protocol version.
|
// Ensure max payload is expected value for latest protocol version.
|
||||||
// Num addresses (varInt) + max allowed addresses.
|
// Num addresses (varInt) + max allowed addresses.
|
||||||
wantPayload := uint32(1024 * 1024)
|
wantPayload := uint32(1000000)
|
||||||
maxPayload := msg.MaxPayloadLength(pver)
|
maxPayload := msg.MaxPayloadLength(pver)
|
||||||
if maxPayload != wantPayload {
|
if maxPayload != wantPayload {
|
||||||
t.Errorf("MaxPayloadLength: wrong max payload length for "+
|
t.Errorf("MaxPayloadLength: wrong max payload length for "+
|
||||||
|
|
Loading…
Reference in a new issue