github.com/annchain/OG@v0.0.9/og/protocol/ogmessage/archive/messages_gen.go (about)

     1  package archive
     2  
     3  // Code generated by github.com/tinylib/msgp DO NOT EDIT.
     4  
     5  import (
     6  	"github.com/annchain/OG/arefactor/og/types"
     7  	"github.com/annchain/OG/og/protocol/dagmessage"
     8  	"github.com/tinylib/msgp/msgp"
     9  )
    10  
    11  // DecodeMsg implements msgp.Decodable
    12  func (z *MessageAnnsensus) DecodeMsg(dc *msgp.Reader) (err error) {
    13  	var zb0001 uint32
    14  	zb0001, err = dc.ReadArrayHeader()
    15  	if err != nil {
    16  		err = msgp.WrapError(err)
    17  		return
    18  	}
    19  	if zb0001 != 2 {
    20  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
    21  		return
    22  	}
    23  	err = z.InnerMessageType.DecodeMsg(dc)
    24  	if err != nil {
    25  		err = msgp.WrapError(err, "InnerMessageType")
    26  		return
    27  	}
    28  	z.InnerMessage, err = dc.ReadBytes(z.InnerMessage)
    29  	if err != nil {
    30  		err = msgp.WrapError(err, "InnerMessage")
    31  		return
    32  	}
    33  	return
    34  }
    35  
    36  // EncodeMsg implements msgp.Encodable
    37  func (z *MessageAnnsensus) EncodeMsg(en *msgp.Writer) (err error) {
    38  	// array header, size 2
    39  	err = en.Append(0x92)
    40  	if err != nil {
    41  		return
    42  	}
    43  	err = z.InnerMessageType.EncodeMsg(en)
    44  	if err != nil {
    45  		err = msgp.WrapError(err, "InnerMessageType")
    46  		return
    47  	}
    48  	err = en.WriteBytes(z.InnerMessage)
    49  	if err != nil {
    50  		err = msgp.WrapError(err, "InnerMessage")
    51  		return
    52  	}
    53  	return
    54  }
    55  
    56  // MarshalMsg implements msgp.Marshaler
    57  func (z *MessageAnnsensus) MarshalMsg(b []byte) (o []byte, err error) {
    58  	o = msgp.Require(b, z.Msgsize())
    59  	// array header, size 2
    60  	o = append(o, 0x92)
    61  	o, err = z.InnerMessageType.MarshalMsg(o)
    62  	if err != nil {
    63  		err = msgp.WrapError(err, "InnerMessageType")
    64  		return
    65  	}
    66  	o = msgp.AppendBytes(o, z.InnerMessage)
    67  	return
    68  }
    69  
    70  // UnmarshalMsg implements msgp.Unmarshaler
    71  func (z *MessageAnnsensus) UnmarshalMsg(bts []byte) (o []byte, err error) {
    72  	var zb0001 uint32
    73  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
    74  	if err != nil {
    75  		err = msgp.WrapError(err)
    76  		return
    77  	}
    78  	if zb0001 != 2 {
    79  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
    80  		return
    81  	}
    82  	bts, err = z.InnerMessageType.UnmarshalMsg(bts)
    83  	if err != nil {
    84  		err = msgp.WrapError(err, "InnerMessageType")
    85  		return
    86  	}
    87  	z.InnerMessage, bts, err = msgp.ReadBytesBytes(bts, z.InnerMessage)
    88  	if err != nil {
    89  		err = msgp.WrapError(err, "InnerMessage")
    90  		return
    91  	}
    92  	o = bts
    93  	return
    94  }
    95  
    96  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    97  func (z *MessageAnnsensus) Msgsize() (s int) {
    98  	s = 1 + z.InnerMessageType.Msgsize() + msgp.BytesPrefixSize + len(z.InnerMessage)
    99  	return
   100  }
   101  
   102  // DecodeMsg implements msgp.Decodable
   103  func (z *MessageBodiesRequest) DecodeMsg(dc *msgp.Reader) (err error) {
   104  	var zb0001 uint32
   105  	zb0001, err = dc.ReadArrayHeader()
   106  	if err != nil {
   107  		err = msgp.WrapError(err)
   108  		return
   109  	}
   110  	if zb0001 != 2 {
   111  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
   112  		return
   113  	}
   114  	err = z.SeqHashes.DecodeMsg(dc)
   115  	if err != nil {
   116  		err = msgp.WrapError(err, "SeqHashes")
   117  		return
   118  	}
   119  	z.RequestId, err = dc.ReadUint32()
   120  	if err != nil {
   121  		err = msgp.WrapError(err, "RequestId")
   122  		return
   123  	}
   124  	return
   125  }
   126  
   127  // EncodeMsg implements msgp.Encodable
   128  func (z *MessageBodiesRequest) EncodeMsg(en *msgp.Writer) (err error) {
   129  	// array header, size 2
   130  	err = en.Append(0x92)
   131  	if err != nil {
   132  		return
   133  	}
   134  	err = z.SeqHashes.EncodeMsg(en)
   135  	if err != nil {
   136  		err = msgp.WrapError(err, "SeqHashes")
   137  		return
   138  	}
   139  	err = en.WriteUint32(z.RequestId)
   140  	if err != nil {
   141  		err = msgp.WrapError(err, "RequestId")
   142  		return
   143  	}
   144  	return
   145  }
   146  
   147  // MarshalMsg implements msgp.Marshaler
   148  func (z *MessageBodiesRequest) MarshalMsg(b []byte) (o []byte, err error) {
   149  	o = msgp.Require(b, z.Msgsize())
   150  	// array header, size 2
   151  	o = append(o, 0x92)
   152  	o, err = z.SeqHashes.MarshalMsg(o)
   153  	if err != nil {
   154  		err = msgp.WrapError(err, "SeqHashes")
   155  		return
   156  	}
   157  	o = msgp.AppendUint32(o, z.RequestId)
   158  	return
   159  }
   160  
   161  // UnmarshalMsg implements msgp.Unmarshaler
   162  func (z *MessageBodiesRequest) UnmarshalMsg(bts []byte) (o []byte, err error) {
   163  	var zb0001 uint32
   164  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   165  	if err != nil {
   166  		err = msgp.WrapError(err)
   167  		return
   168  	}
   169  	if zb0001 != 2 {
   170  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
   171  		return
   172  	}
   173  	bts, err = z.SeqHashes.UnmarshalMsg(bts)
   174  	if err != nil {
   175  		err = msgp.WrapError(err, "SeqHashes")
   176  		return
   177  	}
   178  	z.RequestId, bts, err = msgp.ReadUint32Bytes(bts)
   179  	if err != nil {
   180  		err = msgp.WrapError(err, "RequestId")
   181  		return
   182  	}
   183  	o = bts
   184  	return
   185  }
   186  
   187  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   188  func (z *MessageBodiesRequest) Msgsize() (s int) {
   189  	s = 1 + z.SeqHashes.Msgsize() + msgp.Uint32Size
   190  	return
   191  }
   192  
   193  // DecodeMsg implements msgp.Decodable
   194  func (z *MessageBodiesResponse) DecodeMsg(dc *msgp.Reader) (err error) {
   195  	var zb0001 uint32
   196  	zb0001, err = dc.ReadArrayHeader()
   197  	if err != nil {
   198  		err = msgp.WrapError(err)
   199  		return
   200  	}
   201  	if zb0001 != 2 {
   202  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
   203  		return
   204  	}
   205  	var zb0002 uint32
   206  	zb0002, err = dc.ReadArrayHeader()
   207  	if err != nil {
   208  		err = msgp.WrapError(err, "Bodies")
   209  		return
   210  	}
   211  	if cap(z.Bodies) >= int(zb0002) {
   212  		z.Bodies = (z.Bodies)[:zb0002]
   213  	} else {
   214  		z.Bodies = make([]RawData, zb0002)
   215  	}
   216  	for za0001 := range z.Bodies {
   217  		err = z.Bodies[za0001].DecodeMsg(dc)
   218  		if err != nil {
   219  			err = msgp.WrapError(err, "Bodies", za0001)
   220  			return
   221  		}
   222  	}
   223  	z.RequestedId, err = dc.ReadUint32()
   224  	if err != nil {
   225  		err = msgp.WrapError(err, "RequestId")
   226  		return
   227  	}
   228  	return
   229  }
   230  
   231  // EncodeMsg implements msgp.Encodable
   232  func (z *MessageBodiesResponse) EncodeMsg(en *msgp.Writer) (err error) {
   233  	// array header, size 2
   234  	err = en.Append(0x92)
   235  	if err != nil {
   236  		return
   237  	}
   238  	err = en.WriteArrayHeader(uint32(len(z.Bodies)))
   239  	if err != nil {
   240  		err = msgp.WrapError(err, "Bodies")
   241  		return
   242  	}
   243  	for za0001 := range z.Bodies {
   244  		err = z.Bodies[za0001].EncodeMsg(en)
   245  		if err != nil {
   246  			err = msgp.WrapError(err, "Bodies", za0001)
   247  			return
   248  		}
   249  	}
   250  	err = en.WriteUint32(z.RequestedId)
   251  	if err != nil {
   252  		err = msgp.WrapError(err, "RequestId")
   253  		return
   254  	}
   255  	return
   256  }
   257  
   258  // MarshalMsg implements msgp.Marshaler
   259  func (z *MessageBodiesResponse) MarshalMsg(b []byte) (o []byte, err error) {
   260  	o = msgp.Require(b, z.Msgsize())
   261  	// array header, size 2
   262  	o = append(o, 0x92)
   263  	o = msgp.AppendArrayHeader(o, uint32(len(z.Bodies)))
   264  	for za0001 := range z.Bodies {
   265  		o, err = z.Bodies[za0001].MarshalMsg(o)
   266  		if err != nil {
   267  			err = msgp.WrapError(err, "Bodies", za0001)
   268  			return
   269  		}
   270  	}
   271  	o = msgp.AppendUint32(o, z.RequestedId)
   272  	return
   273  }
   274  
   275  // UnmarshalMsg implements msgp.Unmarshaler
   276  func (z *MessageBodiesResponse) UnmarshalMsg(bts []byte) (o []byte, err error) {
   277  	var zb0001 uint32
   278  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   279  	if err != nil {
   280  		err = msgp.WrapError(err)
   281  		return
   282  	}
   283  	if zb0001 != 2 {
   284  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
   285  		return
   286  	}
   287  	var zb0002 uint32
   288  	zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
   289  	if err != nil {
   290  		err = msgp.WrapError(err, "Bodies")
   291  		return
   292  	}
   293  	if cap(z.Bodies) >= int(zb0002) {
   294  		z.Bodies = (z.Bodies)[:zb0002]
   295  	} else {
   296  		z.Bodies = make([]RawData, zb0002)
   297  	}
   298  	for za0001 := range z.Bodies {
   299  		bts, err = z.Bodies[za0001].UnmarshalMsg(bts)
   300  		if err != nil {
   301  			err = msgp.WrapError(err, "Bodies", za0001)
   302  			return
   303  		}
   304  	}
   305  	z.RequestedId, bts, err = msgp.ReadUint32Bytes(bts)
   306  	if err != nil {
   307  		err = msgp.WrapError(err, "RequestId")
   308  		return
   309  	}
   310  	o = bts
   311  	return
   312  }
   313  
   314  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   315  func (z *MessageBodiesResponse) Msgsize() (s int) {
   316  	s = 1 + msgp.ArrayHeaderSize
   317  	for za0001 := range z.Bodies {
   318  		s += z.Bodies[za0001].Msgsize()
   319  	}
   320  	s += msgp.Uint32Size
   321  	return
   322  }
   323  
   324  // DecodeMsg implements msgp.Decodable
   325  func (z *MessageControl) DecodeMsg(dc *msgp.Reader) (err error) {
   326  	var zb0001 uint32
   327  	zb0001, err = dc.ReadArrayHeader()
   328  	if err != nil {
   329  		err = msgp.WrapError(err)
   330  		return
   331  	}
   332  	if zb0001 != 1 {
   333  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   334  		return
   335  	}
   336  	if dc.IsNil() {
   337  		err = dc.ReadNil()
   338  		if err != nil {
   339  			err = msgp.WrapError(err, "Hash")
   340  			return
   341  		}
   342  		z.Hash = nil
   343  	} else {
   344  		if z.Hash == nil {
   345  			z.Hash = new(types.Hash)
   346  		}
   347  		err = z.Hash.DecodeMsg(dc)
   348  		if err != nil {
   349  			err = msgp.WrapError(err, "Hash")
   350  			return
   351  		}
   352  	}
   353  	return
   354  }
   355  
   356  // EncodeMsg implements msgp.Encodable
   357  func (z *MessageControl) EncodeMsg(en *msgp.Writer) (err error) {
   358  	// array header, size 1
   359  	err = en.Append(0x91)
   360  	if err != nil {
   361  		return
   362  	}
   363  	if z.Hash == nil {
   364  		err = en.WriteNil()
   365  		if err != nil {
   366  			return
   367  		}
   368  	} else {
   369  		err = z.Hash.EncodeMsg(en)
   370  		if err != nil {
   371  			err = msgp.WrapError(err, "Hash")
   372  			return
   373  		}
   374  	}
   375  	return
   376  }
   377  
   378  // MarshalMsg implements msgp.Marshaler
   379  func (z *MessageControl) MarshalMsg(b []byte) (o []byte, err error) {
   380  	o = msgp.Require(b, z.Msgsize())
   381  	// array header, size 1
   382  	o = append(o, 0x91)
   383  	if z.Hash == nil {
   384  		o = msgp.AppendNil(o)
   385  	} else {
   386  		o, err = z.Hash.MarshalMsg(o)
   387  		if err != nil {
   388  			err = msgp.WrapError(err, "Hash")
   389  			return
   390  		}
   391  	}
   392  	return
   393  }
   394  
   395  // UnmarshalMsg implements msgp.Unmarshaler
   396  func (z *MessageControl) UnmarshalMsg(bts []byte) (o []byte, err error) {
   397  	var zb0001 uint32
   398  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   399  	if err != nil {
   400  		err = msgp.WrapError(err)
   401  		return
   402  	}
   403  	if zb0001 != 1 {
   404  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   405  		return
   406  	}
   407  	if msgp.IsNil(bts) {
   408  		bts, err = msgp.ReadNilBytes(bts)
   409  		if err != nil {
   410  			return
   411  		}
   412  		z.Hash = nil
   413  	} else {
   414  		if z.Hash == nil {
   415  			z.Hash = new(types.Hash)
   416  		}
   417  		bts, err = z.Hash.UnmarshalMsg(bts)
   418  		if err != nil {
   419  			err = msgp.WrapError(err, "Hash")
   420  			return
   421  		}
   422  	}
   423  	o = bts
   424  	return
   425  }
   426  
   427  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   428  func (z *MessageControl) Msgsize() (s int) {
   429  	s = 1
   430  	if z.Hash == nil {
   431  		s += msgp.NilSize
   432  	} else {
   433  		s += z.Hash.Msgsize()
   434  	}
   435  	return
   436  }
   437  
   438  // DecodeMsg implements msgp.Decodable
   439  func (z *MessageDuplicate) DecodeMsg(dc *msgp.Reader) (err error) {
   440  	{
   441  		var zb0001 bool
   442  		zb0001, err = dc.ReadBool()
   443  		if err != nil {
   444  			err = msgp.WrapError(err)
   445  			return
   446  		}
   447  		(*z) = MessageDuplicate(zb0001)
   448  	}
   449  	return
   450  }
   451  
   452  // EncodeMsg implements msgp.Encodable
   453  func (z MessageDuplicate) EncodeMsg(en *msgp.Writer) (err error) {
   454  	err = en.WriteBool(bool(z))
   455  	if err != nil {
   456  		err = msgp.WrapError(err)
   457  		return
   458  	}
   459  	return
   460  }
   461  
   462  // MarshalMsg implements msgp.Marshaler
   463  func (z MessageDuplicate) MarshalMsg(b []byte) (o []byte, err error) {
   464  	o = msgp.Require(b, z.Msgsize())
   465  	o = msgp.AppendBool(o, bool(z))
   466  	return
   467  }
   468  
   469  // UnmarshalMsg implements msgp.Unmarshaler
   470  func (z *MessageDuplicate) UnmarshalMsg(bts []byte) (o []byte, err error) {
   471  	{
   472  		var zb0001 bool
   473  		zb0001, bts, err = msgp.ReadBoolBytes(bts)
   474  		if err != nil {
   475  			err = msgp.WrapError(err)
   476  			return
   477  		}
   478  		(*z) = MessageDuplicate(zb0001)
   479  	}
   480  	o = bts
   481  	return
   482  }
   483  
   484  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   485  func (z MessageDuplicate) Msgsize() (s int) {
   486  	s = msgp.BoolSize
   487  	return
   488  }
   489  
   490  // DecodeMsg implements msgp.Decodable
   491  func (z *MessageGetMsg) DecodeMsg(dc *msgp.Reader) (err error) {
   492  	var zb0001 uint32
   493  	zb0001, err = dc.ReadArrayHeader()
   494  	if err != nil {
   495  		err = msgp.WrapError(err)
   496  		return
   497  	}
   498  	if zb0001 != 1 {
   499  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   500  		return
   501  	}
   502  	if dc.IsNil() {
   503  		err = dc.ReadNil()
   504  		if err != nil {
   505  			err = msgp.WrapError(err, "Hash")
   506  			return
   507  		}
   508  		z.Hash = nil
   509  	} else {
   510  		if z.Hash == nil {
   511  			z.Hash = new(types.Hash)
   512  		}
   513  		err = z.Hash.DecodeMsg(dc)
   514  		if err != nil {
   515  			err = msgp.WrapError(err, "Hash")
   516  			return
   517  		}
   518  	}
   519  	return
   520  }
   521  
   522  // EncodeMsg implements msgp.Encodable
   523  func (z *MessageGetMsg) EncodeMsg(en *msgp.Writer) (err error) {
   524  	// array header, size 1
   525  	err = en.Append(0x91)
   526  	if err != nil {
   527  		return
   528  	}
   529  	if z.Hash == nil {
   530  		err = en.WriteNil()
   531  		if err != nil {
   532  			return
   533  		}
   534  	} else {
   535  		err = z.Hash.EncodeMsg(en)
   536  		if err != nil {
   537  			err = msgp.WrapError(err, "Hash")
   538  			return
   539  		}
   540  	}
   541  	return
   542  }
   543  
   544  // MarshalMsg implements msgp.Marshaler
   545  func (z *MessageGetMsg) MarshalMsg(b []byte) (o []byte, err error) {
   546  	o = msgp.Require(b, z.Msgsize())
   547  	// array header, size 1
   548  	o = append(o, 0x91)
   549  	if z.Hash == nil {
   550  		o = msgp.AppendNil(o)
   551  	} else {
   552  		o, err = z.Hash.MarshalMsg(o)
   553  		if err != nil {
   554  			err = msgp.WrapError(err, "Hash")
   555  			return
   556  		}
   557  	}
   558  	return
   559  }
   560  
   561  // UnmarshalMsg implements msgp.Unmarshaler
   562  func (z *MessageGetMsg) UnmarshalMsg(bts []byte) (o []byte, err error) {
   563  	var zb0001 uint32
   564  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   565  	if err != nil {
   566  		err = msgp.WrapError(err)
   567  		return
   568  	}
   569  	if zb0001 != 1 {
   570  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   571  		return
   572  	}
   573  	if msgp.IsNil(bts) {
   574  		bts, err = msgp.ReadNilBytes(bts)
   575  		if err != nil {
   576  			return
   577  		}
   578  		z.Hash = nil
   579  	} else {
   580  		if z.Hash == nil {
   581  			z.Hash = new(types.Hash)
   582  		}
   583  		bts, err = z.Hash.UnmarshalMsg(bts)
   584  		if err != nil {
   585  			err = msgp.WrapError(err, "Hash")
   586  			return
   587  		}
   588  	}
   589  	o = bts
   590  	return
   591  }
   592  
   593  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   594  func (z *MessageGetMsg) Msgsize() (s int) {
   595  	s = 1
   596  	if z.Hash == nil {
   597  		s += msgp.NilSize
   598  	} else {
   599  		s += z.Hash.Msgsize()
   600  	}
   601  	return
   602  }
   603  
   604  // DecodeMsg implements msgp.Decodable
   605  func (z *MessageHeaderRequest) DecodeMsg(dc *msgp.Reader) (err error) {
   606  	var zb0001 uint32
   607  	zb0001, err = dc.ReadArrayHeader()
   608  	if err != nil {
   609  		err = msgp.WrapError(err)
   610  		return
   611  	}
   612  	if zb0001 != 5 {
   613  		err = msgp.ArrayError{Wanted: 5, Got: zb0001}
   614  		return
   615  	}
   616  	err = z.Origin.DecodeMsg(dc)
   617  	if err != nil {
   618  		err = msgp.WrapError(err, "Origin")
   619  		return
   620  	}
   621  	z.Amount, err = dc.ReadUint64()
   622  	if err != nil {
   623  		err = msgp.WrapError(err, "Amount")
   624  		return
   625  	}
   626  	z.Skip, err = dc.ReadUint64()
   627  	if err != nil {
   628  		err = msgp.WrapError(err, "Skip")
   629  		return
   630  	}
   631  	z.Reverse, err = dc.ReadBool()
   632  	if err != nil {
   633  		err = msgp.WrapError(err, "Reverse")
   634  		return
   635  	}
   636  	z.RequestId, err = dc.ReadUint32()
   637  	if err != nil {
   638  		err = msgp.WrapError(err, "RequestId")
   639  		return
   640  	}
   641  	return
   642  }
   643  
   644  // EncodeMsg implements msgp.Encodable
   645  func (z *MessageHeaderRequest) EncodeMsg(en *msgp.Writer) (err error) {
   646  	// array header, size 5
   647  	err = en.Append(0x95)
   648  	if err != nil {
   649  		return
   650  	}
   651  	err = z.Origin.EncodeMsg(en)
   652  	if err != nil {
   653  		err = msgp.WrapError(err, "Origin")
   654  		return
   655  	}
   656  	err = en.WriteUint64(z.Amount)
   657  	if err != nil {
   658  		err = msgp.WrapError(err, "Amount")
   659  		return
   660  	}
   661  	err = en.WriteUint64(z.Skip)
   662  	if err != nil {
   663  		err = msgp.WrapError(err, "Skip")
   664  		return
   665  	}
   666  	err = en.WriteBool(z.Reverse)
   667  	if err != nil {
   668  		err = msgp.WrapError(err, "Reverse")
   669  		return
   670  	}
   671  	err = en.WriteUint32(z.RequestId)
   672  	if err != nil {
   673  		err = msgp.WrapError(err, "RequestId")
   674  		return
   675  	}
   676  	return
   677  }
   678  
   679  // MarshalMsg implements msgp.Marshaler
   680  func (z *MessageHeaderRequest) MarshalMsg(b []byte) (o []byte, err error) {
   681  	o = msgp.Require(b, z.Msgsize())
   682  	// array header, size 5
   683  	o = append(o, 0x95)
   684  	o, err = z.Origin.MarshalMsg(o)
   685  	if err != nil {
   686  		err = msgp.WrapError(err, "Origin")
   687  		return
   688  	}
   689  	o = msgp.AppendUint64(o, z.Amount)
   690  	o = msgp.AppendUint64(o, z.Skip)
   691  	o = msgp.AppendBool(o, z.Reverse)
   692  	o = msgp.AppendUint32(o, z.RequestId)
   693  	return
   694  }
   695  
   696  // UnmarshalMsg implements msgp.Unmarshaler
   697  func (z *MessageHeaderRequest) UnmarshalMsg(bts []byte) (o []byte, err error) {
   698  	var zb0001 uint32
   699  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   700  	if err != nil {
   701  		err = msgp.WrapError(err)
   702  		return
   703  	}
   704  	if zb0001 != 5 {
   705  		err = msgp.ArrayError{Wanted: 5, Got: zb0001}
   706  		return
   707  	}
   708  	bts, err = z.Origin.UnmarshalMsg(bts)
   709  	if err != nil {
   710  		err = msgp.WrapError(err, "Origin")
   711  		return
   712  	}
   713  	z.Amount, bts, err = msgp.ReadUint64Bytes(bts)
   714  	if err != nil {
   715  		err = msgp.WrapError(err, "Amount")
   716  		return
   717  	}
   718  	z.Skip, bts, err = msgp.ReadUint64Bytes(bts)
   719  	if err != nil {
   720  		err = msgp.WrapError(err, "Skip")
   721  		return
   722  	}
   723  	z.Reverse, bts, err = msgp.ReadBoolBytes(bts)
   724  	if err != nil {
   725  		err = msgp.WrapError(err, "Reverse")
   726  		return
   727  	}
   728  	z.RequestId, bts, err = msgp.ReadUint32Bytes(bts)
   729  	if err != nil {
   730  		err = msgp.WrapError(err, "RequestId")
   731  		return
   732  	}
   733  	o = bts
   734  	return
   735  }
   736  
   737  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   738  func (z *MessageHeaderRequest) Msgsize() (s int) {
   739  	s = 1 + z.Origin.Msgsize() + msgp.Uint64Size + msgp.Uint64Size + msgp.BoolSize + msgp.Uint32Size
   740  	return
   741  }
   742  
   743  // DecodeMsg implements msgp.Decodable
   744  func (z *MessageHeaderResponse) DecodeMsg(dc *msgp.Reader) (err error) {
   745  	var zb0001 uint32
   746  	zb0001, err = dc.ReadArrayHeader()
   747  	if err != nil {
   748  		err = msgp.WrapError(err)
   749  		return
   750  	}
   751  	if zb0001 != 2 {
   752  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
   753  		return
   754  	}
   755  	if dc.IsNil() {
   756  		err = dc.ReadNil()
   757  		if err != nil {
   758  			err = msgp.WrapError(err, "Headers")
   759  			return
   760  		}
   761  		z.Headers = nil
   762  	} else {
   763  		if z.Headers == nil {
   764  			z.Headers = new(dagmessage.SequencerHeaders)
   765  		}
   766  		err = z.Headers.DecodeMsg(dc)
   767  		if err != nil {
   768  			err = msgp.WrapError(err, "Headers")
   769  			return
   770  		}
   771  	}
   772  	z.RequestedId, err = dc.ReadUint32()
   773  	if err != nil {
   774  		err = msgp.WrapError(err, "RequestId")
   775  		return
   776  	}
   777  	return
   778  }
   779  
   780  // EncodeMsg implements msgp.Encodable
   781  func (z *MessageHeaderResponse) EncodeMsg(en *msgp.Writer) (err error) {
   782  	// array header, size 2
   783  	err = en.Append(0x92)
   784  	if err != nil {
   785  		return
   786  	}
   787  	if z.Headers == nil {
   788  		err = en.WriteNil()
   789  		if err != nil {
   790  			return
   791  		}
   792  	} else {
   793  		err = z.Headers.EncodeMsg(en)
   794  		if err != nil {
   795  			err = msgp.WrapError(err, "Headers")
   796  			return
   797  		}
   798  	}
   799  	err = en.WriteUint32(z.RequestedId)
   800  	if err != nil {
   801  		err = msgp.WrapError(err, "RequestId")
   802  		return
   803  	}
   804  	return
   805  }
   806  
   807  // MarshalMsg implements msgp.Marshaler
   808  func (z *MessageHeaderResponse) MarshalMsg(b []byte) (o []byte, err error) {
   809  	o = msgp.Require(b, z.Msgsize())
   810  	// array header, size 2
   811  	o = append(o, 0x92)
   812  	if z.Headers == nil {
   813  		o = msgp.AppendNil(o)
   814  	} else {
   815  		o, err = z.Headers.MarshalMsg(o)
   816  		if err != nil {
   817  			err = msgp.WrapError(err, "Headers")
   818  			return
   819  		}
   820  	}
   821  	o = msgp.AppendUint32(o, z.RequestedId)
   822  	return
   823  }
   824  
   825  // UnmarshalMsg implements msgp.Unmarshaler
   826  func (z *MessageHeaderResponse) UnmarshalMsg(bts []byte) (o []byte, err error) {
   827  	var zb0001 uint32
   828  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   829  	if err != nil {
   830  		err = msgp.WrapError(err)
   831  		return
   832  	}
   833  	if zb0001 != 2 {
   834  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
   835  		return
   836  	}
   837  	if msgp.IsNil(bts) {
   838  		bts, err = msgp.ReadNilBytes(bts)
   839  		if err != nil {
   840  			return
   841  		}
   842  		z.Headers = nil
   843  	} else {
   844  		if z.Headers == nil {
   845  			z.Headers = new(dagmessage.SequencerHeaders)
   846  		}
   847  		bts, err = z.Headers.UnmarshalMsg(bts)
   848  		if err != nil {
   849  			err = msgp.WrapError(err, "Headers")
   850  			return
   851  		}
   852  	}
   853  	z.RequestedId, bts, err = msgp.ReadUint32Bytes(bts)
   854  	if err != nil {
   855  		err = msgp.WrapError(err, "RequestId")
   856  		return
   857  	}
   858  	o = bts
   859  	return
   860  }
   861  
   862  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   863  func (z *MessageHeaderResponse) Msgsize() (s int) {
   864  	s = 1
   865  	if z.Headers == nil {
   866  		s += msgp.NilSize
   867  	} else {
   868  		s += z.Headers.Msgsize()
   869  	}
   870  	s += msgp.Uint32Size
   871  	return
   872  }
   873  
   874  // DecodeMsg implements msgp.Decodable
   875  func (z *MessageNewActionTx) DecodeMsg(dc *msgp.Reader) (err error) {
   876  	var zb0001 uint32
   877  	zb0001, err = dc.ReadArrayHeader()
   878  	if err != nil {
   879  		err = msgp.WrapError(err)
   880  		return
   881  	}
   882  	if zb0001 != 1 {
   883  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   884  		return
   885  	}
   886  	if dc.IsNil() {
   887  		err = dc.ReadNil()
   888  		if err != nil {
   889  			err = msgp.WrapError(err, "ActionTx")
   890  			return
   891  		}
   892  		z.ActionTx = nil
   893  	} else {
   894  		if z.ActionTx == nil {
   895  			z.ActionTx = new(ActionTx)
   896  		}
   897  		err = z.ActionTx.DecodeMsg(dc)
   898  		if err != nil {
   899  			err = msgp.WrapError(err, "ActionTx")
   900  			return
   901  		}
   902  	}
   903  	return
   904  }
   905  
   906  // EncodeMsg implements msgp.Encodable
   907  func (z *MessageNewActionTx) EncodeMsg(en *msgp.Writer) (err error) {
   908  	// array header, size 1
   909  	err = en.Append(0x91)
   910  	if err != nil {
   911  		return
   912  	}
   913  	if z.ActionTx == nil {
   914  		err = en.WriteNil()
   915  		if err != nil {
   916  			return
   917  		}
   918  	} else {
   919  		err = z.ActionTx.EncodeMsg(en)
   920  		if err != nil {
   921  			err = msgp.WrapError(err, "ActionTx")
   922  			return
   923  		}
   924  	}
   925  	return
   926  }
   927  
   928  // MarshalMsg implements msgp.Marshaler
   929  func (z *MessageNewActionTx) MarshalMsg(b []byte) (o []byte, err error) {
   930  	o = msgp.Require(b, z.Msgsize())
   931  	// array header, size 1
   932  	o = append(o, 0x91)
   933  	if z.ActionTx == nil {
   934  		o = msgp.AppendNil(o)
   935  	} else {
   936  		o, err = z.ActionTx.MarshalMsg(o)
   937  		if err != nil {
   938  			err = msgp.WrapError(err, "ActionTx")
   939  			return
   940  		}
   941  	}
   942  	return
   943  }
   944  
   945  // UnmarshalMsg implements msgp.Unmarshaler
   946  func (z *MessageNewActionTx) UnmarshalMsg(bts []byte) (o []byte, err error) {
   947  	var zb0001 uint32
   948  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
   949  	if err != nil {
   950  		err = msgp.WrapError(err)
   951  		return
   952  	}
   953  	if zb0001 != 1 {
   954  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   955  		return
   956  	}
   957  	if msgp.IsNil(bts) {
   958  		bts, err = msgp.ReadNilBytes(bts)
   959  		if err != nil {
   960  			return
   961  		}
   962  		z.ActionTx = nil
   963  	} else {
   964  		if z.ActionTx == nil {
   965  			z.ActionTx = new(ActionTx)
   966  		}
   967  		bts, err = z.ActionTx.UnmarshalMsg(bts)
   968  		if err != nil {
   969  			err = msgp.WrapError(err, "ActionTx")
   970  			return
   971  		}
   972  	}
   973  	o = bts
   974  	return
   975  }
   976  
   977  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   978  func (z *MessageNewActionTx) Msgsize() (s int) {
   979  	s = 1
   980  	if z.ActionTx == nil {
   981  		s += msgp.NilSize
   982  	} else {
   983  		s += z.ActionTx.Msgsize()
   984  	}
   985  	return
   986  }
   987  
   988  // DecodeMsg implements msgp.Decodable
   989  func (z *MessageNewSequencer) DecodeMsg(dc *msgp.Reader) (err error) {
   990  	var zb0001 uint32
   991  	zb0001, err = dc.ReadArrayHeader()
   992  	if err != nil {
   993  		err = msgp.WrapError(err)
   994  		return
   995  	}
   996  	if zb0001 != 1 {
   997  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
   998  		return
   999  	}
  1000  	if dc.IsNil() {
  1001  		err = dc.ReadNil()
  1002  		if err != nil {
  1003  			err = msgp.WrapError(err, "RawSequencer")
  1004  			return
  1005  		}
  1006  		z.RawSequencer = nil
  1007  	} else {
  1008  		if z.RawSequencer == nil {
  1009  			z.RawSequencer = new(RawSequencer)
  1010  		}
  1011  		err = z.RawSequencer.DecodeMsg(dc)
  1012  		if err != nil {
  1013  			err = msgp.WrapError(err, "RawSequencer")
  1014  			return
  1015  		}
  1016  	}
  1017  	return
  1018  }
  1019  
  1020  // EncodeMsg implements msgp.Encodable
  1021  func (z *MessageNewSequencer) EncodeMsg(en *msgp.Writer) (err error) {
  1022  	// array header, size 1
  1023  	err = en.Append(0x91)
  1024  	if err != nil {
  1025  		return
  1026  	}
  1027  	if z.RawSequencer == nil {
  1028  		err = en.WriteNil()
  1029  		if err != nil {
  1030  			return
  1031  		}
  1032  	} else {
  1033  		err = z.RawSequencer.EncodeMsg(en)
  1034  		if err != nil {
  1035  			err = msgp.WrapError(err, "RawSequencer")
  1036  			return
  1037  		}
  1038  	}
  1039  	return
  1040  }
  1041  
  1042  // MarshalMsg implements msgp.Marshaler
  1043  func (z *MessageNewSequencer) MarshalMsg(b []byte) (o []byte, err error) {
  1044  	o = msgp.Require(b, z.Msgsize())
  1045  	// array header, size 1
  1046  	o = append(o, 0x91)
  1047  	if z.RawSequencer == nil {
  1048  		o = msgp.AppendNil(o)
  1049  	} else {
  1050  		o, err = z.RawSequencer.MarshalMsg(o)
  1051  		if err != nil {
  1052  			err = msgp.WrapError(err, "RawSequencer")
  1053  			return
  1054  		}
  1055  	}
  1056  	return
  1057  }
  1058  
  1059  // UnmarshalMsg implements msgp.Unmarshaler
  1060  func (z *MessageNewSequencer) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1061  	var zb0001 uint32
  1062  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1063  	if err != nil {
  1064  		err = msgp.WrapError(err)
  1065  		return
  1066  	}
  1067  	if zb0001 != 1 {
  1068  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
  1069  		return
  1070  	}
  1071  	if msgp.IsNil(bts) {
  1072  		bts, err = msgp.ReadNilBytes(bts)
  1073  		if err != nil {
  1074  			return
  1075  		}
  1076  		z.RawSequencer = nil
  1077  	} else {
  1078  		if z.RawSequencer == nil {
  1079  			z.RawSequencer = new(RawSequencer)
  1080  		}
  1081  		bts, err = z.RawSequencer.UnmarshalMsg(bts)
  1082  		if err != nil {
  1083  			err = msgp.WrapError(err, "RawSequencer")
  1084  			return
  1085  		}
  1086  	}
  1087  	o = bts
  1088  	return
  1089  }
  1090  
  1091  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1092  func (z *MessageNewSequencer) Msgsize() (s int) {
  1093  	s = 1
  1094  	if z.RawSequencer == nil {
  1095  		s += msgp.NilSize
  1096  	} else {
  1097  		s += z.RawSequencer.Msgsize()
  1098  	}
  1099  	return
  1100  }
  1101  
  1102  // DecodeMsg implements msgp.Decodable
  1103  func (z *MessageNewTx) DecodeMsg(dc *msgp.Reader) (err error) {
  1104  	var zb0001 uint32
  1105  	zb0001, err = dc.ReadArrayHeader()
  1106  	if err != nil {
  1107  		err = msgp.WrapError(err)
  1108  		return
  1109  	}
  1110  	if zb0001 != 1 {
  1111  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
  1112  		return
  1113  	}
  1114  	if dc.IsNil() {
  1115  		err = dc.ReadNil()
  1116  		if err != nil {
  1117  			err = msgp.WrapError(err, "RawTx")
  1118  			return
  1119  		}
  1120  		z.RawTx = nil
  1121  	} else {
  1122  		if z.RawTx == nil {
  1123  			z.RawTx = new(RawTx)
  1124  		}
  1125  		err = z.RawTx.DecodeMsg(dc)
  1126  		if err != nil {
  1127  			err = msgp.WrapError(err, "RawTx")
  1128  			return
  1129  		}
  1130  	}
  1131  	return
  1132  }
  1133  
  1134  // EncodeMsg implements msgp.Encodable
  1135  func (z *MessageNewTx) EncodeMsg(en *msgp.Writer) (err error) {
  1136  	// array header, size 1
  1137  	err = en.Append(0x91)
  1138  	if err != nil {
  1139  		return
  1140  	}
  1141  	if z.RawTx == nil {
  1142  		err = en.WriteNil()
  1143  		if err != nil {
  1144  			return
  1145  		}
  1146  	} else {
  1147  		err = z.RawTx.EncodeMsg(en)
  1148  		if err != nil {
  1149  			err = msgp.WrapError(err, "RawTx")
  1150  			return
  1151  		}
  1152  	}
  1153  	return
  1154  }
  1155  
  1156  // MarshalMsg implements msgp.Marshaler
  1157  func (z *MessageNewTx) MarshalMsg(b []byte) (o []byte, err error) {
  1158  	o = msgp.Require(b, z.Msgsize())
  1159  	// array header, size 1
  1160  	o = append(o, 0x91)
  1161  	if z.RawTx == nil {
  1162  		o = msgp.AppendNil(o)
  1163  	} else {
  1164  		o, err = z.RawTx.MarshalMsg(o)
  1165  		if err != nil {
  1166  			err = msgp.WrapError(err, "RawTx")
  1167  			return
  1168  		}
  1169  	}
  1170  	return
  1171  }
  1172  
  1173  // UnmarshalMsg implements msgp.Unmarshaler
  1174  func (z *MessageNewTx) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1175  	var zb0001 uint32
  1176  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1177  	if err != nil {
  1178  		err = msgp.WrapError(err)
  1179  		return
  1180  	}
  1181  	if zb0001 != 1 {
  1182  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
  1183  		return
  1184  	}
  1185  	if msgp.IsNil(bts) {
  1186  		bts, err = msgp.ReadNilBytes(bts)
  1187  		if err != nil {
  1188  			return
  1189  		}
  1190  		z.RawTx = nil
  1191  	} else {
  1192  		if z.RawTx == nil {
  1193  			z.RawTx = new(RawTx)
  1194  		}
  1195  		bts, err = z.RawTx.UnmarshalMsg(bts)
  1196  		if err != nil {
  1197  			err = msgp.WrapError(err, "RawTx")
  1198  			return
  1199  		}
  1200  	}
  1201  	o = bts
  1202  	return
  1203  }
  1204  
  1205  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1206  func (z *MessageNewTx) Msgsize() (s int) {
  1207  	s = 1
  1208  	if z.RawTx == nil {
  1209  		s += msgp.NilSize
  1210  	} else {
  1211  		s += z.RawTx.Msgsize()
  1212  	}
  1213  	return
  1214  }
  1215  
  1216  // DecodeMsg implements msgp.Decodable
  1217  func (z *MessageNewTxs) DecodeMsg(dc *msgp.Reader) (err error) {
  1218  	var zb0001 uint32
  1219  	zb0001, err = dc.ReadArrayHeader()
  1220  	if err != nil {
  1221  		err = msgp.WrapError(err)
  1222  		return
  1223  	}
  1224  	if zb0001 != 1 {
  1225  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
  1226  		return
  1227  	}
  1228  	if dc.IsNil() {
  1229  		err = dc.ReadNil()
  1230  		if err != nil {
  1231  			err = msgp.WrapError(err, "RawTxs")
  1232  			return
  1233  		}
  1234  		z.RawTxs = nil
  1235  	} else {
  1236  		if z.RawTxs == nil {
  1237  			z.RawTxs = new(RawTxs)
  1238  		}
  1239  		err = z.RawTxs.DecodeMsg(dc)
  1240  		if err != nil {
  1241  			err = msgp.WrapError(err, "RawTxs")
  1242  			return
  1243  		}
  1244  	}
  1245  	return
  1246  }
  1247  
  1248  // EncodeMsg implements msgp.Encodable
  1249  func (z *MessageNewTxs) EncodeMsg(en *msgp.Writer) (err error) {
  1250  	// array header, size 1
  1251  	err = en.Append(0x91)
  1252  	if err != nil {
  1253  		return
  1254  	}
  1255  	if z.RawTxs == nil {
  1256  		err = en.WriteNil()
  1257  		if err != nil {
  1258  			return
  1259  		}
  1260  	} else {
  1261  		err = z.RawTxs.EncodeMsg(en)
  1262  		if err != nil {
  1263  			err = msgp.WrapError(err, "RawTxs")
  1264  			return
  1265  		}
  1266  	}
  1267  	return
  1268  }
  1269  
  1270  // MarshalMsg implements msgp.Marshaler
  1271  func (z *MessageNewTxs) MarshalMsg(b []byte) (o []byte, err error) {
  1272  	o = msgp.Require(b, z.Msgsize())
  1273  	// array header, size 1
  1274  	o = append(o, 0x91)
  1275  	if z.RawTxs == nil {
  1276  		o = msgp.AppendNil(o)
  1277  	} else {
  1278  		o, err = z.RawTxs.MarshalMsg(o)
  1279  		if err != nil {
  1280  			err = msgp.WrapError(err, "RawTxs")
  1281  			return
  1282  		}
  1283  	}
  1284  	return
  1285  }
  1286  
  1287  // UnmarshalMsg implements msgp.Unmarshaler
  1288  func (z *MessageNewTxs) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1289  	var zb0001 uint32
  1290  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1291  	if err != nil {
  1292  		err = msgp.WrapError(err)
  1293  		return
  1294  	}
  1295  	if zb0001 != 1 {
  1296  		err = msgp.ArrayError{Wanted: 1, Got: zb0001}
  1297  		return
  1298  	}
  1299  	if msgp.IsNil(bts) {
  1300  		bts, err = msgp.ReadNilBytes(bts)
  1301  		if err != nil {
  1302  			return
  1303  		}
  1304  		z.RawTxs = nil
  1305  	} else {
  1306  		if z.RawTxs == nil {
  1307  			z.RawTxs = new(RawTxs)
  1308  		}
  1309  		bts, err = z.RawTxs.UnmarshalMsg(bts)
  1310  		if err != nil {
  1311  			err = msgp.WrapError(err, "RawTxs")
  1312  			return
  1313  		}
  1314  	}
  1315  	o = bts
  1316  	return
  1317  }
  1318  
  1319  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1320  func (z *MessageNewTxs) Msgsize() (s int) {
  1321  	s = 1
  1322  	if z.RawTxs == nil {
  1323  		s += msgp.NilSize
  1324  	} else {
  1325  		s += z.RawTxs.Msgsize()
  1326  	}
  1327  	return
  1328  }
  1329  
  1330  // DecodeMsg implements msgp.Decodable
  1331  func (z *MessagePing) DecodeMsg(dc *msgp.Reader) (err error) {
  1332  	var zb0001 uint32
  1333  	zb0001, err = dc.ReadArrayHeader()
  1334  	if err != nil {
  1335  		err = msgp.WrapError(err)
  1336  		return
  1337  	}
  1338  	if zb0001 != 0 {
  1339  		err = msgp.ArrayError{Wanted: 0, Got: zb0001}
  1340  		return
  1341  	}
  1342  	return
  1343  }
  1344  
  1345  // EncodeMsg implements msgp.Encodable
  1346  func (z MessagePing) EncodeMsg(en *msgp.Writer) (err error) {
  1347  	// array header, size 0
  1348  	err = en.Append(0x90)
  1349  	if err != nil {
  1350  		return
  1351  	}
  1352  	return
  1353  }
  1354  
  1355  // MarshalMsg implements msgp.Marshaler
  1356  func (z MessagePing) MarshalMsg(b []byte) (o []byte, err error) {
  1357  	o = msgp.Require(b, z.Msgsize())
  1358  	// array header, size 0
  1359  	o = append(o, 0x90)
  1360  	return
  1361  }
  1362  
  1363  // UnmarshalMsg implements msgp.Unmarshaler
  1364  func (z *MessagePing) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1365  	var zb0001 uint32
  1366  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1367  	if err != nil {
  1368  		err = msgp.WrapError(err)
  1369  		return
  1370  	}
  1371  	if zb0001 != 0 {
  1372  		err = msgp.ArrayError{Wanted: 0, Got: zb0001}
  1373  		return
  1374  	}
  1375  	o = bts
  1376  	return
  1377  }
  1378  
  1379  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1380  func (z MessagePing) Msgsize() (s int) {
  1381  	s = 1
  1382  	return
  1383  }
  1384  
  1385  // DecodeMsg implements msgp.Decodable
  1386  func (z *MessagePong) DecodeMsg(dc *msgp.Reader) (err error) {
  1387  	var zb0001 uint32
  1388  	zb0001, err = dc.ReadArrayHeader()
  1389  	if err != nil {
  1390  		err = msgp.WrapError(err)
  1391  		return
  1392  	}
  1393  	if zb0001 != 0 {
  1394  		err = msgp.ArrayError{Wanted: 0, Got: zb0001}
  1395  		return
  1396  	}
  1397  	return
  1398  }
  1399  
  1400  // EncodeMsg implements msgp.Encodable
  1401  func (z MessagePong) EncodeMsg(en *msgp.Writer) (err error) {
  1402  	// array header, size 0
  1403  	err = en.Append(0x90)
  1404  	if err != nil {
  1405  		return
  1406  	}
  1407  	return
  1408  }
  1409  
  1410  // MarshalMsg implements msgp.Marshaler
  1411  func (z MessagePong) MarshalMsg(b []byte) (o []byte, err error) {
  1412  	o = msgp.Require(b, z.Msgsize())
  1413  	// array header, size 0
  1414  	o = append(o, 0x90)
  1415  	return
  1416  }
  1417  
  1418  // UnmarshalMsg implements msgp.Unmarshaler
  1419  func (z *MessagePong) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1420  	var zb0001 uint32
  1421  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1422  	if err != nil {
  1423  		err = msgp.WrapError(err)
  1424  		return
  1425  	}
  1426  	if zb0001 != 0 {
  1427  		err = msgp.ArrayError{Wanted: 0, Got: zb0001}
  1428  		return
  1429  	}
  1430  	o = bts
  1431  	return
  1432  }
  1433  
  1434  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1435  func (z MessagePong) Msgsize() (s int) {
  1436  	s = 1
  1437  	return
  1438  }
  1439  
  1440  // DecodeMsg implements msgp.Decodable
  1441  func (z *MessageSequencerHeader) DecodeMsg(dc *msgp.Reader) (err error) {
  1442  	var zb0001 uint32
  1443  	zb0001, err = dc.ReadArrayHeader()
  1444  	if err != nil {
  1445  		err = msgp.WrapError(err)
  1446  		return
  1447  	}
  1448  	if zb0001 != 2 {
  1449  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
  1450  		return
  1451  	}
  1452  	if dc.IsNil() {
  1453  		err = dc.ReadNil()
  1454  		if err != nil {
  1455  			err = msgp.WrapError(err, "Hash")
  1456  			return
  1457  		}
  1458  		z.Hash = nil
  1459  	} else {
  1460  		if z.Hash == nil {
  1461  			z.Hash = new(types.Hash)
  1462  		}
  1463  		err = z.Hash.DecodeMsg(dc)
  1464  		if err != nil {
  1465  			err = msgp.WrapError(err, "Hash")
  1466  			return
  1467  		}
  1468  	}
  1469  	if dc.IsNil() {
  1470  		err = dc.ReadNil()
  1471  		if err != nil {
  1472  			err = msgp.WrapError(err, "Number")
  1473  			return
  1474  		}
  1475  		z.Number = nil
  1476  	} else {
  1477  		if z.Number == nil {
  1478  			z.Number = new(uint64)
  1479  		}
  1480  		*z.Number, err = dc.ReadUint64()
  1481  		if err != nil {
  1482  			err = msgp.WrapError(err, "Number")
  1483  			return
  1484  		}
  1485  	}
  1486  	return
  1487  }
  1488  
  1489  // EncodeMsg implements msgp.Encodable
  1490  func (z *MessageSequencerHeader) EncodeMsg(en *msgp.Writer) (err error) {
  1491  	// array header, size 2
  1492  	err = en.Append(0x92)
  1493  	if err != nil {
  1494  		return
  1495  	}
  1496  	if z.Hash == nil {
  1497  		err = en.WriteNil()
  1498  		if err != nil {
  1499  			return
  1500  		}
  1501  	} else {
  1502  		err = z.Hash.EncodeMsg(en)
  1503  		if err != nil {
  1504  			err = msgp.WrapError(err, "Hash")
  1505  			return
  1506  		}
  1507  	}
  1508  	if z.Number == nil {
  1509  		err = en.WriteNil()
  1510  		if err != nil {
  1511  			return
  1512  		}
  1513  	} else {
  1514  		err = en.WriteUint64(*z.Number)
  1515  		if err != nil {
  1516  			err = msgp.WrapError(err, "Number")
  1517  			return
  1518  		}
  1519  	}
  1520  	return
  1521  }
  1522  
  1523  // MarshalMsg implements msgp.Marshaler
  1524  func (z *MessageSequencerHeader) MarshalMsg(b []byte) (o []byte, err error) {
  1525  	o = msgp.Require(b, z.Msgsize())
  1526  	// array header, size 2
  1527  	o = append(o, 0x92)
  1528  	if z.Hash == nil {
  1529  		o = msgp.AppendNil(o)
  1530  	} else {
  1531  		o, err = z.Hash.MarshalMsg(o)
  1532  		if err != nil {
  1533  			err = msgp.WrapError(err, "Hash")
  1534  			return
  1535  		}
  1536  	}
  1537  	if z.Number == nil {
  1538  		o = msgp.AppendNil(o)
  1539  	} else {
  1540  		o = msgp.AppendUint64(o, *z.Number)
  1541  	}
  1542  	return
  1543  }
  1544  
  1545  // UnmarshalMsg implements msgp.Unmarshaler
  1546  func (z *MessageSequencerHeader) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1547  	var zb0001 uint32
  1548  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1549  	if err != nil {
  1550  		err = msgp.WrapError(err)
  1551  		return
  1552  	}
  1553  	if zb0001 != 2 {
  1554  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
  1555  		return
  1556  	}
  1557  	if msgp.IsNil(bts) {
  1558  		bts, err = msgp.ReadNilBytes(bts)
  1559  		if err != nil {
  1560  			return
  1561  		}
  1562  		z.Hash = nil
  1563  	} else {
  1564  		if z.Hash == nil {
  1565  			z.Hash = new(types.Hash)
  1566  		}
  1567  		bts, err = z.Hash.UnmarshalMsg(bts)
  1568  		if err != nil {
  1569  			err = msgp.WrapError(err, "Hash")
  1570  			return
  1571  		}
  1572  	}
  1573  	if msgp.IsNil(bts) {
  1574  		bts, err = msgp.ReadNilBytes(bts)
  1575  		if err != nil {
  1576  			return
  1577  		}
  1578  		z.Number = nil
  1579  	} else {
  1580  		if z.Number == nil {
  1581  			z.Number = new(uint64)
  1582  		}
  1583  		*z.Number, bts, err = msgp.ReadUint64Bytes(bts)
  1584  		if err != nil {
  1585  			err = msgp.WrapError(err, "Number")
  1586  			return
  1587  		}
  1588  	}
  1589  	o = bts
  1590  	return
  1591  }
  1592  
  1593  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1594  func (z *MessageSequencerHeader) Msgsize() (s int) {
  1595  	s = 1
  1596  	if z.Hash == nil {
  1597  		s += msgp.NilSize
  1598  	} else {
  1599  		s += z.Hash.Msgsize()
  1600  	}
  1601  	if z.Number == nil {
  1602  		s += msgp.NilSize
  1603  	} else {
  1604  		s += msgp.Uint64Size
  1605  	}
  1606  	return
  1607  }
  1608  
  1609  // DecodeMsg implements msgp.Decodable
  1610  func (z *MessageSyncRequest) DecodeMsg(dc *msgp.Reader) (err error) {
  1611  	var zb0001 uint32
  1612  	zb0001, err = dc.ReadArrayHeader()
  1613  	if err != nil {
  1614  		err = msgp.WrapError(err)
  1615  		return
  1616  	}
  1617  	if zb0001 != 5 {
  1618  		err = msgp.ArrayError{Wanted: 5, Got: zb0001}
  1619  		return
  1620  	}
  1621  	if dc.IsNil() {
  1622  		err = dc.ReadNil()
  1623  		if err != nil {
  1624  			err = msgp.WrapError(err, "Hashes")
  1625  			return
  1626  		}
  1627  		z.Hashes = nil
  1628  	} else {
  1629  		if z.Hashes == nil {
  1630  			z.Hashes = new(types.Hashes)
  1631  		}
  1632  		err = z.Hashes.DecodeMsg(dc)
  1633  		if err != nil {
  1634  			err = msgp.WrapError(err, "Hashes")
  1635  			return
  1636  		}
  1637  	}
  1638  	if dc.IsNil() {
  1639  		err = dc.ReadNil()
  1640  		if err != nil {
  1641  			err = msgp.WrapError(err, "HashTerminats")
  1642  			return
  1643  		}
  1644  		z.HashTerminats = nil
  1645  	} else {
  1646  		if z.HashTerminats == nil {
  1647  			z.HashTerminats = new(HashTerminats)
  1648  		}
  1649  		err = z.HashTerminats.DecodeMsg(dc)
  1650  		if err != nil {
  1651  			err = msgp.WrapError(err, "HashTerminats")
  1652  			return
  1653  		}
  1654  	}
  1655  	if dc.IsNil() {
  1656  		err = dc.ReadNil()
  1657  		if err != nil {
  1658  			err = msgp.WrapError(err, "Filter")
  1659  			return
  1660  		}
  1661  		z.Filter = nil
  1662  	} else {
  1663  		if z.Filter == nil {
  1664  			z.Filter = new(BloomFilter)
  1665  		}
  1666  		err = z.Filter.DecodeMsg(dc)
  1667  		if err != nil {
  1668  			err = msgp.WrapError(err, "Filter")
  1669  			return
  1670  		}
  1671  	}
  1672  	if dc.IsNil() {
  1673  		err = dc.ReadNil()
  1674  		if err != nil {
  1675  			err = msgp.WrapError(err, "Height")
  1676  			return
  1677  		}
  1678  		z.Height = nil
  1679  	} else {
  1680  		if z.Height == nil {
  1681  			z.Height = new(uint64)
  1682  		}
  1683  		*z.Height, err = dc.ReadUint64()
  1684  		if err != nil {
  1685  			err = msgp.WrapError(err, "Height")
  1686  			return
  1687  		}
  1688  	}
  1689  	z.RequestId, err = dc.ReadUint32()
  1690  	if err != nil {
  1691  		err = msgp.WrapError(err, "RequestId")
  1692  		return
  1693  	}
  1694  	return
  1695  }
  1696  
  1697  // EncodeMsg implements msgp.Encodable
  1698  func (z *MessageSyncRequest) EncodeMsg(en *msgp.Writer) (err error) {
  1699  	// array header, size 5
  1700  	err = en.Append(0x95)
  1701  	if err != nil {
  1702  		return
  1703  	}
  1704  	if z.Hashes == nil {
  1705  		err = en.WriteNil()
  1706  		if err != nil {
  1707  			return
  1708  		}
  1709  	} else {
  1710  		err = z.Hashes.EncodeMsg(en)
  1711  		if err != nil {
  1712  			err = msgp.WrapError(err, "Hashes")
  1713  			return
  1714  		}
  1715  	}
  1716  	if z.HashTerminats == nil {
  1717  		err = en.WriteNil()
  1718  		if err != nil {
  1719  			return
  1720  		}
  1721  	} else {
  1722  		err = z.HashTerminats.EncodeMsg(en)
  1723  		if err != nil {
  1724  			err = msgp.WrapError(err, "HashTerminats")
  1725  			return
  1726  		}
  1727  	}
  1728  	if z.Filter == nil {
  1729  		err = en.WriteNil()
  1730  		if err != nil {
  1731  			return
  1732  		}
  1733  	} else {
  1734  		err = z.Filter.EncodeMsg(en)
  1735  		if err != nil {
  1736  			err = msgp.WrapError(err, "Filter")
  1737  			return
  1738  		}
  1739  	}
  1740  	if z.Height == nil {
  1741  		err = en.WriteNil()
  1742  		if err != nil {
  1743  			return
  1744  		}
  1745  	} else {
  1746  		err = en.WriteUint64(*z.Height)
  1747  		if err != nil {
  1748  			err = msgp.WrapError(err, "Height")
  1749  			return
  1750  		}
  1751  	}
  1752  	err = en.WriteUint32(z.RequestId)
  1753  	if err != nil {
  1754  		err = msgp.WrapError(err, "RequestId")
  1755  		return
  1756  	}
  1757  	return
  1758  }
  1759  
  1760  // MarshalMsg implements msgp.Marshaler
  1761  func (z *MessageSyncRequest) MarshalMsg(b []byte) (o []byte, err error) {
  1762  	o = msgp.Require(b, z.Msgsize())
  1763  	// array header, size 5
  1764  	o = append(o, 0x95)
  1765  	if z.Hashes == nil {
  1766  		o = msgp.AppendNil(o)
  1767  	} else {
  1768  		o, err = z.Hashes.MarshalMsg(o)
  1769  		if err != nil {
  1770  			err = msgp.WrapError(err, "Hashes")
  1771  			return
  1772  		}
  1773  	}
  1774  	if z.HashTerminats == nil {
  1775  		o = msgp.AppendNil(o)
  1776  	} else {
  1777  		o, err = z.HashTerminats.MarshalMsg(o)
  1778  		if err != nil {
  1779  			err = msgp.WrapError(err, "HashTerminats")
  1780  			return
  1781  		}
  1782  	}
  1783  	if z.Filter == nil {
  1784  		o = msgp.AppendNil(o)
  1785  	} else {
  1786  		o, err = z.Filter.MarshalMsg(o)
  1787  		if err != nil {
  1788  			err = msgp.WrapError(err, "Filter")
  1789  			return
  1790  		}
  1791  	}
  1792  	if z.Height == nil {
  1793  		o = msgp.AppendNil(o)
  1794  	} else {
  1795  		o = msgp.AppendUint64(o, *z.Height)
  1796  	}
  1797  	o = msgp.AppendUint32(o, z.RequestId)
  1798  	return
  1799  }
  1800  
  1801  // UnmarshalMsg implements msgp.Unmarshaler
  1802  func (z *MessageSyncRequest) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1803  	var zb0001 uint32
  1804  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1805  	if err != nil {
  1806  		err = msgp.WrapError(err)
  1807  		return
  1808  	}
  1809  	if zb0001 != 5 {
  1810  		err = msgp.ArrayError{Wanted: 5, Got: zb0001}
  1811  		return
  1812  	}
  1813  	if msgp.IsNil(bts) {
  1814  		bts, err = msgp.ReadNilBytes(bts)
  1815  		if err != nil {
  1816  			return
  1817  		}
  1818  		z.Hashes = nil
  1819  	} else {
  1820  		if z.Hashes == nil {
  1821  			z.Hashes = new(types.Hashes)
  1822  		}
  1823  		bts, err = z.Hashes.UnmarshalMsg(bts)
  1824  		if err != nil {
  1825  			err = msgp.WrapError(err, "Hashes")
  1826  			return
  1827  		}
  1828  	}
  1829  	if msgp.IsNil(bts) {
  1830  		bts, err = msgp.ReadNilBytes(bts)
  1831  		if err != nil {
  1832  			return
  1833  		}
  1834  		z.HashTerminats = nil
  1835  	} else {
  1836  		if z.HashTerminats == nil {
  1837  			z.HashTerminats = new(HashTerminats)
  1838  		}
  1839  		bts, err = z.HashTerminats.UnmarshalMsg(bts)
  1840  		if err != nil {
  1841  			err = msgp.WrapError(err, "HashTerminats")
  1842  			return
  1843  		}
  1844  	}
  1845  	if msgp.IsNil(bts) {
  1846  		bts, err = msgp.ReadNilBytes(bts)
  1847  		if err != nil {
  1848  			return
  1849  		}
  1850  		z.Filter = nil
  1851  	} else {
  1852  		if z.Filter == nil {
  1853  			z.Filter = new(BloomFilter)
  1854  		}
  1855  		bts, err = z.Filter.UnmarshalMsg(bts)
  1856  		if err != nil {
  1857  			err = msgp.WrapError(err, "Filter")
  1858  			return
  1859  		}
  1860  	}
  1861  	if msgp.IsNil(bts) {
  1862  		bts, err = msgp.ReadNilBytes(bts)
  1863  		if err != nil {
  1864  			return
  1865  		}
  1866  		z.Height = nil
  1867  	} else {
  1868  		if z.Height == nil {
  1869  			z.Height = new(uint64)
  1870  		}
  1871  		*z.Height, bts, err = msgp.ReadUint64Bytes(bts)
  1872  		if err != nil {
  1873  			err = msgp.WrapError(err, "Height")
  1874  			return
  1875  		}
  1876  	}
  1877  	z.RequestId, bts, err = msgp.ReadUint32Bytes(bts)
  1878  	if err != nil {
  1879  		err = msgp.WrapError(err, "RequestId")
  1880  		return
  1881  	}
  1882  	o = bts
  1883  	return
  1884  }
  1885  
  1886  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1887  func (z *MessageSyncRequest) Msgsize() (s int) {
  1888  	s = 1
  1889  	if z.Hashes == nil {
  1890  		s += msgp.NilSize
  1891  	} else {
  1892  		s += z.Hashes.Msgsize()
  1893  	}
  1894  	if z.HashTerminats == nil {
  1895  		s += msgp.NilSize
  1896  	} else {
  1897  		s += z.HashTerminats.Msgsize()
  1898  	}
  1899  	if z.Filter == nil {
  1900  		s += msgp.NilSize
  1901  	} else {
  1902  		s += z.Filter.Msgsize()
  1903  	}
  1904  	if z.Height == nil {
  1905  		s += msgp.NilSize
  1906  	} else {
  1907  		s += msgp.Uint64Size
  1908  	}
  1909  	s += msgp.Uint32Size
  1910  	return
  1911  }
  1912  
  1913  // DecodeMsg implements msgp.Decodable
  1914  func (z *MessageSyncResponse) DecodeMsg(dc *msgp.Reader) (err error) {
  1915  	var zb0001 uint32
  1916  	zb0001, err = dc.ReadArrayHeader()
  1917  	if err != nil {
  1918  		err = msgp.WrapError(err)
  1919  		return
  1920  	}
  1921  	if zb0001 != 2 {
  1922  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
  1923  		return
  1924  	}
  1925  	if dc.IsNil() {
  1926  		err = dc.ReadNil()
  1927  		if err != nil {
  1928  			err = msgp.WrapError(err, "RawTxs")
  1929  			return
  1930  		}
  1931  		z.RawTxs = nil
  1932  	} else {
  1933  		if z.RawTxs == nil {
  1934  			z.RawTxs = new(TxisMarshaler)
  1935  		}
  1936  		err = z.RawTxs.DecodeMsg(dc)
  1937  		if err != nil {
  1938  			err = msgp.WrapError(err, "RawTxs")
  1939  			return
  1940  		}
  1941  	}
  1942  	z.RequestedId, err = dc.ReadUint32()
  1943  	if err != nil {
  1944  		err = msgp.WrapError(err, "RequestId")
  1945  		return
  1946  	}
  1947  	return
  1948  }
  1949  
  1950  // EncodeMsg implements msgp.Encodable
  1951  func (z *MessageSyncResponse) EncodeMsg(en *msgp.Writer) (err error) {
  1952  	// array header, size 2
  1953  	err = en.Append(0x92)
  1954  	if err != nil {
  1955  		return
  1956  	}
  1957  	if z.RawTxs == nil {
  1958  		err = en.WriteNil()
  1959  		if err != nil {
  1960  			return
  1961  		}
  1962  	} else {
  1963  		err = z.RawTxs.EncodeMsg(en)
  1964  		if err != nil {
  1965  			err = msgp.WrapError(err, "RawTxs")
  1966  			return
  1967  		}
  1968  	}
  1969  	err = en.WriteUint32(z.RequestedId)
  1970  	if err != nil {
  1971  		err = msgp.WrapError(err, "RequestId")
  1972  		return
  1973  	}
  1974  	return
  1975  }
  1976  
  1977  // MarshalMsg implements msgp.Marshaler
  1978  func (z *MessageSyncResponse) MarshalMsg(b []byte) (o []byte, err error) {
  1979  	o = msgp.Require(b, z.Msgsize())
  1980  	// array header, size 2
  1981  	o = append(o, 0x92)
  1982  	if z.RawTxs == nil {
  1983  		o = msgp.AppendNil(o)
  1984  	} else {
  1985  		o, err = z.RawTxs.MarshalMsg(o)
  1986  		if err != nil {
  1987  			err = msgp.WrapError(err, "RawTxs")
  1988  			return
  1989  		}
  1990  	}
  1991  	o = msgp.AppendUint32(o, z.RequestedId)
  1992  	return
  1993  }
  1994  
  1995  // UnmarshalMsg implements msgp.Unmarshaler
  1996  func (z *MessageSyncResponse) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1997  	var zb0001 uint32
  1998  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1999  	if err != nil {
  2000  		err = msgp.WrapError(err)
  2001  		return
  2002  	}
  2003  	if zb0001 != 2 {
  2004  		err = msgp.ArrayError{Wanted: 2, Got: zb0001}
  2005  		return
  2006  	}
  2007  	if msgp.IsNil(bts) {
  2008  		bts, err = msgp.ReadNilBytes(bts)
  2009  		if err != nil {
  2010  			return
  2011  		}
  2012  		z.RawTxs = nil
  2013  	} else {
  2014  		if z.RawTxs == nil {
  2015  			z.RawTxs = new(TxisMarshaler)
  2016  		}
  2017  		bts, err = z.RawTxs.UnmarshalMsg(bts)
  2018  		if err != nil {
  2019  			err = msgp.WrapError(err, "RawTxs")
  2020  			return
  2021  		}
  2022  	}
  2023  	z.RequestedId, bts, err = msgp.ReadUint32Bytes(bts)
  2024  	if err != nil {
  2025  		err = msgp.WrapError(err, "RequestId")
  2026  		return
  2027  	}
  2028  	o = bts
  2029  	return
  2030  }
  2031  
  2032  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  2033  func (z *MessageSyncResponse) Msgsize() (s int) {
  2034  	s = 1
  2035  	if z.RawTxs == nil {
  2036  		s += msgp.NilSize
  2037  	} else {
  2038  		s += z.RawTxs.Msgsize()
  2039  	}
  2040  	s += msgp.Uint32Size
  2041  	return
  2042  }
  2043  
  2044  // DecodeMsg implements msgp.Decodable
  2045  func (z *MessageTxsRequest) DecodeMsg(dc *msgp.Reader) (err error) {
  2046  	var zb0001 uint32
  2047  	zb0001, err = dc.ReadArrayHeader()
  2048  	if err != nil {
  2049  		err = msgp.WrapError(err)
  2050  		return
  2051  	}
  2052  	if zb0001 != 4 {
  2053  		err = msgp.ArrayError{Wanted: 4, Got: zb0001}
  2054  		return
  2055  	}
  2056  	if dc.IsNil() {
  2057  		err = dc.ReadNil()
  2058  		if err != nil {
  2059  			err = msgp.WrapError(err, "Hashes")
  2060  			return
  2061  		}
  2062  		z.Hashes = nil
  2063  	} else {
  2064  		if z.Hashes == nil {
  2065  			z.Hashes = new(types.Hashes)
  2066  		}
  2067  		err = z.Hashes.DecodeMsg(dc)
  2068  		if err != nil {
  2069  			err = msgp.WrapError(err, "Hashes")
  2070  			return
  2071  		}
  2072  	}
  2073  	if dc.IsNil() {
  2074  		err = dc.ReadNil()
  2075  		if err != nil {
  2076  			err = msgp.WrapError(err, "SeqHash")
  2077  			return
  2078  		}
  2079  		z.SeqHash = nil
  2080  	} else {
  2081  		if z.SeqHash == nil {
  2082  			z.SeqHash = new(types.Hash)
  2083  		}
  2084  		err = z.SeqHash.DecodeMsg(dc)
  2085  		if err != nil {
  2086  			err = msgp.WrapError(err, "SeqHash")
  2087  			return
  2088  		}
  2089  	}
  2090  	if dc.IsNil() {
  2091  		err = dc.ReadNil()
  2092  		if err != nil {
  2093  			err = msgp.WrapError(err, "Id")
  2094  			return
  2095  		}
  2096  		z.Id = nil
  2097  	} else {
  2098  		if z.Id == nil {
  2099  			z.Id = new(uint64)
  2100  		}
  2101  		*z.Id, err = dc.ReadUint64()
  2102  		if err != nil {
  2103  			err = msgp.WrapError(err, "Id")
  2104  			return
  2105  		}
  2106  	}
  2107  	z.RequestId, err = dc.ReadUint32()
  2108  	if err != nil {
  2109  		err = msgp.WrapError(err, "RequestId")
  2110  		return
  2111  	}
  2112  	return
  2113  }
  2114  
  2115  // EncodeMsg implements msgp.Encodable
  2116  func (z *MessageTxsRequest) EncodeMsg(en *msgp.Writer) (err error) {
  2117  	// array header, size 4
  2118  	err = en.Append(0x94)
  2119  	if err != nil {
  2120  		return
  2121  	}
  2122  	if z.Hashes == nil {
  2123  		err = en.WriteNil()
  2124  		if err != nil {
  2125  			return
  2126  		}
  2127  	} else {
  2128  		err = z.Hashes.EncodeMsg(en)
  2129  		if err != nil {
  2130  			err = msgp.WrapError(err, "Hashes")
  2131  			return
  2132  		}
  2133  	}
  2134  	if z.SeqHash == nil {
  2135  		err = en.WriteNil()
  2136  		if err != nil {
  2137  			return
  2138  		}
  2139  	} else {
  2140  		err = z.SeqHash.EncodeMsg(en)
  2141  		if err != nil {
  2142  			err = msgp.WrapError(err, "SeqHash")
  2143  			return
  2144  		}
  2145  	}
  2146  	if z.Id == nil {
  2147  		err = en.WriteNil()
  2148  		if err != nil {
  2149  			return
  2150  		}
  2151  	} else {
  2152  		err = en.WriteUint64(*z.Id)
  2153  		if err != nil {
  2154  			err = msgp.WrapError(err, "Id")
  2155  			return
  2156  		}
  2157  	}
  2158  	err = en.WriteUint32(z.RequestId)
  2159  	if err != nil {
  2160  		err = msgp.WrapError(err, "RequestId")
  2161  		return
  2162  	}
  2163  	return
  2164  }
  2165  
  2166  // MarshalMsg implements msgp.Marshaler
  2167  func (z *MessageTxsRequest) MarshalMsg(b []byte) (o []byte, err error) {
  2168  	o = msgp.Require(b, z.Msgsize())
  2169  	// array header, size 4
  2170  	o = append(o, 0x94)
  2171  	if z.Hashes == nil {
  2172  		o = msgp.AppendNil(o)
  2173  	} else {
  2174  		o, err = z.Hashes.MarshalMsg(o)
  2175  		if err != nil {
  2176  			err = msgp.WrapError(err, "Hashes")
  2177  			return
  2178  		}
  2179  	}
  2180  	if z.SeqHash == nil {
  2181  		o = msgp.AppendNil(o)
  2182  	} else {
  2183  		o, err = z.SeqHash.MarshalMsg(o)
  2184  		if err != nil {
  2185  			err = msgp.WrapError(err, "SeqHash")
  2186  			return
  2187  		}
  2188  	}
  2189  	if z.Id == nil {
  2190  		o = msgp.AppendNil(o)
  2191  	} else {
  2192  		o = msgp.AppendUint64(o, *z.Id)
  2193  	}
  2194  	o = msgp.AppendUint32(o, z.RequestId)
  2195  	return
  2196  }
  2197  
  2198  // UnmarshalMsg implements msgp.Unmarshaler
  2199  func (z *MessageTxsRequest) UnmarshalMsg(bts []byte) (o []byte, err error) {
  2200  	var zb0001 uint32
  2201  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  2202  	if err != nil {
  2203  		err = msgp.WrapError(err)
  2204  		return
  2205  	}
  2206  	if zb0001 != 4 {
  2207  		err = msgp.ArrayError{Wanted: 4, Got: zb0001}
  2208  		return
  2209  	}
  2210  	if msgp.IsNil(bts) {
  2211  		bts, err = msgp.ReadNilBytes(bts)
  2212  		if err != nil {
  2213  			return
  2214  		}
  2215  		z.Hashes = nil
  2216  	} else {
  2217  		if z.Hashes == nil {
  2218  			z.Hashes = new(types.Hashes)
  2219  		}
  2220  		bts, err = z.Hashes.UnmarshalMsg(bts)
  2221  		if err != nil {
  2222  			err = msgp.WrapError(err, "Hashes")
  2223  			return
  2224  		}
  2225  	}
  2226  	if msgp.IsNil(bts) {
  2227  		bts, err = msgp.ReadNilBytes(bts)
  2228  		if err != nil {
  2229  			return
  2230  		}
  2231  		z.SeqHash = nil
  2232  	} else {
  2233  		if z.SeqHash == nil {
  2234  			z.SeqHash = new(types.Hash)
  2235  		}
  2236  		bts, err = z.SeqHash.UnmarshalMsg(bts)
  2237  		if err != nil {
  2238  			err = msgp.WrapError(err, "SeqHash")
  2239  			return
  2240  		}
  2241  	}
  2242  	if msgp.IsNil(bts) {
  2243  		bts, err = msgp.ReadNilBytes(bts)
  2244  		if err != nil {
  2245  			return
  2246  		}
  2247  		z.Id = nil
  2248  	} else {
  2249  		if z.Id == nil {
  2250  			z.Id = new(uint64)
  2251  		}
  2252  		*z.Id, bts, err = msgp.ReadUint64Bytes(bts)
  2253  		if err != nil {
  2254  			err = msgp.WrapError(err, "Id")
  2255  			return
  2256  		}
  2257  	}
  2258  	z.RequestId, bts, err = msgp.ReadUint32Bytes(bts)
  2259  	if err != nil {
  2260  		err = msgp.WrapError(err, "RequestId")
  2261  		return
  2262  	}
  2263  	o = bts
  2264  	return
  2265  }
  2266  
  2267  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  2268  func (z *MessageTxsRequest) Msgsize() (s int) {
  2269  	s = 1
  2270  	if z.Hashes == nil {
  2271  		s += msgp.NilSize
  2272  	} else {
  2273  		s += z.Hashes.Msgsize()
  2274  	}
  2275  	if z.SeqHash == nil {
  2276  		s += msgp.NilSize
  2277  	} else {
  2278  		s += z.SeqHash.Msgsize()
  2279  	}
  2280  	if z.Id == nil {
  2281  		s += msgp.NilSize
  2282  	} else {
  2283  		s += msgp.Uint64Size
  2284  	}
  2285  	s += msgp.Uint32Size
  2286  	return
  2287  }
  2288  
  2289  // DecodeMsg implements msgp.Decodable
  2290  func (z *MessageTxsResponse) DecodeMsg(dc *msgp.Reader) (err error) {
  2291  	var zb0001 uint32
  2292  	zb0001, err = dc.ReadArrayHeader()
  2293  	if err != nil {
  2294  		err = msgp.WrapError(err)
  2295  		return
  2296  	}
  2297  	if zb0001 != 3 {
  2298  		err = msgp.ArrayError{Wanted: 3, Got: zb0001}
  2299  		return
  2300  	}
  2301  	if dc.IsNil() {
  2302  		err = dc.ReadNil()
  2303  		if err != nil {
  2304  			err = msgp.WrapError(err, "RawSequencer")
  2305  			return
  2306  		}
  2307  		z.RawSequencer = nil
  2308  	} else {
  2309  		if z.RawSequencer == nil {
  2310  			z.RawSequencer = new(RawSequencer)
  2311  		}
  2312  		err = z.RawSequencer.DecodeMsg(dc)
  2313  		if err != nil {
  2314  			err = msgp.WrapError(err, "RawSequencer")
  2315  			return
  2316  		}
  2317  	}
  2318  	if dc.IsNil() {
  2319  		err = dc.ReadNil()
  2320  		if err != nil {
  2321  			err = msgp.WrapError(err, "RawTxs")
  2322  			return
  2323  		}
  2324  		z.RawTxs = nil
  2325  	} else {
  2326  		if z.RawTxs == nil {
  2327  			z.RawTxs = new(TxisMarshaler)
  2328  		}
  2329  		err = z.RawTxs.DecodeMsg(dc)
  2330  		if err != nil {
  2331  			err = msgp.WrapError(err, "RawTxs")
  2332  			return
  2333  		}
  2334  	}
  2335  	z.RequestedId, err = dc.ReadUint32()
  2336  	if err != nil {
  2337  		err = msgp.WrapError(err, "RequestId")
  2338  		return
  2339  	}
  2340  	return
  2341  }
  2342  
  2343  // EncodeMsg implements msgp.Encodable
  2344  func (z *MessageTxsResponse) EncodeMsg(en *msgp.Writer) (err error) {
  2345  	// array header, size 3
  2346  	err = en.Append(0x93)
  2347  	if err != nil {
  2348  		return
  2349  	}
  2350  	if z.RawSequencer == nil {
  2351  		err = en.WriteNil()
  2352  		if err != nil {
  2353  			return
  2354  		}
  2355  	} else {
  2356  		err = z.RawSequencer.EncodeMsg(en)
  2357  		if err != nil {
  2358  			err = msgp.WrapError(err, "RawSequencer")
  2359  			return
  2360  		}
  2361  	}
  2362  	if z.RawTxs == nil {
  2363  		err = en.WriteNil()
  2364  		if err != nil {
  2365  			return
  2366  		}
  2367  	} else {
  2368  		err = z.RawTxs.EncodeMsg(en)
  2369  		if err != nil {
  2370  			err = msgp.WrapError(err, "RawTxs")
  2371  			return
  2372  		}
  2373  	}
  2374  	err = en.WriteUint32(z.RequestedId)
  2375  	if err != nil {
  2376  		err = msgp.WrapError(err, "RequestId")
  2377  		return
  2378  	}
  2379  	return
  2380  }
  2381  
  2382  // MarshalMsg implements msgp.Marshaler
  2383  func (z *MessageTxsResponse) MarshalMsg(b []byte) (o []byte, err error) {
  2384  	o = msgp.Require(b, z.Msgsize())
  2385  	// array header, size 3
  2386  	o = append(o, 0x93)
  2387  	if z.RawSequencer == nil {
  2388  		o = msgp.AppendNil(o)
  2389  	} else {
  2390  		o, err = z.RawSequencer.MarshalMsg(o)
  2391  		if err != nil {
  2392  			err = msgp.WrapError(err, "RawSequencer")
  2393  			return
  2394  		}
  2395  	}
  2396  	if z.RawTxs == nil {
  2397  		o = msgp.AppendNil(o)
  2398  	} else {
  2399  		o, err = z.RawTxs.MarshalMsg(o)
  2400  		if err != nil {
  2401  			err = msgp.WrapError(err, "RawTxs")
  2402  			return
  2403  		}
  2404  	}
  2405  	o = msgp.AppendUint32(o, z.RequestedId)
  2406  	return
  2407  }
  2408  
  2409  // UnmarshalMsg implements msgp.Unmarshaler
  2410  func (z *MessageTxsResponse) UnmarshalMsg(bts []byte) (o []byte, err error) {
  2411  	var zb0001 uint32
  2412  	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
  2413  	if err != nil {
  2414  		err = msgp.WrapError(err)
  2415  		return
  2416  	}
  2417  	if zb0001 != 3 {
  2418  		err = msgp.ArrayError{Wanted: 3, Got: zb0001}
  2419  		return
  2420  	}
  2421  	if msgp.IsNil(bts) {
  2422  		bts, err = msgp.ReadNilBytes(bts)
  2423  		if err != nil {
  2424  			return
  2425  		}
  2426  		z.RawSequencer = nil
  2427  	} else {
  2428  		if z.RawSequencer == nil {
  2429  			z.RawSequencer = new(RawSequencer)
  2430  		}
  2431  		bts, err = z.RawSequencer.UnmarshalMsg(bts)
  2432  		if err != nil {
  2433  			err = msgp.WrapError(err, "RawSequencer")
  2434  			return
  2435  		}
  2436  	}
  2437  	if msgp.IsNil(bts) {
  2438  		bts, err = msgp.ReadNilBytes(bts)
  2439  		if err != nil {
  2440  			return
  2441  		}
  2442  		z.RawTxs = nil
  2443  	} else {
  2444  		if z.RawTxs == nil {
  2445  			z.RawTxs = new(TxisMarshaler)
  2446  		}
  2447  		bts, err = z.RawTxs.UnmarshalMsg(bts)
  2448  		if err != nil {
  2449  			err = msgp.WrapError(err, "RawTxs")
  2450  			return
  2451  		}
  2452  	}
  2453  	z.RequestedId, bts, err = msgp.ReadUint32Bytes(bts)
  2454  	if err != nil {
  2455  		err = msgp.WrapError(err, "RequestId")
  2456  		return
  2457  	}
  2458  	o = bts
  2459  	return
  2460  }
  2461  
  2462  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  2463  func (z *MessageTxsResponse) Msgsize() (s int) {
  2464  	s = 1
  2465  	if z.RawSequencer == nil {
  2466  		s += msgp.NilSize
  2467  	} else {
  2468  		s += z.RawSequencer.Msgsize()
  2469  	}
  2470  	if z.RawTxs == nil {
  2471  		s += msgp.NilSize
  2472  	} else {
  2473  		s += z.RawTxs.Msgsize()
  2474  	}
  2475  	s += msgp.Uint32Size
  2476  	return
  2477  }