Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VeCache ¶
type VeCache struct {
// contains filtered or unexported fields
}
This cache is used to set prices from vote extensions in processProposal which are fetched in ExtendVoteHandler and PreBlocker. This is to avoid redundant computation on calculating stake weighthed median prices in VEs. Make sure to use this in thread-safe scenarios (e.g., when flow is holding lock on the entire app).
func NewVECache ¶
func NewVECache() *VeCache
func (*VeCache) GetSeenVotesInCache ¶
Click to show internal directories.
Click to hide internal directories.