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

27 lines
416 B

package reward
import (
"math/big"
"github.com/harmony-one/harmony/crypto/bls"
"github.com/ethereum/go-ethereum/common"
)
// Payout ..
type Payout struct {
Addr common.Address
NewlyEarned *big.Int
EarningKey bls.SerializedPublicKey
}
// CompletedRound ..
type CompletedRound struct {
Total *big.Int
Payouts []Payout
}
// Reader ..
type Reader interface {
ReadRoundResult() *CompletedRound
}