Commit Graph

649 Commits

Author SHA1 Message Date
Crypto City
38e72110e7 scale hunting down 3x 2024-02-28 14:36:22 +00: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
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
4cdd25c47e fix role bonus
and add consumption/production stats
2024-02-18 17:37:33 +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
Crypto City
ac583e7a40 add a break news command 2024-01-07 16:21:36 +00:00
Crypto City
6b49171ec1 increase coin minting/smelting fees 2023-12-19 12:06:47 +00:00
Crypto City
faec973079 functional_tests: testing parsing a script using every feature 2023-12-17 13:32:56 +00:00
Crypto City
062f8610e0 hide script choices disabled by unmet reserves in game 2023-12-17 13:32:56 +00:00
Crypto City
3372880ed3 new "times played script X" and "times played this script" operands
this is a common need, and avoids the wasteful and error prone use
of a player variable per script
2023-12-14 17:22:55 +00:00
Crypto City
514550fa68 badges can now be automatically awarded based on a player variable 2023-12-08 21:13:24 +00:00
Crypto City
c9d97af3ea allow selecting where a fire starts in a script 2023-12-08 21:13:24 +00:00
Crypto City
983b0707a8 move fire special event from weather to misc 2023-12-08 21:13:24 +00:00
Crypto City
6d07131e77 daemon: add cc_item_supply daemon command with cc_get_item_supply RPC 2023-11-30 17:11:43 +00:00
Crypto City
5dc5eca758 delay user textures for a week after mining so they may be blocked
for anti abuse reasons
2023-09-12 06:41:18 +00:00
jeffro256
7dbb14b02a
functional_tests: fix multisig tests noutputs assertion
The changes to the multisig tests in #8914 and #8904 affected each other, this PR cleans up the code and fixes that issue.
2023-08-19 22:21:36 -05:00
luigi1111
9d5c5b5634
Merge pull request #8942
78348bc wallet-rpc: restore from multisig seed (jeffro256)
2023-08-17 10:24:16 -05:00
luigi1111
894adef295
Merge pull request #8891
842478c core_rpc_server: return ID of submitted block (jeffro256)
2023-08-17 10:18:12 -05:00
jeffro256
78348bcddd
wallet-rpc: restore from multisig seed 2023-08-10 10:13:07 -05:00
Crypto City
8b828dd801 include lightsource blocks in flag budget from the get go
same as water and vegetation blocks

avoids headaches with building in game having to keep track
of how many lightsources there are in a building under construction
2023-08-03 15:53:06 +00:00
Crypto City
322cfd4add keep track of active accounts
hide them by default in account selection screen, and inactive
accounts may be dealt with differently in game ticks later if
it is needed for performance purposes
2023-07-20 08:21:10 +00:00
Crypto City
bbb124e13b allow auctions to lapse (set by auction creator) 2023-07-12 12:14:33 +00:00
Crypto City
a6e562a5ff remove fork overrides, new testnet soon 2023-07-12 12:14:33 +00:00
Crypto City
b8cad867dd functional_tests: fix random merchant ship test failure 2023-07-09 20:11:39 +00:00
Crypto City
c43db96440 lit lightsources now increase building shares 2023-07-09 20:11:39 +00:00
Crypto City
5fc22b07a0 add water blocks 2023-07-09 20:11:38 +00:00
luigi1111
5a99b2dfbe
Merge pull request #8905
dc24312 wallet: respect frozen key images in multisig wallets [RELEASE] (jeffro256)
2023-07-06 21:38:34 -05:00
jeffro256
842478c5a9
core_rpc_server: return ID of submitted block 2023-06-30 15:32:49 -05:00
Crypto City
df94fe9be6 add voxel smoothness to consensus 2023-06-16 16:33:34 +00:00
jeffro256
dc24312bc3 wallet: respect frozen key images in multisig wallets [RELEASE]
Before this change, if a multisig peer asked you to sign a transaction with a frozen enote, the wallet will do it without any error or warning. This change makes it
so that wallets will refuse to sign multisig transactions with frozen enotes.

