mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 14:35:47 +00:00
refactor: make use of ctx.BlockHeader().ProposerAddress to ensure correct Proposer
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
f1e029eaf9
commit
4bfe586e93
@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper) {
|
||||
proposerAddress := req.Header.GetProposerAddress()
|
||||
proposerAddress := ctx.BlockHeader().ProposerAddress
|
||||
|
||||
// Check if node is block proposer
|
||||
// take the following actions only once, that's why we filter for the Block Proposer
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user