Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikspatil024 committed Aug 18, 2023
1 parent faa06a0 commit ff2dedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ func (c *Bor) Prepare(chain consensus.ChainHeaderReader, header *types.Header, s
// sort validator by address
sort.Sort(valset.ValidatorsByAddress(newValidators))

if c.config.IsParallelUniverse(header.Number) {
if c.config.IsParallelUniverse(header.Number.Uint64()) {
var tempValidatorBytes []byte

for _, validator := range newValidators {
Expand All @@ -895,7 +895,7 @@ func (c *Bor) Prepare(chain consensus.ChainHeaderReader, header *types.Header, s
header.Extra = append(header.Extra, validator.HeaderBytes()...)
}
}
} else if c.config.IsParallelUniverse(header.Number) {
} else if c.config.IsParallelUniverse(header.Number.Uint64()) {
blockExtraData := &types.BlockExtraData{
ValidatorBytes: nil,
TxDependency: nil,
Expand Down
2 changes: 1 addition & 1 deletion core/types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ func (b *Block) GetTxDependency() [][]uint64 {
}

func (h *Header) GetValidatorBytes(config *chain.BorConfig) []byte {
if !config.IsParallelUniverse(h.Number) {
if !config.IsParallelUniverse(h.Number.Uint64()) {
return h.Extra[ExtraVanityLength : len(h.Extra)-ExtraSealLength]
}

Expand Down

0 comments on commit ff2dedf

Please sign in to comment.