Include other Monero information in consensus

This commit is contained in:
DataHoarder 2023-07-28 13:50:23 +02:00
parent beff0f88cd
commit 26d7b96270
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 12 additions and 4 deletions

View file

@ -332,8 +332,11 @@ func main() {
},
MainChain: cmdutils.PoolInfoResultMainChain{
Consensus: cmdutils.PoolInfoResultMainChainConsensus{
HardForks: sidechain.NetworkHardFork(consensus),
BlockTime: monero.BlockTime,
BlockTime: monero.BlockTime,
TransactionUnlockTime: monero.TransactionUnlockTime,
MinerRewardUnlockTime: monero.MinerRewardUnlockTime,
HardForkSupportedVersion: monero.HardForkSupportedVersion,
HardForks: sidechain.NetworkHardFork(consensus),
},
Id: mainTip.Id,
CoinbaseId: mainTip.CoinbaseId,

View file

@ -150,8 +150,13 @@ type PoolInfoResultSideChainWindow struct {
}
type PoolInfoResultMainChainConsensus struct {
BlockTime uint64 `json:"block_time"`
// HardFork information for Monero known hardfork by backing p2pool
BlockTime uint64 `json:"block_time"`
TransactionUnlockTime uint64 `json:"transaction_unlock_time"`
MinerRewardUnlockTime uint64 `json:"miner_reward_unlock_time"`
// HardForkSupportedVersion
HardForkSupportedVersion uint8 `json:"hard_fork_supported_version"`
// HardForks HardFork information for Monero known hardfork by backing p2pool
HardForks []sidechain.HardFork `json:"hard_forks,omitempty"`
}