Documentation
¶
Index ¶
- Constants
- Variables
- type AccountCreateEvaluator
- type ApplyContext
- type BaseEvaluator
- type BpRegisterEvaluator
- type BpUnregisterEvaluator
- type BpVoteEvaluator
- type ClaimAllEvaluator
- type ClaimEvaluator
- type Controller
- func (c *Controller) AddWeightedVP(value uint64)
- func (c *Controller) ClearPending() []*prototype.TransactionWrapper
- func (c *Controller) Commit(num uint32)
- func (c *Controller) GenerateBlock(witness string, pre *prototype.Sha256, timestamp uint32, ...) *prototype.SignedBlock
- func (c *Controller) GetIncrementSlotAtTime(t *prototype.TimePointSec) uint32
- func (c *Controller) GetProps() *prototype.DynamicProperties
- func (c *Controller) GetScheduledWitness(slot uint32) *prototype.AccountName
- func (c *Controller) GetShuffledWitness() []string
- func (c *Controller) GetSlotTime(slot uint32) *prototype.TimePointSec
- func (c *Controller) GetWitnessTopN(n uint32) []string
- func (c *Controller) HeadBlockTime() *prototype.TimePointSec
- func (c *Controller) Open()
- func (c *Controller) PopBlockTo(num uint32)
- func (c *Controller) PushBlock(blk *prototype.SignedBlock, skip prototype.SkipFlag) error
- func (c *Controller) PushTrx(trx *prototype.SignedTransaction) (invoice *prototype.TransactionInvoice)
- func (c *Controller) SetBus(bus EventBus.Bus)
- func (c *Controller) SetDB(db iservices.IDatabaseService)
- func (c *Controller) SetShuffledWitness(names []string)
- func (c *Controller) Start(node *node.Node) error
- func (c *Controller) Stop() error
- func (c *Controller) TransferFromVest(value *prototype.Vest)
- func (c *Controller) TransferToVest(value *prototype.Coin)
- type FollowEvaluator
- type PostEvaluator
- type ReplyEvaluator
- type TransferEvaluator
- type TransferToVestingEvaluator
- type VoteEvaluator
Constants ¶
View Source
const (
REVERSION_LEN = 100
)
Variables ¶
View Source
var ( SINGLE_ID int32 = 1 REVERSION_FILE_NAME string = "reversion_log" )
Functions ¶
This section is empty.
Types ¶
type AccountCreateEvaluator ¶
type AccountCreateEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*AccountCreateEvaluator) Apply ¶
func (ev *AccountCreateEvaluator) Apply()
type ApplyContext ¶
type ApplyContext struct {
// contains filtered or unexported fields
}
type BaseEvaluator ¶
type BaseEvaluator interface {
Apply()
}
type BpRegisterEvaluator ¶
type BpRegisterEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*BpRegisterEvaluator) Apply ¶
func (ev *BpRegisterEvaluator) Apply()
type BpUnregisterEvaluator ¶
type BpUnregisterEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*BpUnregisterEvaluator) Apply ¶
func (ev *BpUnregisterEvaluator) Apply()
type BpVoteEvaluator ¶
type BpVoteEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*BpVoteEvaluator) Apply ¶
func (ev *BpVoteEvaluator) Apply()
type ClaimAllEvaluator ¶
type ClaimAllEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
I can cat out this awkward claimall operation until I can get value from rpc resp
func (*ClaimAllEvaluator) Apply ¶
func (ev *ClaimAllEvaluator) Apply()
type ClaimEvaluator ¶
type ClaimEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*ClaimEvaluator) Apply ¶
func (ev *ClaimEvaluator) Apply()
type Controller ¶
type Controller struct {
iservices.IController
// contains filtered or unexported fields
}
func NewController ¶
func NewController(ctx *node.ServiceContext) (*Controller, error)
service constructor
func (*Controller) AddWeightedVP ¶
func (c *Controller) AddWeightedVP(value uint64)
func (*Controller) ClearPending ¶
func (c *Controller) ClearPending() []*prototype.TransactionWrapper
func (*Controller) Commit ¶
func (c *Controller) Commit(num uint32)
func (*Controller) GenerateBlock ¶
func (c *Controller) GenerateBlock(witness string, pre *prototype.Sha256, timestamp uint32, priKey *prototype.PrivateKeyType, skip prototype.SkipFlag) *prototype.SignedBlock
func (*Controller) GetIncrementSlotAtTime ¶
func (c *Controller) GetIncrementSlotAtTime(t *prototype.TimePointSec) uint32
func (*Controller) GetProps ¶
func (c *Controller) GetProps() *prototype.DynamicProperties
func (*Controller) GetScheduledWitness ¶
func (c *Controller) GetScheduledWitness(slot uint32) *prototype.AccountName
func (*Controller) GetShuffledWitness ¶
func (c *Controller) GetShuffledWitness() []string
func (*Controller) GetSlotTime ¶
func (c *Controller) GetSlotTime(slot uint32) *prototype.TimePointSec
func (*Controller) GetWitnessTopN ¶
func (c *Controller) GetWitnessTopN(n uint32) []string
func (*Controller) HeadBlockTime ¶
func (c *Controller) HeadBlockTime() *prototype.TimePointSec
func (*Controller) Open ¶
func (c *Controller) Open()
func (*Controller) PopBlockTo ¶
func (c *Controller) PopBlockTo(num uint32)
func (*Controller) PushBlock ¶
func (c *Controller) PushBlock(blk *prototype.SignedBlock, skip prototype.SkipFlag) error
func (*Controller) PushTrx ¶
func (c *Controller) PushTrx(trx *prototype.SignedTransaction) (invoice *prototype.TransactionInvoice)
func (*Controller) SetBus ¶
func (c *Controller) SetBus(bus EventBus.Bus)
func (*Controller) SetShuffledWitness ¶
func (c *Controller) SetShuffledWitness(names []string)
func (*Controller) Stop ¶
func (c *Controller) Stop() error
func (*Controller) TransferFromVest ¶
func (c *Controller) TransferFromVest(value *prototype.Vest)
func (*Controller) TransferToVest ¶
func (c *Controller) TransferToVest(value *prototype.Coin)
type FollowEvaluator ¶
type FollowEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*FollowEvaluator) Apply ¶
func (ev *FollowEvaluator) Apply()
type PostEvaluator ¶
type PostEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*PostEvaluator) Apply ¶
func (ev *PostEvaluator) Apply()
type ReplyEvaluator ¶
type ReplyEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*ReplyEvaluator) Apply ¶
func (ev *ReplyEvaluator) Apply()
type TransferEvaluator ¶
type TransferEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*TransferEvaluator) Apply ¶
func (ev *TransferEvaluator) Apply()
type TransferToVestingEvaluator ¶
type TransferToVestingEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*TransferToVestingEvaluator) Apply ¶
func (ev *TransferToVestingEvaluator) Apply()
type VoteEvaluator ¶
type VoteEvaluator struct {
BaseEvaluator
// contains filtered or unexported fields
}
func (*VoteEvaluator) Apply ¶
func (ev *VoteEvaluator) Apply()
upvote is true: upvote otherwise downvote no downvote has been supplied by command, so I ignore it
Click to show internal directories.
Click to hide internal directories.