Skip to content

Commit

Permalink
Monero v0.18.3.4 (serai-dex#605)
Browse files Browse the repository at this point in the history
* Monero v0.18.3.4

* Correct `check_weight_and_fee` call

* Restore empty test files so CI isn't borked
  • Loading branch information
kayabaNerve authored Sep 6, 2024
1 parent b7ebbd7 commit a839be9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions wallet/tests/wallet2_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde_json::json;
use monero_simple_request_rpc::SimpleRequestRpc;
use monero_wallet::{
transaction::Transaction,
rpc::Rpc,
rpc::{FeePriority, Rpc},
address::{Network, SubaddressIndex, MoneroAddress},
extra::{MAX_ARBITRARY_DATA_SIZE, Extra, PaymentId},
Scanner,
Expand Down Expand Up @@ -102,11 +102,7 @@ async fn from_wallet_rpc_to_self(spec: AddressSpec) {
.unwrap();
let tx_hash = hex::decode(tx.tx_hash).unwrap().try_into().unwrap();

// TODO: Needs https://github.com/monero-project/monero/pull/9260
// let fee_rate = daemon_rpc
// .get_fee_rate(FeePriority::Unimportant)
// .await
// .unwrap();
let fee_rate = daemon_rpc.get_fee_rate(FeePriority::Unimportant).await.unwrap();

// unlock it
let block = runner::mine_until_unlocked(&daemon_rpc, &wallet_rpc_addr, tx_hash).await;
Expand All @@ -122,8 +118,7 @@ async fn from_wallet_rpc_to_self(spec: AddressSpec) {
scanner.scan(&daemon_rpc, &block).await.unwrap().not_additionally_locked().swap_remove(0);
assert_eq!(output.transaction(), tx_hash);

// TODO: Needs https://github.com/monero-project/monero/pull/9260
// runner::check_weight_and_fee(&tx, fee_rate);
runner::check_weight_and_fee(&daemon_rpc.get_transaction(tx_hash).await.unwrap(), fee_rate);

match spec {
AddressSpec::Subaddress(index) => {
Expand Down

0 comments on commit a839be9

Please sign in to comment.