(
ret: FvmApplyRet,
tx_results: Vec<ExecTxResult>,
power_table: PowerUpdates,
app_hash: AppHash,
)
| 150 | } |
| 151 | |
| 152 | pub fn to_finalize_block( |
| 153 | ret: FvmApplyRet, |
| 154 | tx_results: Vec<ExecTxResult>, |
| 155 | power_table: PowerUpdates, |
| 156 | app_hash: AppHash, |
| 157 | ) -> anyhow::Result<response::FinalizeBlock> { |
| 158 | Ok(response::FinalizeBlock { |
| 159 | events: to_events("event", ret.apply_ret.events, ret.emitters), |
| 160 | tx_results, |
| 161 | validator_updates: to_validator_updates(power_table.0) |
| 162 | .context("failed to convert validator updates")?, |
| 163 | consensus_param_updates: Default::default(), |
| 164 | app_hash, |
| 165 | }) |
| 166 | } |
| 167 | |
| 168 | /// Convert events to key-value pairs. |
| 169 | /// |
no test coverage detected