Disclaimer: This PR was generously funded by @LocalMonero.
2023-06-12 16:49:33 -05:00
Crypto City
47f882ad06 functional_tests: fix merchant ship test with probabilistic items 2023-06-08 14:31:37 +00:00
Crypto City
cf9158f27f merchant ships may now have more than one item for sale 2023-06-08 08:15:01 +00:00
Crypto City
248675a830 lightsources can now be placed in the world
along with a new ligtsource block type, and coloured powder items
2023-06-06 20:01:00 +00:00
Crypto City
0e425a5743 functional_tests: fix rare spurious error due to lack of wood 2023-06-06 20:00:38 +00:00
Crypto City
9e50aa3e7d fix demolishing with a carved runestone being accepted 2023-06-02 08:58:03 +00:00
Crypto City
de2b582006 prevent duplicate bid increases in account auctions 2023-05-30 13:04:24 +00:00
Crypto City
8ea9160fca game accounts can now be auctioned
can only be withdrawn from at the moment
2023-05-30 13:04:24 +00:00
Crypto City
53480ea159 coru: jeopardy mode
the winner may pick a coin or rune of their choice from
the loser's deck
2023-05-30 13:04:02 +00:00
Crypto City
87ec510baf coru tournaments 2023-05-30 13:03:57 +00:00
Crypto City
c68faac405 coru: a "collectible card" minigame based on coins and runes
designed by syksy
2023-05-30 13:03:31 +00:00
Crypto City
bd4f8030e6 functional_tests: fix occasional bogus research test failure
we seem to be ending up on a game tick occasionally, where no
user command gets mined
2023-05-11 06:07:58 +00:00
Crypto City
41584f4c68 functional_tests: account for gold in reserved items 2023-05-11 06:07:58 +00:00
Crypto City
845b88238c functional_tests: support restarting from backed up chain 2023-05-11 06:07:58 +00:00
Crypto City
3a76a9c5e0 make some badges longer term and less prone to badge selling 2023-05-11 06:07:58 +00:00
Crypto City
51a44a2524 allow refraining from mining start epoch commands till a given fork 2023-05-10 21:37:10 +00:00
Crypto City
daa2d0d7ce functional_tests: test players can't create items in predefined groups 2023-05-10 21:34:39 +00:00
Crypto City
8d0d2c850c make some badges impossible to give 2023-05-10 21:34:39 +00:00
Crypto City
356cb2989a functional_tests: test cancelling multiple nonces at once 2023-04-27 09:26:35 +00:00
Crypto City
1d93b7afd4 functional_tests: cut down on brute force RPC calls 2023-04-27 09:26:34 +00:00
Crypto City
bc83bea848 reserve builtin names too 2023-04-10 21:43:18 +00:00
Crypto City
8b3b8b0107 functional_tests: add some more test for messages 2023-04-06 18:55:04 +00:00
Crypto City
6128c8d908 functional_tests: fix p2p tx propagation test 2023-04-06 18:55:04 +00:00
Crypto City
2c378941dd players can now have a title
chosen among a set of predefined components
2023-04-05 07:54:00 +00:00
Crypto City
58d1aa544f functional_tests: check city tagline 2023-04-01 08:48:33 +00:00
Crypto City
71ffbea68a divide time into epochs, for flavour 2023-03-29 10:38:35 +00:00
Crypto City
a2dee19052 functional_tests: fix daemon_info fork test with extra forks set up 2023-03-26 20:44:49 +00:00
Crypto City
27845701db cities can now have a tagline
because it's cool
2023-03-26 20:44:48 +00:00
Crypto City
5827d5cd66 functional_tests: fix cold signing test 2023-03-26 20:44:48 +00:00
Crypto City
906c33d735 functional_tests: fix off by one in name place size limits 2023-03-20 14:14:02 +00:00
Crypto City
36c765ca14 Fluorine Fermi
-----BEGIN PGP SIGNATURE-----
 
 iQFJBAABCAAzFiEEh3erj3eO6JSHovjn9KygGDZB4BAFAmMzenIVHGx1aWdpMTEx
 MXdAZ21haWwuY29tAAoJEPSsoBg2QeAQCi4IAJvKvE7nJ51/ZK30IY5+y2ELq1uI
 tYw9w6E8XujX4lxWewsV5BywJrYTmj22gfhlnuf54ppqciMNOZj8r1jp6bQMLY8d
 vNZwowbH/CRdGeo4k2EGOJIdB1wQ2m2i5hvlOcmlGFL7nujo2m9AHnrqxcfTw0ns
 xfWRjTU5Z3srfs22J9KNEurSg11i7DatwCO79zBL+JRETVLpD8GV6eeSXGSwNVc7
 6vUB/z0OoOtSV6UVDkqL1d5op2siw9NLEihYKLbTqAAdWxAG7o82Ne/cw6Vyo0uy
 mKwoSxGUf9zMNXlQfpQpxVmriXNgfjQ89akTVq7niIB9jG1OU/v9Pvg4BxE=
 =k/nU
 -----END PGP SIGNATURE-----

Merge tag 'v0.18.1.2' into cc

