Commit Graph

2150 Commits

Author SHA1 Message Date
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
2a06fb53d2 compress a few more from/to strings in commands 2023-02-16 14:18:38 +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
Crypto City
90989c35ef functional_tests: ensure scripts are finished after testing scripts 2023-01-28 17:03:26 +00:00
Crypto City
406eef2d68 compress player profile previous/new strings in command 2023-01-28 17:03:01 +00:00
Crypto City
f789d40e7c creating user textures now needs a cultural building
since user texture space is at a premium, this will discourage
spamming and DoS
2023-01-28 17:03:01 +00:00
Crypto City
a0497a35d9 cc: constrain dividend note length 2023-01-28 17:03:01 +00:00
Crypto City
4613cdb321 add a tiny fee by dividend recipient
for abuse prevention
2023-01-28 17:03:01 +00:00
Crypto City
14d8120aa9 shares for cities which restrict settlers count for half for subsidy
for abuse prevention
2023-01-28 17:03:01 +00:00
Crypto City
309d0c6123 add visiting scholar special event 2023-01-28 17:03:01 +00:00
Crypto City
0cd2e67d06 research buildings now offer a bonus and can be used as a service 2023-01-28 17:03:00 +00:00
Crypto City
c38b346452 functional_tests: ensure fishery does not deactivate while testing 2023-01-28 17:03:00 +00:00
Crypto City
20aa5e7ab0 db_tests: fix uninitialized variable use 2023-01-28 17:03:00 +00:00
Crypto City
60b22f6ccc functional_tests: fix rare failure due to lack of money 2023-01-28 17:03:00 +00:00
Crypto City
1ec00af4b1 tests: fix libwallet_api_tests build 2023-01-28 17:03:00 +00:00
Crypto City
309da5001c rpc: add cc_get_building_cost RPC 2023-01-28 17:03:00 +00:00
Crypto City
faea49e164 scripts can now have a storyline flag
to differentiate them for "technical" scripts
2023-01-28 17:03:00 +00:00
Crypto City
e6f1dfcb27 add levenshtein and damerau/levenshtein distance functions 2023-01-28 17:03:00 +00:00
Crypto City
b36454b79b game: allow vertical colour gradients in chat messages 2023-01-28 17:02:59 +00:00
Crypto City
487e941453 functional_tests: fix comment 2023-01-28 17:02:59 +00:00
Crypto City
095104f6d0 constrain tax break zones within 25k tiles of center or other ones 2023-01-28 17:02:59 +00:00
Crypto City
1985a1d5a7 food salting, as an agricultural building service 2023-01-28 17:02:59 +00:00
Crypto City
413ba7369f pearl diving, as a fishery service 2023-01-28 17:02:59 +00:00
Crypto City
aa7bcbf6c9 there can now be more than once special event in a city at once 2023-01-28 17:02:58 +00:00
Crypto City
a31f37334b account for gold in items assigned to flags 2023-01-28 17:02:58 +00:00
Crypto City
118f1ac9ca functional_tests: fix demolish tests 2023-01-28 17:02:58 +00:00
luigi1111
153819fc4c
Merge pull request #8649
2c24322 DNSResolver: fix not handling hostnames without dot characters [release] (Jeffrey Ryan)
2023-01-11 11:41:56 -05:00
luigi1111
cbc5cf43f2
Merge pull request #8644
38d4811 p2p: fix exclusive node DNS resolution for certain hosts [release] (Jeffrey Ryan)
2023-01-11 11:40:13 -05:00
Jeffrey Ryan
2c2432245f DNSResolver: fix not handling hostnames without dot characters [release]
Unrelated, but similar code-wise to #8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
2022-11-21 21:16:16 -06:00
Jeffrey Ryan
38d4811c89 p2p: fix exclusive node DNS resolution for certain hosts [release]
Fixes #8633. The function `append_net_address` did not parse hostname + port addresses (e.g. `bar:29080`) correctly if the hostname did not contain a `'.'` character.

@vtnerd comments 1

