consensus/p2pool/types/minerdata.go
DataHoarder a039820b20
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
P2Pool consensus v3.0
Migrate cmd utils, cmds to own repository
2024-04-03 19:32:34 +02:00

21 lines
786 B
Go

package types
import (
"git.gammaspectra.live/P2Pool/consensus/p2pool/mempool"
"git.gammaspectra.live/P2Pool/consensus/types"
"time"
)
type MinerData struct {
MajorVersion uint8 `json:"major_version"`
Height uint64 `json:"height"`
PrevId types.Hash `json:"prev_id"`
SeedHash types.Hash `json:"seed_hash"`
Difficulty types.Difficulty `json:"difficulty"`
MedianWeight uint64 `json:"median_weight"`
AlreadyGeneratedCoins uint64 `json:"already_generated_coins"`
MedianTimestamp uint64 `json:"median_timestamp"`
TimeReceived time.Time `json:"time_received"`
TxBacklog mempool.Mempool `json:"tx_backlog"`
}