Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockReward ¶
GetBlockReward Faster and limited version of block.GetBlockReward
Types ¶
type Entry ¶
type Mempool ¶
type Mempool []*Entry
func (Mempool) PerfectSum ¶
func (Mempool) Pick ¶
Pick Selects transactions semi-optimally
Picking all transactions will result in the base reward penalty Use a heuristic algorithm to pick transactions and get the maximum possible reward Testing has shown that this algorithm is very close to the optimal selection Usually no more than 0.5 micronero away from the optimal discrete knapsack solution Sometimes it even finds the optimal solution
func (Mempool) WeightAndFees ¶
Click to show internal directories.
Click to hide internal directories.