clear up 2nd conditional statement
2022-11-17 18:57:04 -06:00
Lee Clagett
1bb5d25e31 Fix dandelion++ fluff/stem bug with local txes 2022-10-25 16:01:09 -04:00
luigi1111
1f27fdf6a5
Merge pull request #8588
802c4bb Move update_checkpoints() to a later stage (SChernykh)
2022-09-26 15:00:59 -05:00
luigi1111
a7b0c93c7d
Merge pull request #8582
1cd21bf add an option to force-update multisig key exchange under some circumstances (koe)
2022-09-26 14:55:28 -05:00
SChernykh
802c4bb0e4 Move update_checkpoints() to a later stage
update_checkpoints() makes a few DNS requests and can take up to 20-30 seconds to complete (3-6 seconds on average). It is currently called from core::handle_incoming_block() which holds m_incoming_tx_lock, so it blocks all incoming transactions and blocks processing while update_checkpoints() is running. This PR moves it to until after a new block has been processed and relayed, to avoid full monerod locking.
2022-09-22 13:06:39 +02:00
koe
1cd21bfba5 add an option to force-update multisig key exchange under some circumstances 2022-09-21 12:51:19 -05:00
SChernykh
6adf03cdc5 Second thread pool for IO 2022-09-20 10:22:12 +02:00
luigi1111
7cbae6ca98
Merge pull request #8545
12e7c41 Merge pull request #5 from j-berman/restore-msig-encrypted-seed (Justin Berman)
848a0c0 Fix segfault restoring encrypted multisig seed (j-berman)
401f5d9 Require user ack multisig is experimental to restore (j-berman)
fc8a5d6 multisig: fix #8537 seed restore (suggestions by @UkoeHB) (j-berman)
2022-09-15 16:25:22 -05:00
j-berman
864a78ee5f wallet2: check wallet compatibility with daemon's hard fork version 2022-09-12 21:23:08 -06:00
moneromooo-monero
1d3657afb5
wallet2: better test on whether to allow output import
Being offline is not a good enough heuristic, so we keep track
of whether the wallet ever refreshed from a daemon, which is a
lot better, and probably the best we can do without manual user
designation (which would break existing cold wallet setups till
the user designates those wallets)
2022-09-07 06:22:31 +00:00
moneromooo-monero
0cbf5571d3
allow exporting outputs in chunks
this will make it easier huge wallets to do so without hitting
random limits (eg, max string size in node).
2022-09-07 06:22:07 +00:00
j-berman
b03d7091f7
wallet2: fixes for export/import output flow
- only allow offline wallets to import outputs
- don't import empty outputs
- export subaddress indexes when exporting outputs
2022-09-06 17:20:23 -06:00
Crypto City
bf53f14fd8 custom items can now have per role bonuses 2022-09-02 20:14:41 +00:00
j-berman
fc8a5d68f1 multisig: fix #8537 seed restore (suggestions by @UkoeHB)
- spend secret key is no longer the sum of multisig key shares;
no need to check that is the case upon restore.
- restoring a multisig wallet from multisig info means that the
wallet must have already completed all setup rounds. Upon restore,
set the number of rounds completed accordingly.
2022-09-01 16:25:28 -07:00
Crypto City
1f636fbf8e change tax break zone mechanics
There can be multiple tax break zones, unlocked at increasing
city levels, but they are fixed once set.
This will prevent mayorial bait and switch abuse.
2022-08-31 11:48:49 +00:00
Crypto City
02e6ba170f functional_tests: add message tests 2022-08-23 05:20:29 +00:00
Crypto City
6140cc9f81 select embedded data locations uniformly across rings 2022-08-23 05:20:29 +00:00
Crypto City
e5b17616fd blockchain: fix invalid memory read getting fee on empty chain 2022-08-23 05:20:29 +00:00
Crypto City
d34a724e4b fuzz_tests: add a unishox2 fuzz test 2022-08-23 05:20:28 +00:00
Crypto City
7c70d0ef6e invisible P2P messages 2022-08-23 05:20:28 +00:00
Crypto City
27bcb3586b arbitrary data may be invisibly embedded in CLSAGs
This decreases the ring size observed by the recipient,
but not the ring size observed by another observer.
The more data, the greater the ring size reduction.
CLSAGs can carry a maximum of 252 bits per value (one
bit is used as a flag, the rest as data payload), and
there are 15 such values per ring. At close to full
capacity, the real spend will be known to the recipient
(though not to an observer, who will not even be able
to tell whether a transaction includes embedded data
or not).

Thanks to kayabaNerve for pointing out how to use s
for this.
2022-08-19 14:43:43 +00:00
Crypto City
088538c160 Merge remote-tracking branch 'origin/master' into HEAD
b6a029f222

