Skip to content

Commit

Permalink
0failovers
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala committed Dec 18, 2024
1 parent ebeebbf commit 2b403c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/src/config/mempool_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Default for MempoolConfig {
capacity: 2_000_000,
capacity_bytes: 2 * 1024 * 1024 * 1024,
capacity_per_user: 100,
default_failovers: 1,
default_failovers: 0,
enable_intelligent_peer_prioritization: true,
shared_mempool_peer_update_interval_ms: 1_000,
shared_mempool_priority_update_interval_secs: 600, // 10 minutes (frequent reprioritization is expensive)
Expand Down
7 changes: 3 additions & 4 deletions consensus/src/txn_hash_and_authenticator_deduper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ mod tests {
chain_id::ChainId,
transaction::{EntryFunction, RawTransaction, ReplayProtector, Script, SignedTransaction, TransactionExecutable, TransactionPayload},
};
use move_core_types::{account_address::AccountAddress, ident_str, language_storage::ModuleId, move_resource::MoveResource};
use aptos_types::coin::AptosCoinType;
use move_core_types::{account_address::AccountAddress, ident_str, language_storage::ModuleId};
use aptos_types::utility_coin::AptosCoinType;
use std::time::Instant;

struct Account {
Expand Down Expand Up @@ -184,8 +184,7 @@ mod tests {
vec![bcs::to_bytes(&receiver).unwrap(), bcs::to_bytes(&1).unwrap()],
);
let executable = TransactionExecutable::EntryFunction(entry_func);
let payload = aptos_stdlib::aptos_coin_transfer(receiver, 1);
raw_txn(payload, sender, ReplayProtector::SequenceNumber(seq_num), gas_unit_price)
raw_txn(executable, sender, ReplayProtector::SequenceNumber(seq_num), gas_unit_price)
}

fn block(refs: Vec<&SignedTransaction>) -> Vec<SignedTransaction> {
Expand Down

0 comments on commit 2b403c5

Please sign in to comment.