mirror of https://github.com/poanetwork/quorum.git
debugging init population issue
This commit is contained in:
parent
2363ef5769
commit
37d76a1d3b
|
@ -380,7 +380,7 @@ func startQuorumPermissionService(ctx *cli.Context, stack *node.Node) {
|
|||
}
|
||||
|
||||
log.Info("Node Permission service started")
|
||||
v := stack.GetRPC("permnode")
|
||||
v := stack.GetRPC("quorum")
|
||||
if v == nil {
|
||||
utils.Fatalf("Failed to start Quorum Permission API")
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import (
|
|||
"github.com/ethereum/go-ethereum/eth"
|
||||
"github.com/ethereum/go-ethereum/ethclient"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
|
||||
)
|
||||
// Create an RPC client for the contract interface
|
||||
func CreateEthClient(stack *node.Node ) (*ethclient.Client, *eth.Ethereum, error){
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -45,6 +45,7 @@ type PermissionCtrl struct {
|
|||
key *ecdsa.PrivateKey
|
||||
}
|
||||
|
||||
// Creates the controls structure for permissions
|
||||
func NewQuorumPermissionCtrl(stack *node.Node, isRaft bool) (*PermissionCtrl, error) {
|
||||
// Create a new ethclient to for interfacing with the contract
|
||||
stateReader, e, err := controls.CreateEthClient(stack)
|
||||
|
@ -454,12 +455,12 @@ func (p *PermissionCtrl) populateStaticNodesToContract() {
|
|||
log.Debug("Transaction pending", "tx hash", tx.Hash())
|
||||
}
|
||||
// update the network boot status to true
|
||||
nonce := p.eth.TxPool().Nonce(permissionsSession.TransactOpts.From)
|
||||
permissionsSession.TransactOpts.Nonce = new(big.Int).SetUint64(nonce)
|
||||
// nonce := p.eth.TxPool().Nonce(permissionsSession.TransactOpts.From)
|
||||
// permissionsSession.TransactOpts.Nonce = new(big.Int).SetUint64(nonce)
|
||||
|
||||
_, err := permissionsSession.UpdateNetworkBootStatus()
|
||||
if err != nil {
|
||||
log.Warn("Failed to udpate network boot status ", "err", err)
|
||||
}
|
||||
// _, err := permissionsSession.UpdateNetworkBootStatus()
|
||||
// if err != nil {
|
||||
// log.Warn("Failed to udpate network boot status ", "err", err)
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue