Include other Monero information in consensus
This commit is contained in:
parent
beff0f88cd
commit
26d7b96270
|
@ -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,
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue