Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli (bp #12768) (#12789)

* Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli

(cherry picked from commit c5c8da1ac0)

# Conflicts:
#	Cargo.lock
#	runtime/src/bank.rs
#	transaction-status/Cargo.toml

* fix: surface full block rewards type

(cherry picked from commit 1b16790325)

* resolve conflicts

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-10-10 06:25:10 +00:00
committed by GitHub
parent a70aa28832
commit e4bd382472
14 changed files with 243 additions and 75 deletions

View File

@@ -385,6 +385,8 @@ type ConfirmedBlock = {
rewards: Array<{
pubkey: string,
lamports: number,
postBalance: number | null,
rewardType: string | null,
}>,
};
@@ -855,6 +857,8 @@ export const GetConfirmedBlockRpcResult = jsonRpcResult(
struct({
pubkey: 'string',
lamports: 'number',
postBalance: struct.union(['number', 'undefined']),
rewardType: struct.union(['string', 'undefined']),
}),
]),
]),