dymensionxyz / dymension-rdk

Framework for building highly scalable RollApps
Apache License 2.0
98 stars 54 forks source link

Add ability for create sequencer/update transaction for reward distribution #508

Closed omritoptix closed 1 month ago

omritoptix commented 2 months ago

the idea is that the sequencer has the ability to prove that he is indeed the owner of the consensus key, and couple a reward address to it, as the rewards are currently expecting an sdk address, and the sdk address is being fetched based on the sequencer consensus address.

// calculate and pay proposer reward
    proposer, found := k.seqKeeper.GetSequencerByConsAddr(ctx, blockProposer)
    if !found {
        logger.Error("failed to find the validator for this block. reward not allocated")
    } else {