Documentation
¶
Index ¶
- Constants
- func AddInternalTX(proposalMasterStore *governance.ProposalMasterStore, validator keys.Address, ...)
- func ExpireProposals(header *Header, ctx *context, logger *log.Logger)
- func FinalizeProposals(header *Header, ctx *context, logger *log.Logger)
- func GetExpireTX(proposalId governance.ProposalID, validatorAddress keys.Address) (abciTypes.RequestDeliverTx, error)
- func GetFinalizeTX(proposalId governance.ProposalID, validatorAddress keys.Address) (abciTypes.RequestDeliverTx, error)
- func NewProposalMasterStore(chainstate *storage.ChainState) *governance.ProposalMasterStore
- func NewRewardMasterStore(chainstate *storage.ChainState) *rewards.RewardMasterStore
- type ABCI
- func (app *ABCI) BeginBlock(request RequestBeginBlock) ResponseBeginBlock
- func (app *ABCI) CheckTx(tx RequestCheckTx) ResponseCheckTx
- func (app *ABCI) Commit() ResponseCommit
- func (app *ABCI) DeliverTx(tx RequestDeliverTx) ResponseDeliverTx
- func (app *ABCI) EndBlock(request RequestEndBlock) ResponseEndBlock
- func (app *ABCI) Info(request RequestInfo) ResponseInfo
- func (app *ABCI) InitChain(request RequestInitChain) ResponseInitChain
- func (app *ABCI) Query(request RequestQuery) ResponseQuery
- func (app *ABCI) SetOption(request RequestSetOption) ResponseSetOption
- type ABCIApp
- type App
- type Code
- type ControllerRouter
- type Header
- type RequestBeginBlock
- type RequestCheckTx
- type RequestDeliverTx
- type RequestEndBlock
- type RequestInfo
- type RequestInitChain
- type RequestQuery
- type RequestSetOption
- type ResponseBeginBlock
- type ResponseCheckTx
- type ResponseCommit
- type ResponseDeliverTx
- type ResponseEndBlock
- type ResponseInfo
- type ResponseInitChain
- type ResponseQuery
- type ResponseSetOption
- type Router
- type StorageCtx
- type Validator
Constants ¶
View Source
const ( BlockBeginner txblock = 1 BlockEnder txblock = 2 )
Variables ¶
This section is empty.
Functions ¶
func AddInternalTX ¶ added in v0.14.3
func AddInternalTX(proposalMasterStore *governance.ProposalMasterStore, validator keys.Address, height int64, transaction *transactions.TransactionStore, logger *log.Logger)
Functions for block Beginner
func ExpireProposals ¶ added in v0.14.3
func FinalizeProposals ¶ added in v0.14.3
Functions for block Ender
func GetExpireTX ¶ added in v0.14.3
func GetExpireTX(proposalId governance.ProposalID, validatorAddress keys.Address) (abciTypes.RequestDeliverTx, error)
func GetFinalizeTX ¶ added in v0.14.3
func GetFinalizeTX(proposalId governance.ProposalID, validatorAddress keys.Address) (abciTypes.RequestDeliverTx, error)
func NewProposalMasterStore ¶ added in v0.14.3
func NewProposalMasterStore(chainstate *storage.ChainState) *governance.ProposalMasterStore
func NewRewardMasterStore ¶ added in v0.14.3
func NewRewardMasterStore(chainstate *storage.ChainState) *rewards.RewardMasterStore
Types ¶
type ABCI ¶
type ABCI struct {
// contains filtered or unexported fields
}
ABCI is used as an input for creating a new node
func (*ABCI) BeginBlock ¶
func (app *ABCI) BeginBlock(request RequestBeginBlock) ResponseBeginBlock
func (*ABCI) CheckTx ¶
func (app *ABCI) CheckTx(tx RequestCheckTx) ResponseCheckTx
func (*ABCI) Commit ¶
func (app *ABCI) Commit() ResponseCommit
func (*ABCI) DeliverTx ¶
func (app *ABCI) DeliverTx(tx RequestDeliverTx) ResponseDeliverTx
func (*ABCI) EndBlock ¶
func (app *ABCI) EndBlock(request RequestEndBlock) ResponseEndBlock
func (*ABCI) Info ¶
func (app *ABCI) Info(request RequestInfo) ResponseInfo
func (*ABCI) InitChain ¶
func (app *ABCI) InitChain(request RequestInitChain) ResponseInitChain
func (*ABCI) Query ¶
func (app *ABCI) Query(request RequestQuery) ResponseQuery
func (*ABCI) SetOption ¶
func (app *ABCI) SetOption(request RequestSetOption) ResponseSetOption
type ABCIApp ¶
type ABCIApp = abci.Application
type App ¶
type App struct {
Context context
// contains filtered or unexported fields
}
func (*App) Node ¶
Node returns the consensus.Node, use this value to communicate with the internal consensus engine
func (*App) VerifyCache ¶ added in v0.14.1
type ControllerRouter ¶ added in v0.14.4
type ControllerRouter struct {
// contains filtered or unexported fields
}
func NewRouter ¶ added in v0.14.4
func NewRouter() ControllerRouter
func (ControllerRouter) Add ¶ added in v0.14.4
func (r ControllerRouter) Add(t txblock, i func(interface{})) error
func (ControllerRouter) Iterate ¶ added in v0.14.4
func (r ControllerRouter) Iterate(t txblock) ([]func(interface{}), error)
type RequestBeginBlock ¶
type RequestBeginBlock = abci.RequestBeginBlock
type RequestCheckTx ¶
type RequestCheckTx = abci.RequestCheckTx
type RequestDeliverTx ¶
type RequestDeliverTx = abci.RequestDeliverTx
type RequestEndBlock ¶
type RequestEndBlock = abci.RequestEndBlock
type RequestInfo ¶
type RequestInfo = abci.RequestInfo
type RequestInitChain ¶
type RequestInitChain = abci.RequestInitChain
type RequestQuery ¶
type RequestQuery = abci.RequestQuery
type RequestSetOption ¶
type RequestSetOption = abci.RequestSetOption
type ResponseBeginBlock ¶
type ResponseBeginBlock = abci.ResponseBeginBlock
type ResponseCheckTx ¶
type ResponseCheckTx = abci.ResponseCheckTx
type ResponseCommit ¶
type ResponseCommit = abci.ResponseCommit
type ResponseDeliverTx ¶
type ResponseDeliverTx = abci.ResponseDeliverTx
type ResponseEndBlock ¶
type ResponseEndBlock = abci.ResponseEndBlock
type ResponseInfo ¶
type ResponseInfo = abci.ResponseInfo
type ResponseInitChain ¶
type ResponseInitChain = abci.ResponseInitChain
type ResponseQuery ¶
type ResponseQuery = abci.ResponseQuery
type ResponseSetOption ¶
type ResponseSetOption = abci.ResponseSetOption
type Router ¶ added in v0.14.4
type Router interface {
Add(txblock, func(interface{})) error
Iterate(txblock) ([]func(interface{}), error)
}
Router interface supplies functionality to add a function to the blockender and blockbeginner
type StorageCtx ¶ added in v0.13.0
type StorageCtx struct {
Balances *balance.Store
Domains *ons.DomainStore
Validators *identity.ValidatorStore // Set of validators currently active
Delegators *delegation.DelegationStore
RewardMaster *rewards.RewardMasterStore
ProposalMaster *governance.ProposalMasterStore
FeePool *fees.Store
Govern *governance.Store
Trackers *ethereum.TrackerStore //TODO: Create struct to contain all tracker types including Bitcoin.
Currencies *balance.CurrencySet
FeeOption *fees.FeeOption
Hash []byte
Version int64
Chainstate *storage.ChainState
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.