func heightToBigEndianBytes(height uint32) []byte {
	b := make([]byte, 4)
	binary.BigEndian.PutUint32(b, height)
	return b
}
heightToBigEndianBytes returns a 4-byte big endian representation of
the provided block height.
package pool
import (
	"bytes"
	"encoding/binary"
	"encoding/hex"
	"time"
)
type AcceptedWork struct {
	UUID      string `json:"uuid"`
	BlockHash string `json:"blockhash"`
	PrevHash  string `json:"prevhash"`
	Height    uint32 `json:"height"`
	MinedBy   string `json:"minedby"`
	Miner     string `json:"miner"`
	CreatedOn int64  `json:"createdon"`
	Confirmed bool `json:"confirmed"`
}