@@ -131,7 +131,6 @@ impl Config {
131
131
bitcoind_rpc_username : self . network . bitcoind_rpc_username . clone ( ) ,
132
132
bitcoind_rpc_password : self . network . bitcoind_rpc_password . clone ( ) ,
133
133
bitcoind_rpc_url : self . network . bitcoind_rpc_url . clone ( ) ,
134
- stacks_node_rpc_url : self . network . stacks_node_rpc_url . clone ( ) ,
135
134
bitcoin_block_signaling : self . network . bitcoin_block_signaling . clone ( ) ,
136
135
display_logs : false ,
137
136
cache_path : self . storage . working_dir . clone ( ) ,
@@ -212,15 +211,21 @@ impl Config {
212
211
. unwrap_or ( 2048 ) ,
213
212
} ,
214
213
network : IndexerConfig {
215
- stacks_node_rpc_url : config_file. network . stacks_node_rpc_url . to_string ( ) ,
216
214
bitcoind_rpc_url : config_file. network . bitcoind_rpc_url . to_string ( ) ,
217
215
bitcoind_rpc_username : config_file. network . bitcoind_rpc_username . to_string ( ) ,
218
216
bitcoind_rpc_password : config_file. network . bitcoind_rpc_password . to_string ( ) ,
219
217
bitcoin_block_signaling : match config_file. network . bitcoind_zmq_url {
220
218
Some ( ref zmq_url) => BitcoinBlockSignaling :: ZeroMQ ( zmq_url. clone ( ) ) ,
221
- None => BitcoinBlockSignaling :: Stacks (
222
- config_file. network . stacks_node_rpc_url . clone ( ) ,
223
- ) ,
219
+ None => BitcoinBlockSignaling :: Stacks ( StacksNodeConfig {
220
+ rpc_url : config_file
221
+ . network
222
+ . stacks_node_rpc_url
223
+ . unwrap_or ( "http://localhost:20443" . to_string ( ) ) ,
224
+ ingestion_port : config_file
225
+ . network
226
+ . stacks_events_ingestion_port
227
+ . unwrap_or ( DEFAULT_INGESTION_PORT ) ,
228
+ } ) ,
224
229
} ,
225
230
stacks_network,
226
231
bitcoin_network,
@@ -401,7 +406,6 @@ impl Config {
401
406
max_caching_memory_size_mb : 2048 ,
402
407
} ,
403
408
network : IndexerConfig {
404
- stacks_node_rpc_url : "http://0.0.0.0:20443" . into ( ) ,
405
409
bitcoind_rpc_url : "http://0.0.0.0:18443" . into ( ) ,
406
410
bitcoind_rpc_username : "devnet" . into ( ) ,
407
411
bitcoind_rpc_password : "devnet" . into ( ) ,
@@ -433,7 +437,6 @@ impl Config {
433
437
max_caching_memory_size_mb : 2048 ,
434
438
} ,
435
439
network : IndexerConfig {
436
- stacks_node_rpc_url : "http://0.0.0.0:20443" . into ( ) ,
437
440
bitcoind_rpc_url : "http://0.0.0.0:18332" . into ( ) ,
438
441
bitcoind_rpc_username : "devnet" . into ( ) ,
439
442
bitcoind_rpc_password : "devnet" . into ( ) ,
@@ -470,7 +473,6 @@ impl Config {
470
473
max_caching_memory_size_mb : 2048 ,
471
474
} ,
472
475
network : IndexerConfig {
473
- stacks_node_rpc_url : "http://0.0.0.0:20443" . into ( ) ,
474
476
bitcoind_rpc_url : "http://0.0.0.0:8332" . into ( ) ,
475
477
bitcoind_rpc_username : "devnet" . into ( ) ,
476
478
bitcoind_rpc_password : "devnet" . into ( ) ,
0 commit comments