chore: pr feedback

This commit is contained in:
Matthew Little
2024-03-05 10:22:51 +01:00
parent 54a7fc3160
commit 9760ced0a5
6 changed files with 13 additions and 28 deletions

View File

@@ -1827,13 +1827,6 @@ fn miner_writes_proposed_block_to_stackerdb() {
)
.unwrap();
let rpc_sock = naka_conf
.node
.rpc_bind
.clone()
.parse()
.expect("Failed to parse socket");
let sortdb = naka_conf.get_burnchain().open_sortition_db(true).unwrap();
let tip = SortitionDB::get_canonical_burn_chain_tip(sortdb.conn()).unwrap();
let miner_pubkey =
@@ -1844,7 +1837,8 @@ fn miner_writes_proposed_block_to_stackerdb() {
let chunk = std::thread::spawn(move || {
let miner_contract_id = boot_code_id(MINERS_NAME, false);
let mut miners_stackerdb = StackerDBSession::new(rpc_sock, miner_contract_id);
let mut miners_stackerdb =
StackerDBSession::new(&naka_conf.node.rpc_bind, miner_contract_id);
miners_stackerdb
.get_latest_chunk(slot_id)
.expect("Failed to get latest chunk from the miner slot ID")

View File

@@ -1285,15 +1285,6 @@ fn stackerdb_filter_bad_transactions() {
assert_ne!(current_signers_dkg, next_signers_dkg);
info!("------------------------- Submit Invalid Transactions -------------------------");
let host = signer_test
.running_nodes
.conf
.node
.rpc_bind
.to_socket_addrs()
.unwrap()
.next()
.unwrap();
let signer_private_key = signer_test
.signer_stacks_private_keys
@@ -1308,7 +1299,7 @@ fn stackerdb_filter_bad_transactions() {
// Must submit to the NEXT reward cycle slots as they are the ones looked at by the CURRENT miners
let signer_index = signer_test.get_signer_index(next_reward_cycle);
let mut stackerdb = StackerDB::new(
host,
&signer_test.running_nodes.conf.node.rpc_bind,
signer_private_key,
false,
next_reward_cycle,