Multisig functional test broken
2022-08-08 17:44:32 +00:00
Crypto City
eec63d353a store city level in db, avoid max_level crutch 2022-08-08 14:38:47 +00:00
luigi1111
72490ca04f
Merge pull request #8483
6075be9 feat(trezor): add HF15 support, BP+ (Dusan Klinec)
2022-08-07 21:35:01 -05:00
Dusan Klinec
6075be9cc8
feat(trezor): add HF15 support, BP+
- BP+ support added for Trezor
- old Trezor firmware version support removed, code cleanup
2022-08-05 14:27:16 +02:00
Crypto City
f9790980b4 new special event: merchant ship, selling items on the market 2022-08-04 15:57:39 +00:00
Crypto City
070a4d46da remove the --debug-allow-gm-commands-from-account option
allow usage of an alternate game account key pair for tests instead
2022-08-04 15:57:39 +00:00
Crypto City
3e42cf32ca functional_tests: fix daemon hard fork test 2022-08-04 08:36:32 +00:00
Crypto City
4252824ad0 functional_tests: piggy back on first building to prevent random events
since they can break tests which do not expect them
2022-08-04 08:36:32 +00:00
Crypto City
aaf24f1338 allow seting more than one global variable at once, for atomicity 2022-08-04 08:36:32 +00:00
Crypto City
6bfc447544 custom items may now have a prestige bonus
only the game account can add prestige bonuses
2022-08-04 08:36:31 +00:00
Crypto City
6c4a31509a new "tax break zone" city specialization 2022-08-04 08:36:31 +00:00
Crypto City
c004280dc7 user textures can now tile independently horizontally and vertically 2022-08-02 06:19:05 +00:00
Crypto City
f4a8938ec1 unit_tests: add unit_tests for collectible fish 2022-08-02 06:19:05 +00:00
Crypto City
4552e18249 somewhat better looking terrain 2022-08-02 06:19:04 +00:00
Crypto City
1b5c033f6e cc: fix consuming items with gold in scripts 2022-08-02 06:19:04 +00:00
Crypto City
09251d7be6 include script owner in start_script_command
so we know when the game should requets a snapshot
2022-08-02 06:19:04 +00:00
Crypto City
98c62f0645 functional_tests: add user texture tests 2022-08-02 06:19:03 +00:00
Crypto City
8d7e78a7fa functional_tests: check event balances for game, foreclosure and treasuries 2022-08-02 06:19:03 +00:00
Crypto City
1ded69f8b1 scripts can now create items if set up this way at definition time 2022-08-02 06:19:03 +00:00
Crypto City
1582492535 allow creating more items if that was setup on item definition 2022-08-02 06:19:03 +00:00
Crypto City
ffbc1d3ae1 compress script blobs with zstd
- we don't really care if they're slow to compress
- we care about compression for blockchain usage (and max tx size)
2022-07-23 15:46:20 +00:00
Crypto City
aa48b3cdfb functional_tests: fix fire test being upset by a fire in another city 2022-07-23 15:46:20 +00:00
Crypto City
46d22ceb89 allow texture creators to set the tile span 2022-07-23 15:46:20 +00:00
Crypto City
4c46b96faf user textures can now be used in game 2022-07-23 15:46:19 +00:00
Crypto City
5c2c002d17 user created textures and licencing - not yet usable on voxels 2022-07-23 15:46:19 +00:00
Crypto City
74c2683f62 functional_tests: a bit more leeway when checking for derelict buildings 2022-07-23 15:46:19 +00:00
Crypto City
588ce075b4 functional_tests: fix nonce search bug 2022-07-23 15:46:19 +00:00
Crypto City
403c31c31e functional_tests: test fishing in another city's fishing grounds 2022-07-23 15:46:19 +00:00
Crypto City
aae749b0eb tune down fishing grounds recovery 2022-07-23 15:46:19 +00:00
Crypto City
b6d94f9fbf more generic special event overrides for tests 2022-07-23 15:46:19 +00:00
Crypto City
774f8430ce drop runestone price to one quarter gold 2022-07-23 15:46:18 +00:00
Crypto City
0ddeaa3992 add RPC and functional tests for edit_player_profile 2022-07-23 15:46:18 +00:00
Crypto City
f36b5f77db functional_tests: add tests for naming places 2022-07-23 15:46:18 +00:00
Crypto City
ea035a18be functional_tests: fire can last longer now 2022-07-23 15:46:18 +00:00
Crypto City
32314a1dc4 scripts can now award event badges 2022-07-23 15:46:18 +00:00
j-berman
8cc3c9af4d Publish submitted txs via zmq 2022-07-21 11:53:31 -07:00
luigi1111
9df069f4ce
Merge pull request #8426
a82fba4 address PR comments (j-berman)
3be1dbd connection: fix implementation (anon)
724ff21 connection: add segfault and deadlocks demo (anon)
2022-07-15 11:25:11 -04:00
koe
edcc094558 derive multisig tx secret keys from an entropy source plus the tx inputs' key images 2022-07-13 12:40:34 -05:00
j-berman
a82fba4b7b address PR comments 2022-07-08 15:10:03 -07:00
anon
724ff21447 connection: add segfault and deadlocks demo 2022-07-05 22:31:26 -07:00
Crypto City
dd97761414 islander badge - number of buildings on an island 2022-07-04 21:15:34 +00:00
Crypto City
b1ab49720b players can now name areas 2022-07-04 21:15:34 +00:00
Crypto City
e141fbf27d functional_tests: more info when a bug in ownership is detected 2022-07-04 21:15:34 +00:00
Crypto City
1a48b87d14 functional_tests: add whisper tests 2022-07-04 21:15:34 +00:00
Crypto City
d48966a82c improved fishing mechanics 2022-07-04 21:15:34 +00:00
Crypto City
6e0044f5e6 functional_tests: make fire test more stable 2022-07-04 21:15:34 +00:00
Crypto City
2735bf2ad9 core_tests: fix demolish test having bad tile data 2022-07-04 21:15:33 +00:00
Crypto City
31a58c66cf unit_tests: ensure we fail trying to get balance of an invalid account 2022-07-04 21:15:33 +00:00
Crypto City
9c09582b7f cc: forbid giving to oneself 2022-07-04 21:15:33 +00:00
Crypto City
734f2cc524 only active buildings can fish, sow and harvest 2022-07-04 21:15:33 +00:00
Crypto City
ffc4e2198f buildings' econonic power can now be upgraded
for 150% of the incremental cost
2022-07-04 21:15:33 +00:00
Crypto City
636d8b7a84 more intricate shoreline 2022-07-04 21:15:33 +00:00
Crypto City
259ac82299 remove old TF forks, we'll be starting anew 2022-07-04 21:15:33 +00:00
Crypto City
ce6016306d add fish, fishing and fisheries 2022-07-04 21:15:33 +00:00
anon
c7b2944f89 multisig: fix critical vulnerabilities in signing 2022-06-30 12:56:40 -05:00
Crypto City
9f6412b083 water/shoreline 2022-06-30 07:26:16 +00:00
Crypto City
b96242a157 fix fixed multiplication for low magnitude numbers 2022-06-28 16:49:50 +00:00
Crypto City
3e0024c233 unit_tests: add a few simple fixed_t sin/cos tests 2022-06-28 16:49:49 +00:00
Crypto City
fb48c2e73e add procedures to scripts 2022-06-28 16:49:49 +00:00
Crypto City
73824c40f1 fix */+- precedence in scripts 2022-06-28 16:49:49 +00:00
Crypto City
9ffb213012 background scripts, tied to the game account 2022-06-28 16:49:49 +00:00
Crypto City
5474600c6a make if in scripts more generic, and allow an else branch too 2022-06-28 16:49:49 +00:00
Crypto City
867e9b359f remove restricted items hack 2022-06-28 16:49:49 +00:00
Crypto City
ca27a104bd add per choice script reserves
This will allow script options to scale with player balances
2022-06-28 16:49:49 +00:00
Crypto City
d85d5012eb newbie coins - each new player gets a random one
collecting all the set gives a prestige boost
2022-06-28 16:49:48 +00:00
luigi1111
9750e1fa10
Merge pull request #8340
08080df unit_tests: add more sha256sum test cases (Jeffrey Ryan)
a66a52d common: update sha256sum to use OpenSSL 3.0 API (Jeffrey Ryan)
2022-05-26 21:26:42 -05:00
luigi1111
f9d789d68c
Merge pull request #8330
2dab31f Don't exclusively drop tor/i2p outgoing cxns in idle loop (j-berman)
2022-05-26 21:23:38 -05:00
j-berman
2dab31f62f Don't exclusively drop tor/i2p outgoing cxns in idle loop 2022-05-18 09:54:21 -07:00
Crypto City
1bf09dfa66 tests: fix tests 2022-05-18 06:36:26 +00:00
Jeffrey Ryan
08080df2d9
unit_tests: add more sha256sum test cases 2022-05-18 01:34:20 +02:00
moneromooo-monero
2979474221
disable multisig by default
There are vulnerabilities in multisig protocol if the parties do not
trust each other, and while there is a patch for it, it has not been
throroughly reviewed yet, so it is felt safer to disable multisig by
default for now.
If all parties in a multisig setup trust each other, then it is safe
to enable multisig.
2022-05-17 19:52:03 +00:00
luigi1111
c76e33bc44
Merge pull request #8304
0226df9 More tests for view tags (SChernykh)
2022-05-10 16:57:23 -05:00
luigi1111
d58ea37a8d
Merge pull request #8302
41da2fe Update copyright to 2022 for Hardfork files (Akrit)
2022-05-10 16:56:39 -05:00
luigi1111
436ca13722
Merge pull request #8277
baee2c0 Preserve commitment format inside transactions (kayabaNerve)
2022-05-10 16:49:13 -05:00
luigi1111
c1625a8928
Merge pull request #8220
0d6ecb1 multisig: add post-kex verification round to check that all participants have completed the multisig address (koe)
2022-05-10 16:41:02 -05:00
SChernykh
0226df9fae More tests for view tags
P2Pool can create transactions with more than 128 outputs, which make output_index's varint larger than 1 byte. Added this test case.
2022-04-29 22:53:59 +02:00
koe
0d6ecb1136 multisig: add post-kex verification round to check that all participants have completed the multisig address 2022-04-29 14:04:59 -05:00
Akrit
41da2fe6f3 Update copyright to 2022 for Hardfork files
Update Makefile and LICENSE
2022-04-29 11:12:36 +02:00
luigi1111
e13244ea9c
Merge pull request #8178
5d388eb Bump ring size to 16 for v15 & remove set default in wallet cli (j-berman)
2022-04-25 10:18:26 -05:00
Luke Parker
baee2c06ec
Preserve commitment format inside transactions 2022-04-21 18:58:47 -04:00
luigi1111
96758a7d05
Merge pull request #8061
ea87b30 Add view tags to outputs to reduce wallet scanning time (j-berman)
2022-04-19 22:14:03 -05:00
j-berman
5d388eb74d Bump ring size to 16 for v15 & remove set default in wallet cli 2022-04-18 14:36:28 -07:00
Jeffrey
40f02f9d73 Add Include statements 2022-04-18 09:55:20 -05:00
j-berman
ea87b30f89 Add view tags to outputs to reduce wallet scanning time
Implements view tags as proposed by @UkoeHB in MRL issue
https://github.com/monero-project/research-lab/issues/73

