func createTableRequest(startingBlock uint64) ([]byte, error) {

	var request []byte

	if startingBlock < genesisBlock {
		return nil, errors.New("Starting block is too old")
	}

	//Serialize the message type and append it to the response
	messageTypeBytes := make([]byte, 2)
	binary.BigEndian.PutUint16(messageTypeBytes, tableRequestType)

	request = append(request, messageTypeBytes...)

	//Serialize the startingBloc  and append it to the response
	startingBlockBytes := make([]byte, 8)
	binary.BigEndian.PutUint64(startingBlockBytes, startingBlock)

	request = append(request, startingBlockBytes...)

	return request, nil
}
//Create a serialized table request
Create a serialized table request
// Create a serialized table request
func createTableRequest(startingBlock uint64) ([]byte, error) {
	var request []byte
	if startingBlock < genesisBlock {
		return nil, errors.New("Starting block is too old")
	}
	messageTypeBytes := make([]byte, 2)
	binary.BigEndian.PutUint16(messageTypeBytes, tableRequestType)
	request = append(request, messageTypeBytes...)
	startingBlockBytes := make([]byte, 8)
	binary.BigEndian.PutUint64(startingBlockBytes, startingBlock)
	request = append(request, startingBlockBytes...)
	return request, nil
}
func createTableRequest ( startingBlock uint64 ) ( [ ] byte , error ) { var request [ ] byte if startingBlock < genesisBlock { return nil , errors . New ( " " ) } messageTypeBytes := make ( [ ] byte , 2 ) binary . BigEndian . PutUint16 ( messageTypeBytes , tableRequestType ) request = append ( request , messageTypeBytes ... ) startingBlockBytes := make ( [ ] byte , 8 ) binary . BigEndian . PutUint64 ( startingBlockBytes , startingBlock ) request = append ( request , startingBlockBytes ... ) return request , nil }
Create a serialized table request
Create a serialized table request
//Serialize the message type and append it to the response //Serialize the startingBloc  and append it to the response