Commit Graph

15778 Commits

Author SHA1 Message Date
luigi1111
8a1e49664e
Merge pull request #9142
98ee46f Disable/fix ports with I2P (Lee Clagett)
2024-02-24 10:06:26 -05:00
luigi1111
2f912f8a58
Merge pull request #9130
dfb990e wallet: mitigate statistical dependence for decoy selection within rings (jeffro256)
2024-02-24 10:01:09 -05:00
luigi1111
81f113dd8c
Merge pull request #9008
9a89e2d wallet2: call on_reorg callback in handle_reorg (j-berman)
1df5630 wallet2: add on_reorg callback (Crypto City)
2024-02-24 09:58:30 -05:00
luigi1111
f9a7f2a136
Merge pull request #8945
51d7a69 wallet: feature: transfer amount with fee included (jeffro256)
2024-02-24 09:56:28 -05:00
selsta
c97c2ec01c
docs: omit i2p port number from ANONYMITY_NETWORKS 2024-02-21 01:03:11 +01:00
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
selsta
f2360a725e
build: prepare v0.18.3.2 2024-02-20 15:37:47 +01:00
selsta
0cc8f7aaa3
cryptonote_core: early out on out of bounds scaling parameter 2024-02-20 15:21:27 +01:00
tobtoht
b987870553
depends: openssl: update to 3.0.13 2024-02-18 23:17:05 +01:00
tobtoht
3aabfcfce5
depends: unbound: update to 1.19.1 2024-02-18 23:16:41 +01:00
tobtoht
8322f9c4f5
depends: expat: update to 2.6.0 2024-02-18 23:16:05 +01:00
Crypto City
7883132753 game: fix disabled ok button when accepting invitation 2024-02-18 17:38:57 +00:00
Crypto City
eda0a78c7c game: selection info is now also available from the panel 2024-02-18 17:37:34 +00:00
Crypto City
3943d335e7 game: move terrain panel section right after the selection section
more user friendly
2024-02-18 17:37:34 +00:00
Crypto City
9f3e8a61e3 game: rarity is not a percentage, remove percent sign 2024-02-18 17:37:34 +00:00
Crypto City
47a3ba6f74 make gemstones twice as hard to get 2024-02-18 17:37:34 +00:00
Crypto City
5d1e9d4f2e cc: fix integer overflow in coin collection scoring 2024-02-18 17:37:34 +00:00
Crypto City
3e2e34846e fix budget handling in demolish command 2024-02-18 17:37:34 +00:00
Crypto City
932d49b0ba functional_tests: fix gold consistency check
they did not take flag assigned items into account
2024-02-18 17:37:33 +00:00
Crypto City
d9bfafd75f functional_tests: fix builder badge score check
we might have had a building destroyed since
2024-02-18 17:37:33 +00:00
Crypto City
dc2969a5f4 cc: remove redundant writes 2024-02-18 17:37:33 +00:00
Crypto City
4cdd25c47e fix role bonus
and add consumption/production stats
2024-02-18 17:37:33 +00:00
Crypto City
47ca82206b cc: double check the builder badge only counts built up flags 2024-02-18 17:37:33 +00:00
Crypto City
6c4c9bd42b cc: prevent cutting events short when not wanted 2024-02-18 17:37:33 +00:00
Crypto City
bf762fd21d rescale share calculation
new cities get a tad dearer
2024-02-18 17:37:33 +00:00
woodser
fbd0b19fc8 remove ARCH=x86-64 from release-static 2024-02-10 08:37:35 -05:00
jeffro256
33e3f72d24
serialization: fix infinite loops and clean up dispatching
Resolves #8687
2024-02-08 13:22:33 -06:00
Crypto City
1298a295c3 game: fix user textures rendering 2024-02-07 08:03:46 +00:00
Crypto City
fdc57b9463 db_lmdb: save space in events table
overlong event text is truncated and ellipses added if necessary
2024-02-07 08:03:46 +00:00
Crypto City
3357c2ce31 cc: fix missing nonce in game update command events 2024-02-07 08:03:46 +00:00
Crypto City
82049e5be0 cc: fix flag gemstone bonuses using player inventory 2024-02-07 08:03:46 +00:00
Crypto City
65b77be690 game: fix double click on flag using previously selected building 2024-02-07 08:03:46 +00:00
Crypto City
e50340da45 named places can now be set to prevent buying land
by the game account

