mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
* 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
22 lines
475 B
Go
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)
|
|
}
|