Versions in this module Expand all Collapse all v1 v1.2.0 Sep 19, 2019 Changes in this version + const GRPCCommandTimeout + func DisableLog() + func MsgTxFromHex(txhex string) (*wire.MsgTx, error) + func StartStakepooldService(appContext *AppContext, server *grpc.Server) + func StartVersionService(server *grpc.Server) + func UseLogger(logger slog.Logger) + type AppContext struct + AddedLowFeeTicketsMSA map[chainhash.Hash]string + DataPath string + FeeAddrs map[string]struct{} + IgnoredLowFeeTicketsMSA map[chainhash.Hash]string + LiveTicketsMSA map[chainhash.Hash]string + NewTicketsChan chan NewTicketsForBlock + NodeConnection *rpcclient.Client + Params *chaincfg.Params + PoolFees float64 + Quit chan struct{} + SpentmissedTicketsChan chan SpentMissedTicketsForBlock + Testing bool + UserData *userdata.UserData + UserVotingConfig map[string]userdata.UserVotingConfig + VotingConfig *VotingConfig + WalletConnection *Client + Wg sync.WaitGroup + WinningTicketsChan chan WinningTicketsForBlock + func (ctx *AppContext) AccountSyncAddressIndex(account string, branch uint32, index int) error + func (ctx *AppContext) AddMissingTicket(ticketHash []byte) error + func (ctx *AppContext) CreateMultisig(addresses []string) (*wallettypes.CreateMultiSigResult, error) + func (ctx *AppContext) EvaluateStakePoolTicket(tx *wire.MsgTx, blockHeight int32) (bool, error) + func (ctx *AppContext) GetStakeInfo() (*wallettypes.GetStakeInfoResult, error) + func (ctx *AppContext) GetTickets(includeImmature bool) ([]*chainhash.Hash, error) + func (ctx *AppContext) ImportMissingScripts(scripts [][]byte, rescanHeight int) error + func (ctx *AppContext) ImportNewScript(script []byte) (int64, error) + func (ctx *AppContext) ListScripts() ([][]byte, error) + func (ctx *AppContext) NewTicketHandler() + func (ctx *AppContext) ProcessWinningTickets(wt WinningTicketsForBlock) + func (ctx *AppContext) SpentmissedTicketHandler() + func (ctx *AppContext) StakePoolUserInfo(multisigAddress string) (*wallettypes.StakePoolUserInfoResult, error) + func (ctx *AppContext) UpdateTicketData(newAddedLowFeeTicketsMSA map[chainhash.Hash]string) + func (ctx *AppContext) UpdateTicketDataFromMySQL() error + func (ctx *AppContext) UpdateUserData(newUserVotingConfig map[string]userdata.UserVotingConfig) + func (ctx *AppContext) UpdateUserDataFromMySQL() error + func (ctx *AppContext) ValidateAddress(address string) (*wallettypes.ValidateAddressWalletResult, error) + func (ctx *AppContext) WalletInfo() (*wallettypes.WalletInfoResult, error) + func (ctx *AppContext) WinningTicketHandler() + type Client struct + func NewClient(cfg *rpcclient.ConnConfig, ntfnHandlers *rpcclient.NotificationHandlers) (*Client, error) + func (c *Client) Connected() <-chan struct{} + func (c *Client) IsConnected() bool + func (c *Client) RPCClient() *rpcclient.Client + func (c *Client) Stop() + type NewTicketsForBlock struct + BlockHash *chainhash.Hash + BlockHeight int64 + NewTickets []*chainhash.Hash + type SpentMissedTicketsForBlock struct + BlockHash *chainhash.Hash + BlockHeight int64 + SmTickets map[*chainhash.Hash]bool + type VotingConfig struct + VoteBits uint16 + VoteBitsExtended string + VoteVersion uint32 + type WinningTicketsForBlock struct + BlockHash *chainhash.Hash + BlockHeight int64 + WinningTickets []*chainhash.Hash