func (hb *HoneyBadger) Messages() []MessageTuple {
	return hb.messageQue.messages()
}
Messages returns all the internal messages from the message que. Note that
the que will be empty after invoking this method.
package hbbft
import (
	"bytes"
	"encoding/gob"
	"math"
	"sync"
	"time"
	log "github.com/sirupsen/logrus"
)
type HBMessage struct {
	Epoch   uint64
	Payload interface{}
}
type Config struct {
	N int
	F int
	ID uint64
	Nodes []uint64
	BatchSize int
}
type HoneyBadger struct {
	Config
	acsInstances map[uint64]*ACS
	txBuffer *buffer
	epoch uint64
	lock sync.RWMutex
	outputs map[uint64][]Transaction
	messageQue *messageQue
	msgCount int
}
func NewHoneyBadger(cfg Config) *HoneyBadger {
	return &HoneyBadger{
		Config:       cfg,
		acsInstances: make(map[uint64]*ACS),
		txBuffer:     newBuffer(),
		outputs:      make(map[uint64][]Transaction),
		messageQue:   newMessageQue(),
	}
}