Documentation ¶
Index ¶
- Constants
- func IsAllowed() bool
- type API
- type Config
- type Noncer
- func (n *Noncer) APIs() []rpc.API
- func (n *Noncer) CheckNoncerEligibility(assetbox common.Address) (bool, error)
- func (n *Noncer) ForceNonce(assetbox common.Address, nonce int64) error
- func (n *Noncer) GetNonce(assetbox common.Address) (int64, error)
- func (n *Noncer) GetNoncerAssetboxes() ([]common.Address, error)
- func (n *Noncer) IncrementAndGetNonce(assetbox common.Address) (int64, error)
- func (n *Noncer) Protocols() []p2p.Protocol
- func (n *Noncer) RemoveAssetboxesFromNoncer(assetboxes []common.Address) error
- func (n *Noncer) SetUpNonce(assetbox common.Address, nonce int64) error
- func (n *Noncer) Start(srvr *p2p.Server) (err error)
- func (n *Noncer) Stop() error
- func (n *Noncer) Stopped() bool
Constants ¶
View Source
const ( ProtocolVersionStr = "1.0.0" // The same, as a string ProtocolName = "bitbon_noncer" // Nickname of the protocol in geth DefaultDialTimeout = 5000 DefaultMaxRetries = 20 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides the bitbon bitbon RPC service
type Config ¶
type Config struct { Enabled bool RedisConnStrs []string Key string DialTimeout uint64 MaxRetries uint64 }
Config represents the configuration state of a bitbon agent service.
type Noncer ¶
type Noncer struct {
// contains filtered or unexported fields
}
func (*Noncer) CheckNoncerEligibility ¶
func (*Noncer) ForceNonce ¶
directly sets nonce for given address use very carefully
func (*Noncer) GetNonce ¶
returns the current amount of transactions (for next transaction it should be incremented)
func (*Noncer) GetNoncerAssetboxes ¶
func (*Noncer) IncrementAndGetNonce ¶
increments nonce and returns the incremented value
func (*Noncer) RemoveAssetboxesFromNoncer ¶
Click to show internal directories.
Click to hide internal directories.