Fluorine Fermi
2023-03-19 06:38:11 +00:00
Crypto City
170b9ea17f bump min named place size and add tests for place size 2023-03-18 16:07:43 +00:00
Crypto City
d90dd23fd5 functional_tests: fix unicode mixup in account name test 2023-03-18 13:28:03 +00:00
Crypto City
4de6c653a1 tests: restore mistakenly disabled functional tests 2023-03-18 13:28:03 +00:00
j-berman
65e13dbef1 wallet2: fix rescanning tx via scan_tx
- Detach & re-process txs >= lowest scan height
- ensures that if a user calls scan_tx(tx1) after scanning tx2,
the wallet correctly processes tx1 and tx2
- if a user provides a tx with a height higher than the wallet's
last scanned height, the wallet will scan starting from that tx's
height
- scan_tx requires trusted daemon iff need to re-process existing
txs: in addition to querying a daemon for txids, if a user
provides a txid of a tx with height *lower* than any *already*
scanned txs in the wallet, then the wallet will also query the
daemon for all the *higher* txs as well. This is likely
unexpected behavior to a caller, and so to protect a caller from
revealing txid's to an untrusted daemon in an unexpected way,
require the daemon be trusted.
2023-03-13 12:57:43 -07:00
Crypto City
dbf58ec851 add odin's bounty - gold bonus based on randomly chosen named place 2023-02-16 19:21:19 +00:00
Crypto City
1af5d7b313 functional_tests: fix rare spurious failure from lack of wood 2023-02-16 14:18:40 +00:00
Crypto City
c4a776f182 include service efficiency in cc_get_flag RPC when applicable 2023-02-16 14:18:40 +00:00
Crypto City
0737d151f2 functional_tests: fix attempt to use more money than available 2023-02-16 14:18:40 +00:00
Crypto City
f71b6df441 craft buildings can now runestones from regular stones 2023-02-16 14:18:40 +00:00
Crypto City
cb4b2c71a6 functional_tests: check all cc_* RPC entry points are tested 2023-02-16 14:18:40 +00:00
Crypto City
1a68d7e1ad functional_tests: add cc_allow_styling tests 2023-02-16 14:18:40 +00:00
Crypto City
f96628d988 functional_tests: add cc_change_palette tests 2023-02-16 14:18:40 +00:00
Crypto City
c09c6fed54 functional_tests: add cc_get_rare_fish_data tests 2023-02-16 14:18:39 +00:00
Crypto City
e22accf518 functional_tests: add cc_replace_script_blob tests 2023-02-16 14:18:39 +00:00
Crypto City
2d63fde471 functional_tests: add cc_get_badge_scores tests 2023-02-16 14:18:39 +00:00
Crypto City
fc6fc1d498 functional_tests: add cc_get_production tests 2023-02-16 14:18:39 +00:00
Crypto City
7bd8d1a99a functional_tests: add cc_get_crop_yield tests 2023-02-16 14:18:39 +00:00
Crypto City
06554b555d functional_tests: add cc_get_terrain tests 2023-02-16 14:18:39 +00:00
Crypto City
bbcb70f62a functional_tests: add cc_get_stats tests 2023-02-16 14:18:39 +00:00
Crypto City
0c7c0109df functional_tests: add cc_get_blobs/cc_get_blob_info tests 2023-02-16 14:18:39 +00:00
Crypto City
69e5252303 functional_tests: add cc_get_foreclosures tests 2023-02-16 14:18:39 +00:00
Crypto City
7e07b242d8 functional_tests: add cc_get_used_nonces tests 2023-02-16 14:18:39 +00:00
Crypto City
349ebe8b3c functional_tests: add cc_get_temperature tests 2023-02-16 14:18:39 +00:00
Crypto City
0e00348dd1 functional_tests: add cc_are_discoveries_enabled tests 2023-02-16 14:18:39 +00:00
Crypto City
f762e0898d functional_tests: add cc_get_service_fee tests 2023-02-16 14:18:39 +00:00
Crypto City
26b4b4489d functional_tests: add cc_get_bonuses tests 2023-02-16 14:18:39 +00:00
Crypto City
bf4339a8ad functional_tests: add cc_get_badge_totals tests 2023-02-16 14:18:39 +00:00
Crypto City
0126e0dd43 functional_tests: add cc_get_accounts tests 2023-02-16 14:18:39 +00:00
Crypto City
28ac9ef30e functional_tests: add cc_get_special_events tests 2023-02-16 14:18:39 +00:00
Crypto City
698fe07fe9 functional_tests: add cc_get_last_update_events tests 2023-02-16 14:18:39 +00:00
Crypto City
37ac59f737 functional_tests: add cc_get_nonces_mined tests 2023-02-16 14:18:39 +00:00
Crypto City
b90e5c3859 functional_tests: add cc_find_flag tests 2023-02-16 14:18:39 +00:00
Crypto City
04537a0a0b functional_tests: add cc_lookup_account tests 2023-02-16 14:18:39 +00:00
Crypto City
2d34ccf168 destroy assigned items on involuntary building destruction
eg, fire, derelict buildings...
2023-02-16 14:18:39 +00:00
Crypto City
8932eac499 add placeholder chat type to chat command
there might be more than one chat at some point
2023-02-16 14:18:39 +00:00
Crypto City
890af738d6 fix transfer functional tests with transfer to self 2023-02-06 14:10:15 +00:00
Crypto City
12ade5e935 add an extra fee to create items with prestige and/or role bonuses
to prevent abuse
2023-02-06 14:10:15 +00:00
Crypto City
46d4dc442a fix naming an empty flag before building on it 2023-01-29 08:44:11 +00:00
Crypto City
d6170c130d items can now be retrieved from flags
except labour and construction materials
2023-01-29 08:10:02 +00:00