Update tests for corrected max block payload size.

This commit is contained in:
Dave Collins 2013-07-27 15:32:01 -05:00
parent 9989865fa2
commit 90bf9e7449

View file

@ -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 "+