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

21 lines
792 B
Go

package types
import (
"git.gammaspectra.live/P2Pool/consensus/v3/p2pool/mempool"
"git.gammaspectra.live/P2Pool/consensus/v3/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"`
}