also remove the nonce based id, and rename priority to id,
so places are always enumerated in priority order

the game account now has no limit on places named, so this
can be used for storytelling purposes without having to play
the game competitively with the game account
2024-02-07 08:03:46 +00:00
Lee *!* Clagett
052df1b28c Zero initialize rctSigBase elements 2024-02-06 13:23:10 -05:00
Crypto City
dd3a367adb unit_tests: add an intersection test 2024-02-04 10:45:51 +00:00
Crypto City
978244b4c1 fix new building starting active 2024-02-04 10:45:51 +00:00
Crypto City
bd1b70efd5 cc: guard against possible integer overflow 2024-02-04 10:45:51 +00:00
Crypto City
75f7a79367 cc: bump prestige from fish collection and lightsources 2024-02-04 10:45:51 +00:00
Lee Clagett
98ee46f249 Disable/fix ports with I2P 2024-01-30 13:36:21 -05:00
Lee *!* Clagett
f5b86342e8 Add <cstdint> to aligned test 2024-01-29 21:40:50 -05:00
jeffro256
dfb990e8bb
wallet: mitigate statistical dependence for decoy selection within rings
Since we are required to check for uniqueness of decoy picks within any given
ring, and since some decoy picks may fail due to unlock time or malformed EC points,
the wallet2 decoy selection code was building up a larger than needed *unique* set of
decoys for each ring according to a certain distribution *without replacement*. After
filtering out the outputs that it couldn't use, it chooses from the remaining decoys
uniformly random *without replacement*.

The problem with this is that the picks later in the picking process are not independent
from the picks earlier in the picking process, and the later picks do not follow the
intended decoy distribution as closely as the earlier picks. To understand this
intuitively, imagine that you have 1023 marbles. You label 512 marbles with the letter A,
label 256 with the letter B, so on and so forth, finally labelling one marble with the
letter J. You put them all into a bag, shake it well, and pick 8 marbles from the bag,
but everytime you pick a marble of a certain letter, you remove all the other marbles
from that bag with the same letter. That very first pick, the odds of picking a certain
marble are exactly how you would expect: you are twice as likely to pick A as you are B,
twice as likely to pick B as you are C, etc. However, on the second pick, the odds of
getting the first pick are 0%, and the chances for everything else is higher. As you go
down the line, your picked marbles will have letters that are increasingly more unlikely
to pick if you hadn't remove the other marbles. In other words, the distribution of the
later marbles will be more "skewed" in comparison to your original distribution of marbles.

In Monero's decoy selection, this same statistical effect applies. It is not as dramatic
since the distribution is not so steep, and we have more unique values to choose from,
but the effect *is* measureable. Because of the protocol rules, we cannot have duplicate
ring members, so unless that restriction is removed, we will never have perfectly
independent picking. However, since the earlier picks are less affected by this
statistical effect, the workaround that this commit offers is to store the order that
the outputs were picked and commit to this order after fetching output information over RPC.
2024-01-19 13:31:15 -06:00
luigi1111
8eab181fe1
Merge pull request #9080
47d8899 Fix missing checks for IsObject in ZMQ jsonrpc reading (Lee Clagett)
2024-01-18 18:03:43 -05:00
luigi1111
9a70f43440
Merge pull request #9053
fe746dc Fix EAGAIN bug in ZMQ-RPC/ZMQ-PUB (Lee *!* Clagett)
2024-01-18 17:57:54 -05:00
Crypto City
5e70882298 game: allow script-choice://N uri scheme for script choices
allows more freedom in creating a custom script ui
2024-01-07 16:21:36 +00:00
Crypto City
ac583e7a40 add a break news command 2024-01-07 16:21:36 +00:00
Crypto City
efe7623567 fix a few warnings 2023-12-19 12:06:48 +00:00
Crypto City
6dfaf7ec22 add -Wno-string-compare to avoid false positive spam in typeinfo 2023-12-19 12:06:48 +00:00
Crypto City
1f8994d0a8 remove some fork conditionals in preparation for next testnet 2023-12-19 12:06:48 +00:00
Crypto City
6b49171ec1 increase coin minting/smelting fees 2023-12-19 12:06:47 +00:00
Crypto City
64ed4ed7a6 game: disable repair all and fight fire buttons in player screen as needed 2023-12-17 15:09:38 +00:00