Legitimately map transactions to statuses in blocktree (#7011)

* Refactor rocksdb TransactionStatus to store/return struct; hook up map_transactions_to_statuses

* Cleanup use statements
This commit is contained in:
Tyera Eulberg
2019-11-18 09:12:42 -07:00
committed by GitHub
parent 3bc8d78801
commit e0a2bb9d86
4 changed files with 111 additions and 28 deletions

View File

@ -304,8 +304,8 @@ impl JsonRpcRequestProcessor {
// The `get_confirmed_block` method is not fully implemented. It currenlty returns a partially
// complete RpcConfirmedBlock. The `blockhash` and `previous_blockhash` fields are legitimate
// data, while the `transactions` field contains transaction tuples (Transaction,
// transaction::Result), where the Transaction is a legitimate transaction, but the Result is
// always `Ok()`.
// transaction::Result), where the Transaction is a legitimate transaction, but the
// Option<RpcTransactionStatus> is always None.
pub fn get_confirmed_block(&self, slot: Slot) -> Result<Option<RpcConfirmedBlock>> {
Ok(self.blocktree.get_confirmed_block(slot).ok())
}