The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/consensus/reward/rewarder.go

29 lines
503 B

package reward
import (
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/harmony-one/harmony/shard"
)
// Payout ..
type Payout struct {
ShardID uint32
Addr common.Address
NewlyEarned *big.Int
EarningKey shard.BLSPublicKey
}
// CompletedRound ..
type CompletedRound struct {
Total *big.Int
BeaconchainAward []Payout
ShardChainAward []Payout
}
// Reader ..
type Reader interface {
ReadRoundResult() *CompletedRound
MissingSigners() shard.SlotList
}