ledger tool now outputs transaction status information if available (#9024) (#9026)

automerge
This commit is contained in:
mergify[bot]
2020-03-24 12:23:25 -07:00
committed by GitHub
parent fc582aa57c
commit 5f1ce81fbc
2 changed files with 77 additions and 0 deletions

View File

@@ -1472,6 +1472,13 @@ impl Blockstore {
.collect()
}
pub fn read_transaction_status(
&self,
index: (Slot, Signature),
) -> Result<Option<RpcTransactionStatusMeta>> {
self.transaction_status_cf.get(index)
}
pub fn write_transaction_status(
&self,
index: (Slot, Signature),
@@ -1480,6 +1487,10 @@ impl Blockstore {
self.transaction_status_cf.put(index, status)
}
pub fn read_rewards(&self, index: Slot) -> Result<Option<RpcRewards>> {
self.rewards_cf.get(index)
}
pub fn write_rewards(&self, index: Slot, rewards: RpcRewards) -> Result<()> {
self.rewards_cf.put(index, &rewards)
}