Monero v0.18.3.4 (#605)

* Monero v0.18.3.4

* Correct `check_weight_and_fee` call

* Restore empty test files so CI isn't borked
This commit is contained in:
Luke Parker
2024-09-05 22:43:31 -07:00
committed by GitHub
parent c1a9256cc5
commit 88440807e1
10 changed files with 109 additions and 112 deletions

View File

@@ -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,
@@ -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;
@@ -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) => {