Compare commits

...

2 commits

Author SHA1 Message Date
DataHoarder c6c104732c
Consensus version v3.8.0 with proper merge mining sidechain tested support
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-04-23 18:59:36 +02:00
DataHoarder 848b3e72e9
initialize blocksByMerkleRoot on sidechain 2024-04-23 18:46:23 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -99,6 +99,7 @@ func NewSideChain(server P2PoolInterface) *SideChain {
derivationCache: NewDerivationMapCache(),
server: server,
blocksByTemplateId: swiss.NewMap[types.Hash, *PoolBlock](uint32(server.Consensus().ChainWindowSize*2 + 300)),
blocksByMerkleRoot: swiss.NewMap[types.Hash, *PoolBlock](uint32(server.Consensus().ChainWindowSize*2 + 300)),
blocksByHeight: swiss.NewMap[uint64, []*PoolBlock](uint32(server.Consensus().ChainWindowSize*2 + 300)),
preAllocatedShares: PreAllocateShares(server.Consensus().ChainWindowSize * 2),
preAllocatedRewards: make([]uint64, 0, server.Consensus().ChainWindowSize*2),

View file

@ -108,7 +108,7 @@ func (v SoftwareVersion) String() string {
const SupportedProtocolVersion = ProtocolVersion_1_2
const CurrentSoftwareVersionMajor = 3 & 0xFFFF
const CurrentSoftwareVersionMinor = 7 & 0xFFFF
const CurrentSoftwareVersionMinor = 8 & 0xFFFF
const CurrentSoftwareVersion SoftwareVersion = (CurrentSoftwareVersionMajor << 16) | CurrentSoftwareVersionMinor
const CurrentSoftwareId = SoftwareIdGoObserver