Skip to content

Commit

Permalink
mediator put version to header extra
Browse files Browse the repository at this point in the history
  • Loading branch information
studyzy committed Feb 28, 2020
1 parent 1a4993b commit b014e45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dag/common/unit_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/palletone/go-palletone/common"
"github.com/palletone/go-palletone/common/log"
"github.com/palletone/go-palletone/common/ptndb"
"github.com/palletone/go-palletone/configure"
"github.com/palletone/go-palletone/core"

"github.com/palletone/go-palletone/core/accounts/keystore"
Expand Down Expand Up @@ -546,7 +547,8 @@ func (rep *UnitRepository) CreateUnit(mediatorReward common.Address, txs2 []*mod

// step3. generate genesis unit header
b := []byte{}
header := modules.NewHeader([]common.Hash{phash}, common.Hash{}, b, b, b, b, []uint16{},
extra := []byte(configure.Version)
header := modules.NewHeader([]common.Hash{phash}, common.Hash{}, b, b, extra, b, []uint16{},
chainIndex.AssetID, chainIndex.Index, when.Unix())
//if err := sigHeader(header, ks, mediatorReward); err != nil {
// errStr := fmt.Sprintf("GetUnitWithSig error: %v", err.Error())
Expand Down

0 comments on commit b014e45

Please sign in to comment.