Documentation ¶
Index ¶
- Constants
- Variables
- func APIs(engine *pbft.Pbft) []rpc.API
- func Init(engine *pbft.Pbft, stack *node.Node, accountPath, accountPassword string)
- func SendAriberToPeer(engine *pbft.Pbft, pid peer.PID, isCurrent bool)
- func Start() bool
- func StartUpdateNode()
- func Stop(msg string)
- type API
- func (a *API) GetArbiters(chainID uint64) *Arbiters
- func (a *API) GetCollectedArbiterList() *Message
- func (a *API) GetSignerAddress() string
- func (a *API) HasProducerMajorityCount(count, total int) bool
- func (a *API) InitArbiterList(arbiters []common.Address, total int, chainID uint64) error
- func (a *API) UpdateArbiters(chainID uint64) error
- type Arbiters
- type Message
Constants ¶
View Source
const (
MAX_RETRYCOUNT = 60
)
Variables ¶
View Source
var ( MsgReleayer *relayer.Relayer IsFirstUpdateArbiter bool )
Functions ¶
func StartUpdateNode ¶
func StartUpdateNode()
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is a user facing RPC API to allow controlling the signer and voting mechanisms of the delegate-proof-of-stake scheme.
func (*API) GetArbiters ¶
func (*API) GetCollectedArbiterList ¶
func (*API) GetSignerAddress ¶
func (*API) HasProducerMajorityCount ¶
func (*API) InitArbiterList ¶
func (*API) UpdateArbiters ¶
Directories ¶
Path | Synopsis |
---|---|
chains
|
|
The crypto package is used to provide functionality to several keypair types.
|
The crypto package is used to provide functionality to several keypair types. |
The keystore package is used to load keys from keystore files, both for live use and for testing.
|
The keystore package is used to load keys from keystore files, both for live use and for testing. |
Click to show internal directories.
Click to hide internal directories.