git.gammaspectra.live/P2Pool/consensus@v0.0.0-20240403173234-a039820b20c9/p2pool/types/minerdata.go (about)

     1  package types
     2  
     3  import (
     4  	"git.gammaspectra.live/P2Pool/consensus/p2pool/mempool"
     5  	"git.gammaspectra.live/P2Pool/consensus/types"
     6  	"time"
     7  )
     8  
     9  type MinerData struct {
    10  	MajorVersion          uint8            `json:"major_version"`
    11  	Height                uint64           `json:"height"`
    12  	PrevId                types.Hash       `json:"prev_id"`
    13  	SeedHash              types.Hash       `json:"seed_hash"`
    14  	Difficulty            types.Difficulty `json:"difficulty"`
    15  	MedianWeight          uint64           `json:"median_weight"`
    16  	AlreadyGeneratedCoins uint64           `json:"already_generated_coins"`
    17  	MedianTimestamp       uint64           `json:"median_timestamp"`
    18  	TimeReceived          time.Time        `json:"time_received"`
    19  	TxBacklog             mempool.Mempool  `json:"tx_backlog"`
    20  }