Add parent slot to getConfirmedBlock (#7038)

* Add parent slot to getConfirmedBlock

* Fix bad text-replace

* Use camelCase in getConfirmedBlock
This commit is contained in:
Tyera Eulberg
2019-11-19 09:39:55 -07:00
committed by GitHub
parent 5b7bd24f0a
commit ea656b1a3f
4 changed files with 6 additions and 1 deletions

View File

@ -1148,6 +1148,7 @@ impl Blocktree {
.expect("Rooted parent slot must have blockhash"),
blockhash: get_last_hash(slot_entries.iter())
.expect("Rooted slot must have blockhash"),
parent_slot: slot_meta.parent_slot,
transactions: self.map_transactions_to_statuses(slot, slot_transaction_iterator),
};
Ok(block)