At tx construction, the sender adds a 1-byte view tag to each
output. The view tag is derived from the sender-receiver
shared secret. When scanning for outputs, the receiver can
check the view tag for a match, in order to reduce scanning
time. When the view tag does not match, the wallet avoids the
more expensive EC operations when deriving the output public
key using the shared secret.
2022-04-18 00:49:53 -07:00
moneromooo-monero
b030f20751
Fee changes from ArticMine
https://github.com/ArticMine/Monero-Documents/blob/master/MoneroScaling2021-02.pdf

with a change to use 1.7 instead of 2.0 for the max long term increase rate
2022-04-10 18:13:34 +00:00
moneromooo-monero
9f786f0550
epee: allow copying a rolling_median_t object 2022-04-10 18:13:31 +00:00
reemuru
6abe3fee19
tests: integrated_address: remove missing payment id assertion
The integrated address functional test fails in the workflows due
to an assertion for missing payment id that is no longer needed.
Remove the assertion and update the assertion count.

Fixes 7dcfccb: ("wallet_rpc_server: fix make_integrated_address with no payment id")
2022-04-06 06:49:01 -05:00
luigi1111
c11385591e
Merge pull request #8228
1ce9e9c Remove dead code from parserse_base_utils and fix unit tests (Jeffrey)
2022-04-06 00:22:23 -04:00
luigi1111
04e490c8da
Merge pull request #8205
0d6fce8 Compil. time: cryptonote_core minus portable_storage header (mj-xmr)
2022-04-06 00:11:14 -04:00
luigi1111
0eb1b570b6
Merge pull request #8197
da9aa1f Copyright: Update to 2022 (mj-xmr)
2022-04-06 00:08:53 -04:00
moneromooo-monero
4c94cfecfc
store outPk/8 in the tx for speed
It avoids dividing by 8 when deserializing a tx, which is a slow
operation, and multiplies by 8 when verifying and extracing the
amount, which is much faster as well as less frequent
2022-04-05 18:50:22 +00:00
moneromooo-monero
a0d80b1f95
plug bulletproofs plus into consensus 2022-04-05 18:50:17 +00:00
Sarang Noether
bd27debb2d Bulletproofs+ 2022-04-04 08:23:21 +00:00
Jeffrey
1ce9e9cda4 Remove dead code from parserse_base_utils and fix unit tests
* Remove `match_string()`, `match_number()`, and `match_word()`
* Remove `match_word_with_extrasymb()` and `match_word_til_equal_mark()`
* Adapt unit test for `match_number()` to `match_number2()`
* Adapt unit test for `match_string()` to `match_string2()`

