Retaining transaction logs when transaction plugin is loaded. (#22874)

Transaction logs are not being saved to the database through the plugin interface.

Summary of Changes

Retain the transaction logs when transaction notification plugin is loaded.

Fixes #
lijunwangs/solana-accountsdb-plugin-postgres#6
This commit is contained in:
Lijun Wang
2022-02-11 20:29:07 -08:00
committed by GitHub
parent 817f47d970
commit c04438be4b
5 changed files with 17 additions and 15 deletions

View File

@ -3040,6 +3040,7 @@ mod tests {
true,
None,
blockstore.clone(),
false,
&Arc::new(AtomicBool::new(false)),
);
@ -3052,7 +3053,6 @@ mod tests {
0,
Some(TransactionStatusSender {
sender: transaction_status_sender,
enable_cpi_and_log_storage: false,
}),
&gossip_vote_sender,
&QosService::new(Arc::new(RwLock::new(CostModel::default())), 1),
@ -3199,6 +3199,7 @@ mod tests {
true,
None,
blockstore.clone(),
false,
&Arc::new(AtomicBool::new(false)),
);
@ -3211,7 +3212,6 @@ mod tests {
0,
Some(TransactionStatusSender {
sender: transaction_status_sender,
enable_cpi_and_log_storage: false,
}),
&gossip_vote_sender,
&QosService::new(Arc::new(RwLock::new(CostModel::default())), 1),

View File

@ -1505,7 +1505,6 @@ fn initialize_rpc_transaction_history_services(
let (transaction_status_sender, transaction_status_receiver) = unbounded();
let transaction_status_sender = Some(TransactionStatusSender {
sender: transaction_status_sender,
enable_cpi_and_log_storage,
});
let transaction_status_service = Some(TransactionStatusService::new(
transaction_status_receiver,
@ -1513,6 +1512,7 @@ fn initialize_rpc_transaction_history_services(
enable_rpc_transaction_history,
transaction_notifier.clone(),
blockstore.clone(),
enable_cpi_and_log_storage,
exit,
));