Skip to content

Commit

Permalink
Merge pull request dedis#2161 from dedis/personhood_version
Browse files Browse the repository at this point in the history
Use new darc-rule only in version 3
  • Loading branch information
Jeff R. Allen committed Dec 9, 2019
2 parents fc19564 + ad681da commit fd4161f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions byzcoin/bcadmin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/qantik/qrgo"
"github.com/urfave/cli"
"go.dedis.ch/cothority/v3"
_ "go.dedis.ch/cothority/v3/bevm"
"go.dedis.ch/cothority/v3/byzcoin"
"go.dedis.ch/cothority/v3/byzcoin/bcadmin/lib"
"go.dedis.ch/cothority/v3/byzcoin/contracts"
Expand Down
2 changes: 1 addition & 1 deletion byzcoin/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ func init() {
type Version int

// CurrentVersion is what we're running now
const CurrentVersion Version = 2
const CurrentVersion Version = 3
2 changes: 1 addition & 1 deletion personhood/contract_popparty.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c ContractPopParty) Spawn(rst byzcoin.ReadOnlyStateTrie, inst byzcoin.Inst
return nil, nil, errors.New("couldn't get darc: " + err.Error())
}
var expr expression.Expr
if rst.GetVersion() < 2 {
if rst.GetVersion() < 3 {
expr = d.Rules.Get("invoke:finalize")
} else {
expr = d.Rules.Get("invoke:popParty.finalize")
Expand Down

0 comments on commit fd4161f

Please sign in to comment.