Skip to content

Commit

Permalink
Add fields in block header for proposer and fees collected.
Browse files Browse the repository at this point in the history
These are needed for algorand/go-algorand#5740
and should not be merged until that work is finalized.
  • Loading branch information
jannotti committed Apr 18, 2024
1 parent 3be118b commit 5ce1569
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ type (
// Genesis hash to which this block belongs.
GenesisHash Digest `codec:"gh"`

// Proposer is the proposer of this block. Like the Seed, agreement adds
// this after the block is assembled by the transaction pool, so that the same block can be prepared
// for multiple participating accounts in the same node. Populated if proto.Payouts.Enabled
Proposer Address `codec:"prp"`

// FeesCollected is the sum of all fees paid by transactions in this
// block. Populated if proto.EnableMining.
FeesCollected MicroAlgos `codec:"fc"`

// Bonus is the bonus incentive to be paid for proposing this block. It
// begins as a consensus parameter value, and decays periodically.
Bonus MicroAlgos `codec:"bi"`

// ProposerPayout is the amount that should be moved from the FeeSink to
// the Proposer at the start of the next block. It is basically the
// bonus + the payouts percent of FeesCollected, but may be zero'd by
// proposer ineligibility.
ProposerPayout MicroAlgos `codec:"pp"`

// Rewards.
//
// When a block is applied, some amount of rewards are accrued to
Expand Down

0 comments on commit 5ce1569

Please sign in to comment.