core: add P2PNotary designated role
This commit is contained in:
parent
619b6d4132
commit
b00eb51c55
5 changed files with 35 additions and 14 deletions
|
@ -49,7 +49,7 @@ func (cs *Contracts) ByName(name string) interop.Contract {
|
|||
|
||||
// NewContracts returns new set of native contracts with new GAS, NEO and Policy
|
||||
// contracts.
|
||||
func NewContracts() *Contracts {
|
||||
func NewContracts(p2pSigExtensionsEnabled bool) *Contracts {
|
||||
cs := new(Contracts)
|
||||
|
||||
gas := newGAS()
|
||||
|
@ -72,7 +72,7 @@ func NewContracts() *Contracts {
|
|||
cs.Oracle = oracle
|
||||
cs.Contracts = append(cs.Contracts, oracle)
|
||||
|
||||
desig := newDesignate()
|
||||
desig := newDesignate(p2pSigExtensionsEnabled)
|
||||
desig.NEO = neo
|
||||
cs.Designate = desig
|
||||
cs.Oracle.Desig = desig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue