diff --git a/msgtx.go b/msgtx.go index 91f4c127..0e5b1d1b 100644 --- a/msgtx.go +++ b/msgtx.go @@ -300,7 +300,7 @@ func (msg *MsgTx) Command() string { // MaxPayloadLength returns the maximum length the payload can be for the // receiver. This is part of the Message interface implementation. func (msg *MsgTx) MaxPayloadLength(pver uint32) uint32 { - return maxMessagePayload + return MaxBlockPayload } // NewMsgTx returns a new bitcoin tx message that conforms to the Message diff --git a/msgtx_test.go b/msgtx_test.go index 85a511ed..9f003dc1 100644 --- a/msgtx_test.go +++ b/msgtx_test.go @@ -34,7 +34,7 @@ func TestTx(t *testing.T) { // Ensure max payload is expected value for latest protocol version. // Num addresses (varInt) + max allowed addresses. - wantPayload := uint32(1024 * 1024 * 32) + wantPayload := uint32(1000 * 1000) maxPayload := msg.MaxPayloadLength(pver) if maxPayload != wantPayload { t.Errorf("MaxPayloadLength: wrong max payload length for "+