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

automerge
This commit is contained in:
Michael Vines
2020-03-23 12:49:21 -07:00
committed by GitHub
parent fee002382e
commit 70c167182a
2 changed files with 77 additions and 0 deletions

View File

@@ -1498,6 +1498,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),
@@ -1506,6 +1513,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)
}