Don't attempt running tests on the verify-chain binary

Adds a minimum XMR fee to the processor and runs fmt.
This commit is contained in:
Luke Parker
2024-07-06 21:36:43 -04:00
parent c521bbb012
commit 1bfd7d9ba6
3 changed files with 3 additions and 12 deletions

View File

@@ -66,7 +66,6 @@ jobs:
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-simple-request-rpc --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet-util --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai-verify-chain --test '*'
- name: Run Integration Tests
# Don't run if the the tests workflow also will
@@ -76,4 +75,3 @@ jobs:
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-simple-request-rpc --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet --all-features --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet-util --all-features --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai-verify-chain --test '*'

View File

@@ -69,14 +69,7 @@ CMD ["/run.sh"]
}
pub fn monero(orchestration_path: &Path, network: Network) {
monero_internal(
network,
Os::Debian,
orchestration_path,
"monero",
"monerod",
"18080 18081",
)
monero_internal(network, Os::Debian, orchestration_path, "monero", "monerod", "18080 18081")
}
pub fn monero_wallet_rpc(orchestration_path: &Path) {

View File

@@ -292,8 +292,8 @@ impl Monero {
fees.sort();
let fee = fees.get(fees.len() / 2).copied().unwrap_or(0);
// TODO: Set a sane minimum fee
Ok(FeeRate::new(fee.max(1500000), 10000).unwrap())
// TODO: Set a sane minimum/maximum fee
Ok(FeeRate::new(fee.min(50_000).max(5_000_000), 10000).unwrap())
}
async fn make_signable_transaction(