monero/tests/unit_tests
jeffro256 51d7a6921c
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:42 -06:00
..
account.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
address_from_url.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
aligned.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
apply_permutation.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
base58.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
block_queue.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
block_reward.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
blockchain_db.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
bootstrap_node_selector.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
bulletproofs.cpp multisig: fix critical vulnerabilities in signing 2022-06-30 12:56:40 -05:00
bulletproofs_plus.cpp Update copyright to 2022 for Hardfork files 2022-04-29 11:12:36 +02:00
canonical_amounts.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
chacha.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
checkpoints.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
CMakeLists.txt wallet2: fix store_to() and change_password() 2023-08-23 11:52:31 -05:00
command_line.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
crypto.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
decompose_amount_into_digits.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
device.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
difficulty.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
dns_resolver.cpp DNSResolver: fix not handling hostnames without dot characters [release] 2022-11-21 21:16:16 -06:00
epee_boosted_tcp_server.cpp address PR comments 2022-07-08 15:10:03 -07:00
epee_levin_protocol_handler_async.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
epee_serialization.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
epee_utils.cpp wallet: feature: transfer amount with fee included 2024-02-20 17:08:42 -06:00
expect.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
fee.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
get_xtype_from_string.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
hardfork.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
hashchain.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
hmac_keccak.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
http.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +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:05:15 -05:00
json_serialization.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
keccak.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
levin.cpp Fix dandelion++ fluff/stem bug with local txes 2022-10-25 16:01:09 -04:00
lmdb.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
logging.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
long_term_block_weight.cpp add a test for the long term weight cache 2023-10-02 15:28:50 +01:00
main.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
memwipe.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
mlocker.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
mnemonics.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
mul_div.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
multiexp.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
multisig.cpp add an option to force-update multisig key exchange under some circumstances 2022-09-21 12:51:19 -05:00
net.cpp p2p: fix exclusive node DNS resolution for certain hosts [release] 2022-11-17 18:57:04 -06:00
node_server.cpp Move update_checkpoints() to a later stage 2022-09-22 13:06:39 +02:00
notify.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
output_distribution.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
output_selection.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
parse_amount.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
pruning.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
random.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
ringct.cpp multisig: fix critical vulnerabilities in signing 2022-06-30 12:56:40 -05:00
ringdb.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
rolling_median.cpp epee: allow copying a rolling_median_t object 2022-04-10 18:13:31 +00:00
rpc_version_str.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
scaling_2021.cpp Update copyright to 2022 for Hardfork files 2022-04-29 11:12:36 +02:00
serialization.cpp multisig: fix critical vulnerabilities in signing 2022-06-30 12:56:40 -05:00
sha256.cpp unit_tests: add more sha256sum test cases 2022-05-18 01:34:20 +02:00
slow_memmem.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
subaddress.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
test_notifier.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
test_peerlist.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
test_protocol_pack.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
test_tx_utils.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
threadpool.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
tx_proof.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
unbound.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
unit_tests_utils.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
uri.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
util.cpp common: do not use DNS to determine if address is local 2023-05-25 18:06:34 +02:00
varint.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
ver_rct_non_semantics_simple_cached.cpp verRctNonSemanticsSimpleCached: fix fragility 2023-03-17 18:46:34 -05:00
vercmp.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_storage.cpp wallet2: fix store_to() and change_password() 2023-08-23 11:52:31 -05:00
wipeable_string.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
zmq_rpc.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00