ceremonyclient/types/consensus/issuance.go
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

22 lines
475 B
Go

package consensus
import "math/big"
type ProverAllocation struct {
Ring uint8
Shards uint64
StateSize uint64
}
// RewardIssuance describes a reward issuer algorithm.
type RewardIssuance interface {
// Calculate calculates the reward issuance for the total set of provers,
// returns in matching order to prover list.
Calculate(
difficulty uint64,
worldStateBytes uint64,
units uint64,
provers []map[string]*ProverAllocation,
) ([]*big.Int, error)
}