Note: the unit tests were testing for the old version of the functions, and
the interfaces for these functions changed slightly, so I had to also edit
the tests.

As of writing, this PR has no merge conflicts with #8211

Additional changes during review:
* Explicitly set up is_[float/signed]_val to be changed before each call
* Structify the tests and fix uninitialized variables
2022-03-30 13:29:32 -05:00
luigi1111
d9e6baac42
Merge pull request #8158
e5000a9 Balance includes unconfirmed transfers to self (woodser)
2022-03-18 16:28:16 -05:00
mj-xmr
0d6fce8995
Compil. time: cryptonote_core minus portable_storage header 2022-03-04 12:48:35 +01:00
mj-xmr
da9aa1f7f8
Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
luigi1111
abae63c37d
Merge pull request #8052
c36ea26 fix ge_p3_is_point_at_infinity(), which is evaluating field elements that haven't been reduced by the field order (koe)
2022-03-02 18:52:51 -05:00
luigi1111
5eaa4434e8
Merge pull request #7877
e08abaa multisig key exchange update and refactor (koe)
2022-03-02 18:51:54 -05:00
Crypto City
850b8766d6 functional_tests: fix invalid names tests, "\xff\xff" is now valid 2022-03-01 18:21:19 +00:00
koe
e08abaa43f multisig key exchange update and refactor 2022-02-22 16:37:42 -06:00
woodser
e5000a9f0c Balance includes unconfirmed transfers to self 2022-01-31 07:52:38 -05:00
koe
c36ea26e5c fix ge_p3_is_point_at_infinity(), which is evaluating field elements that haven't been reduced by the field order 2022-01-25 07:14:46 -06:00
selsta
e9156d78a3
functional_tests: update uri test with external pid 2021-12-14 23:35:48 +01:00
Crypto City
d8d45c8fba unit_tests: fix build after set_default_palette change 2021-12-02 12:20:11 +00:00
Crypto City
9f8cbdcb77 unit_tests: fix build after get_building_cost_production api change 2021-11-29 10:41:18 +00:00
Crypto City
8a12d350a8 tests: add a decode_blocks fuzz test 2021-11-27 17:18:58 +00:00
Crypto City
307e97f9e9 v16 with recent consensus changes - with hacks for now 2021-11-25 17:27:14 +00:00
Crypto City
861f378589 speed up account balance access and updates 2021-11-25 12:10:05 +00:00
Crypto City
29c47dcfe9 tune city level progression 2021-11-24 07:08:51 +00:00
Crypto City
0e756771d3 avoid unnecessary repeated read/write of the same flag/account record 2021-11-24 07:08:50 +00:00
Crypto City
9e592619fb tweak workforce building
- add management efficiency discovery levels, increasing output
- add penalties for industry influence
2021-11-24 07:08:50 +00:00
Crypto City
bb203fe647 add new moose disease special event 2021-11-23 16:22:29 +00:00
Crypto City
fe5272b288 add whispers - player messages on arbitrary locations 2021-11-23 16:22:28 +00:00
Crypto City
a8ad4091fa add restricted item group, may not be sold/given/auctioned etc 2021-11-15 17:04:16 +00:00
Crypto City
d545944400 add a level based build height limit 2021-11-02 08:49:58 +00:00
moneromooo-monero
bbe3b276b8
tx_pool: full tx revalidation on fork boundaries
avoids mining txes after a fork that are invalid by this fork's
rules, but were valid by the previous fork rules at the time
they were verified and added to the txpool.
2021-11-01 20:56:38 +00:00
Crypto City
ae4d520621 add a testnet v15 fork at block 60000 2021-10-15 13:29:47 +00:00
Crypto City
8153873cb2 make recent consensus changes activate at v15 2021-10-15 12:41:26 +00:00
Crypto City
0d20478bd2 mayors may now control who can buy/build in their city 2021-10-14 10:47:26 +00:00
Crypto City
c263cba732 cc: allow embedding smaller quantities of gold in items 2021-10-14 10:44:47 +00:00
luigi1111
45920c36f1
Merge pull request #7874
9154883 node_server: fix race condition (anon)
8922f96 node_server: add race condition demo (anon)
2021-10-11 12:56:14 -05:00
Crypto City
4d17a7bc26 give road bonuses to flags that are suitable for bridges 2021-10-04 21:31:50 +00:00
luigi1111
e7a1a095ac
Merge pull request #7923
5eaedb5 unit_tests: fix use after free in serialization test (moneromooo-monero)
2021-09-23 22:16:38 -05:00
Crypto City
25cc1bf99a game: plug palette editor in import flow 2021-09-21 12:18:18 +00:00
Crypto City
c3428cf347 game: partial magica voxel extension support
Scenegraph support, so models split into submodels can be loaded
2021-09-21 12:18:18 +00:00
Crypto City
9edd5e0966 game: load schematic models
These seem to have models fitting in cubes, so the import looks
very blocky and crude
2021-09-21 12:18:18 +00:00
anon
9154883f3e
node_server: fix race condition 2021-09-20 20:58:23 +00:00
anon
8922f96e61
node_server: add race condition demo 2021-09-20 20:58:23 +00:00
Crypto City
18ab361e8b give spread to match command matcher 2021-09-14 19:59:41 +00:00
Crypto City
92b1a11683 unit_tests: remove tests using overflowing values 2021-09-12 21:25:38 +00:00
Crypto City
a80ff364d6 unit_tests: fix uninitialized field 2021-09-12 21:25:38 +00:00
Crypto City
3e93a91c28 db_lmdb: do not use DUPSORT for cc_events table
It increase the size somewhat but can store events of arbitrary
length.
2021-09-12 21:25:38 +00:00
mj-xmr
1b7a708fa3
Mac: UT node server fix IP localhost by aliasing 2021-09-12 15:51:14 +02:00
luigi1111
e48e909911
Merge pull request #7880
573a025 core_tests: remove unused typedef, fix warning (selsta)
2021-09-09 15:18:17 -04:00
luigi1111
acfe3f8ded
Merge pull request #7828
b2c59af EasyLogging++: new anti-UB test and propagating exception (mj-xmr)
2021-09-09 15:16:06 -04:00
Crypto City
c5ecf75dd1 unit_tests: fix leaks 2021-09-08 01:43:54 +00:00
moneromooo-monero
5eaedb51b9
unit_tests: fix use after free in serialization test 2021-09-08 01:03:34 +00:00
Crypto City
0be3750452 unit_tests: fix use after free in serialization test 2021-09-08 00:59:40 +00:00
Crypto City
489a261db0 Merge remote-tracking branch 'origin/master' into cc
8fde011dbe
2021-09-01 15:50:02 +00:00
Crypto City
996253e3b0 revert test v15 fork 2021-09-01 15:12:14 +00:00
Crypto City
6794309459 functional_tests: ensure number of blocks to mine is integer 2021-09-01 15:12:13 +00:00
Crypto City
f309f1422c fix sync failure when popping a game update block, but only it 2021-08-21 16:11:28 +00:00
Crypto City
85319d34a8 functional_tests: improve reorg test 2021-08-21 16:11:28 +00:00
Crypto City
fdaaf64a7e db_tests: add tests for cc_nonces_used 2021-08-21 14:44:33 +00:00
Crypto City
22bc59cb06 remove unused BlockchainDB method 2021-08-21 14:44:33 +00:00
Crypto City
19b9af508f functional_tests: some more trader order book tests 2021-08-21 14:44:33 +00:00
selsta
573a0255a8
core_tests: remove unused typedef, fix warning 2021-08-19 15:57:13 +02:00
Crypto City
83ebf8aad4 improve third party matching 2021-08-18 22:38:51 +00:00
Crypto City
f73670b90a db_tests: add cc_trade_used tests 2021-08-17 13:02:14 +00:00
Crypto City
9079a293d0 functional_tests: fix fire test sometimes breaking 2021-08-16 10:36:46 +00:00
Crypto City
c0e0f7302d core_tests: fix after txpool changes 2021-08-15 18:22:19 +00:00
Crypto City
64bd5a503b unit_tests: fix buy_land test after integer overflow fix 2021-08-15 16:17:43 +00:00
Crypto City
5db3e646af make potential/height functions safer 2021-08-12 11:01:36 +00:00
Crypto City
5206ea2ec3 fix hunts conflicting with each other 2021-08-12 11:01:35 +00:00
Crypto City
b5f7cd94af functional_tests: fix firefighting test 2021-08-12 11:01:35 +00:00
Crypto City
88c2c3d68a do not consider commands with bad signatures in chat/pending
These are probably from another chain, or malicious, though
they could be due to a reorg
2021-08-12 11:01:35 +00:00
luigi1111
82149bfe44
Merge pull request #7818
9c8e3e8 unit_tests: fix broken tests (anon)
2021-08-11 22:40:13 -04:00
luigi1111
521b4d9ded
Merge pull request #7809
7354ffb p2p: remove blocked addresses/hosts from peerlist (moneromooo-monero)
2021-08-11 22:35:15 -04:00
moneromooo-monero
7354ffb8a7
p2p: remove blocked addresses/hosts from peerlist 2021-08-05 17:29:25 +00:00
mj-xmr
b2c59af84d
EasyLogging++: new anti-UB test and propagating exception 2021-08-03 17:10:21 +02:00
anon
9c8e3e832e
unit_tests: fix broken tests
boosted_tcp_server: check condition before sleep too
cryptonote_protocol_handler: each instance of BlockchainLMDB requires separate thread due to private thread local fields
2021-07-28 13:38:24 +00:00
Crypto City
ca01aa2221 functional_tests: add basic tests for firefighting 2021-07-23 09:10:52 +00:00
Crypto City
42f430cf08 functional_tests: test derelict buildings 2021-07-20 19:41:53 +00:00
Crypto City
5e1f9e4b8b wallet2: default to not encrypt keys in memory - faster
For a game, it's the better tradeoff
2021-07-19 11:51:19 +00:00
Crypto City
21676e11be functional_tests: add tests for cc_is_invitation_used 2021-07-07 19:58:22 +00:00
Crypto City
5c29d4356c fix hunting allowing an empty building as condition 2021-07-06 20:50:44 +00:00
Crypto City
da83f01ff4 make dividend command more flexible
it can optionally distribute to unowned items only, as well as
pay per item rather than split
2021-07-06 12:52:33 +00:00
mj-xmr
5e6762d459
EasyLogging++: Add UTests, that protect against regressions 2021-07-06 06:50:52 +02:00
Crypto City
ea37a84d86 functional_tests: fix city spec tests failing due to too high level 2021-07-05 16:33:54 +00:00
Crypto City
7d55777ba9 pass hard fork version to cc command check/execute/revert 2021-07-05 13:55:19 +00:00
Crypto City
3536b1d36a some things are now affected by how much a flag is south oriented 2021-07-05 00:49:36 +00:00
Crypto City
0e49625986 bonus/penalties based on average flag slope 2021-07-03 15:40:49 +00:00
Crypto City
0eef676e97 unit_tests: add a test for discovery prerequisites 2021-06-27 10:27:32 +00:00
Crypto City
bf5e9909d2 fix inventory bug with mortgages that mature while being auctioned 2021-06-24 08:50:19 +00:00
Crypto City
1928507a29 functional_tests: fix auction bid fee 2021-06-24 08:49:53 +00:00
moneromooo-monero
4251cc0b4d
unit_tests: check for ge_frombytes_vartime failure
CID 1446559
2021-06-11 07:51:45 +00:00
luigi1111
7499837a6f
Merge pull request #7661
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
2021-06-10 12:00:54 -05:00
Crypto City
2553304690 unit_tests: remove leftover noisy trace 2021-06-08 12:59:17 +00:00
Crypto City
7ffaf6d3ae double spendable age to 20 2021-06-03 07:40:21 +00:00
luigi1111
08726ff0f3
Merge pull request #7723
3450f4b Doc: funtional_tests add new mining env vars and how to use them (mj-xmr)
2021-06-01 22:09:54 -05:00
luigi1111
fcb347820d
Merge pull request #7713
b40129e Warnings: unused var in core_tests:chaingen.h (mj-xmr)
2021-06-01 22:08:40 -05:00
Crypto City
449ec733d3 event badges can now have a custom design 2021-05-29 12:32:20 +00:00
Crypto City
6eeea7ed94 coins can now have a custom graphic design 2021-05-29 12:32:20 +00:00
Crypto City
abe2314fad unit_tests: fix redeem_account tests and add tests for pm keys 2021-05-29 12:32:20 +00:00
Crypto City
96d9ace308 port feather monero changes to townforge 2021-05-23 18:25:51 +00:00
Crypto City
135742961f add logging/quarrying/maintenance discoveries 2021-05-14 17:22:13 +00:00
Crypto City
5342a8e62c fix tests and game after placeholder pm keys addition 2021-05-14 17:22:13 +00:00
Crypto City
93c8da0b5c cc: make all event logs use past tense 2021-05-14 16:40:36 +00:00
mj-xmr
3450f4bc04
Doc: funtional_tests add new mining env vars and how to use them 2021-05-14 11:27:56 +02:00
luigi1111
b7ee587ddb
Merge pull request #7691
cbd54ea cmake: set 3.5 as minimum version (selsta)
2021-05-12 16:59:17 -05:00
luigi1111
342f8c8b97
Merge pull request #7690
3cc4428 clang: fix -Wpessimizing-move warning (selsta)
2021-05-12 16:58:34 -05:00
luigi1111
c1a1f2a6ea
Merge pull request #7688
451b5a5 clang: fix -Wrange-loop-analysis warnings (selsta)
2021-05-12 16:57:32 -05:00
mj-xmr
b40129e253
Warnings: unused var in core_tests:chaingen.h 2021-05-11 10:22:06 +02:00
Crypto City
cb4ee1182f embed extra couple of pubkeys in account creation commands
to be used for messaging later
2021-05-07 10:14:59 +00:00