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

31 lines
554 B

package reward
import (
"math/big"
"github.com/harmony-one/harmony/crypto/bls"
"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 bls.SerializedPublicKey
}
// CompletedRound ..
type CompletedRound struct {
Total *big.Int
BeaconchainAward []Payout
ShardChainAward []Payout
}
// Reader ..
type Reader interface {
ReadRoundResult() *CompletedRound
MissingSigners() shard.SlotList
}