ledger tool now outputs transaction status information if available (#9024)
automerge
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user