Skip to content

Commit 38ae131

Browse files
committed
feat: wire MKTreeStoreSqlite to sign Cardano transactions in signer
1 parent 2897d04 commit 38ae131

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

mithril-signer/src/runtime/signer_services.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use mithril_common::{
99
cardano_transactions_preloader::CardanoTransactionsPreloader,
1010
chain_observer::{CardanoCliRunner, ChainObserver, ChainObserverBuilder, ChainObserverType},
1111
chain_reader::PallasChainReader,
12-
crypto_helper::{MKTreeStoreInMemory, OpCert, ProtocolPartyId, SerDeShelleyFileFormat},
12+
crypto_helper::{OpCert, ProtocolPartyId, SerDeShelleyFileFormat},
1313
digesters::{
1414
cache::{ImmutableFileDigestCacheProvider, JsonImmutableFileDigestCacheProviderBuilder},
1515
CardanoImmutableDigester, ImmutableDigester, ImmutableFileObserver,
@@ -33,8 +33,8 @@ use mithril_persistence::{
3333
use crate::{
3434
aggregator_client::AggregatorClient, metrics::MetricsService, single_signer::SingleSigner,
3535
AggregatorHTTPClient, CardanoTransactionsImporter,
36-
CardanoTransactionsPreloaderActivationSigner, Configuration, MithrilSingleSigner,
37-
ProtocolInitializerStore, ProtocolInitializerStorer, SignerUpkeepService,
36+
CardanoTransactionsPreloaderActivationSigner, Configuration, MKTreeStoreSqlite,
37+
MithrilSingleSigner, ProtocolInitializerStore, ProtocolInitializerStorer, SignerUpkeepService,
3838
TransactionsImporterByChunk, TransactionsImporterWithPruner, TransactionsImporterWithVacuum,
3939
UpkeepService, HTTP_REQUEST_TIMEOUT_DURATION, SQLITE_FILE, SQLITE_FILE_CARDANO_TRANSACTION,
4040
};
@@ -316,7 +316,7 @@ impl<'a> ServiceBuilder for ProductionServiceBuilder<'a> {
316316
));
317317
let block_range_root_retriever = transaction_store.clone();
318318
let cardano_transactions_builder = Arc::new(CardanoTransactionsSignableBuilder::<
319-
MKTreeStoreInMemory,
319+
MKTreeStoreSqlite,
320320
>::new(
321321
state_machine_transactions_importer,
322322
block_range_root_retriever,

mithril-signer/tests/test_extensions/state_machine_tester.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use mithril_common::{
1313
CardanoTransactionsPreloader, CardanoTransactionsPreloaderActivation,
1414
},
1515
chain_observer::{ChainObserver, FakeObserver},
16-
crypto_helper::MKTreeStoreInMemory,
1716
digesters::{DumbImmutableDigester, DumbImmutableFileObserver, ImmutableFileObserver},
1817
entities::{
1918
BlockNumber, CardanoTransactionsSigningConfig, ChainPoint, Epoch, SignedEntityConfig,
@@ -35,8 +34,8 @@ use mithril_persistence::{
3534
store::{StakeStore, StakeStorer},
3635
};
3736
use mithril_signer::{
38-
metrics::*, AggregatorClient, CardanoTransactionsImporter, Configuration, MetricsService,
39-
MithrilSingleSigner, ProductionServiceBuilder, ProtocolInitializerStore,
37+
metrics::*, AggregatorClient, CardanoTransactionsImporter, Configuration, MKTreeStoreSqlite,
38+
MetricsService, MithrilSingleSigner, ProductionServiceBuilder, ProtocolInitializerStore,
4039
ProtocolInitializerStorer, RuntimeError, SignerRunner, SignerServices, SignerState,
4140
SignerUpkeepService, StateMachine,
4241
};
@@ -193,7 +192,7 @@ impl StateMachineTester {
193192
));
194193
let block_range_root_retriever = transaction_store.clone();
195194
let cardano_transactions_builder = Arc::new(CardanoTransactionsSignableBuilder::<
196-
MKTreeStoreInMemory,
195+
MKTreeStoreSqlite,
197196
>::new(
198197
transactions_importer.clone(),
199198
block_range_root_retriever,

0 commit comments

Comments
 (0)