monero/tests/unit_tests
jeffro256 b13c5f6669
wallet: feature: transfer amount with fee included
To transfer ~5 XMR to an address such that your balance drops by exactly 5 XMR, provide a `subtractfeefrom` flag to the `transfer` command. For example:

    transfer 76bDHojqFYiFCCYYtzTveJ8oFtmpNp3X1TgV2oKP7rHmZyFK1RvyE4r8vsJzf7SyNohMnbKT9wbcD3XUTgsZLX8LU5JBCfm 5 subtractfeefrom=all

If my walet balance was exactly 30 XMR before this transaction, it will be exactly 25 XMR afterwards and the destination address will receive slightly
less than 5 XMR. You can manually select which destinations fund the transaction fee and which ones do not by providing the destination index.
For example:

    transfer 75sr8AAr... 3 74M7W4eg... 4 7AbWqDZ6... 5 subtractfeefrom=0,2

This will drop your balance by exactly 12 XMR including fees and will spread the fee cost proportionally (3:5 ratio) over destinations with addresses
`75sr8AAr...` and `7AbWqDZ6...`, respectively.

Disclaimer: This feature was paid for by @LocalMonero.
2024-02-20 17:08:06 -06:00
..
account.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
address_from_url.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
aligned.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
apply_permutation.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
base58.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
block_queue.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
block_reward.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
blockchain_db.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
bootstrap_node_selector.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
bulletproofs_plus.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
bulletproofs.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
canonical_amounts.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
chacha.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
checkpoints.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
CMakeLists.txt Merge pull request #8990 2023-11-06 09:24:37 -05:00
command_line.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
crypto.cpp fix merge mining with more than one merge mined chain 2023-11-30 17:01:52 +00:00
decompose_amount_into_digits.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
device.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
difficulty.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
dns_resolver.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
epee_boosted_tcp_server.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
epee_levin_protocol_handler_async.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
epee_serialization.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
epee_utils.cpp wallet: feature: transfer amount with fee included 2024-02-20 17:08:06 -06:00
expect.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
fee.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
get_xtype_from_string.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
hardfork.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
hashchain.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
hmac_keccak.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
http.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
is_hdd.cpp Merge pull request #4424 2018-09-29 22:19:44 +02:00
json_serialization.cpp Fix missing checks for IsObject in ZMQ jsonrpc reading 2023-11-28 18:02:57 -05:00
json_serialization.h Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
keccak.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
levin.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
lmdb.cpp blockchain_db: add k-anonymity to txid fetching 2023-08-01 17:25:25 -05:00
logging.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
long_term_block_weight.cpp add a test for the long term weight cache 2023-10-02 01:38:10 +01:00
main.cpp unit tests: fix running from pwd and auto test selected location 2023-10-28 03:14:05 -05:00
memwipe.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
mlocker.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
mnemonics.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
mul_div.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
multiexp.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
multisig.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
net.cpp Merge pull request #8969 2023-10-25 21:35:43 -04:00
node_server.cpp OpenBSD: node server fix IP localhost by aliasing 2023-12-10 22:08:05 +01:00
notify.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
output_distribution.cpp blockchain_and_pool: move to crytonote_core and enforce its usage 2023-07-01 07:12:53 -05:00
output_selection.cpp Merge pull request #8802 2023-04-25 11:26:20 -04:00
parse_amount.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
pruning.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
random.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
ringct.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
ringdb.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
rolling_median.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
rpc_version_str.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
scaling_2021.cpp blockchain_and_pool: move to crytonote_core and enforce its usage 2023-07-01 07:12:53 -05:00
serialization.cpp serialization: fix infinite loops and clean up dispatching 2023-11-18 03:47:55 -06:00
sha256.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
slow_memmem.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
subaddress.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
test_notifier.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
test_peerlist.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
test_protocol_pack.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
test_tx_utils.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
threadpool.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
tx_proof.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
unbound.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
unit_tests_utils.h Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
uri.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
util.cpp common: do not use DNS to determine if address is local 2023-07-03 13:34:39 +02:00
variant.cpp variant: add mutable unwrap and visitation 2023-02-12 13:00:53 -06:00
varint.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
ver_rct_non_semantics_simple_cached.cpp verRctNonSemanticsSimpleCached: fix fragility 2023-03-17 18:45:35 -05:00
vercmp.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
wallet_storage.cpp unit tests: wallet_storage: generate in "Ascii" format test 2023-10-21 18:37:12 -05:00
wipeable_string.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00
zmq_rpc.cpp Copyright: Update to 2023 2023-01-16 13:00:18 +01:00