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
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
selsta
3cc4428d45
clang: fix -Wpessimizing-move warning
2021-04-28 11:33:37 +02:00
Crypto City
5057d39cda
decrease decay and repair costs, bump land tax a little
2021-04-27 18:39:05 +00:00
Crypto City
8249a86017
add badge for number of cities built in
2021-04-27 18:15:30 +00:00
Crypto City
0e3a6ba8c8
functional_tests: fix python3 compatibility
2021-04-27 18:15:30 +00:00
Crypto City
907636077e
functional_tests: more generous timeout for the large sync
2021-04-27 18:15:30 +00:00
Crypto City
514bec111b
store better info (counterparties, all flags/items, fee) in game events
...
also make balance signed so we can distinguish income and expenditures,
add missing/incorrect event data
2021-04-27 18:15:30 +00:00
Crypto City
a395ab3c37
remove various unused variables
2021-04-27 18:15:29 +00:00
selsta
cbd54ea524
cmake: set 3.5 as minimum version
2021-04-27 11:02:05 +02:00
mj-xmr
6799e212cc
Tests: Mining test uses a parametric path for finding the calculation app
...
MINING_SILENT and MINING_NO_MEASUREMENT env vars
2021-04-27 06:21:02 +02:00
selsta
451b5a510e
clang: fix -Wrange-loop-analysis warnings
2021-04-27 05:30:27 +02:00
Crypto City
931773c40e
Merge remote-tracking branch 'origin/master' into cc
2021-04-24 13:46:11 +00:00
Crypto City
e8f35a87c8
halve block time for user friendliness in gameplay
2021-04-22 23:18:32 +00:00
luigi1111
0a1ddc2eff
Merge pull request #7669
...
679d055
Remove payload copy in all outgoing p2p messages (Lee Clagett)
2021-04-22 01:51:01 -04:00
Crypto City
a6b5210c2f
increase tax increase min radius with city level
2021-04-21 13:56:25 +00:00
Crypto City
241b1edf69
add cartography discoveries, and tweak some discovery costs
2021-04-19 10:45:02 +00:00
Crypto City
aefb95a88b
new "playing with fire" badge
2021-04-18 19:23:47 +00:00
mj-xmr
dc81e23e60
Split epee/string_tools.h and encapsulate boost::lexical_cast
2021-04-16 20:54:20 +02:00
luigi1111
e45619e61e
Revert "Merge pull request #7136 "
...
This reverts commit 63c7ca07fb
, reversing
changes made to 2218e23e84
.
2021-04-16 13:52:44 -05:00
luigi1111
d544fd0f52
Merge pull request #7653
...
73d3b00
unit_tests: fix boost 1.58 compatibility (anon)
2021-04-16 12:52:42 -05:00
luigi1111
63c7ca07fb
Merge pull request #7136
...
23aae55
Remove payload copy in all outgoing p2p messages (Lee Clagett)
2021-04-16 12:45:30 -05:00
Crypto City
56155d4154
functional_tests: add more tests
2021-04-16 11:15:51 +00:00
Crypto City
618388ccab
items can now be auctioned
2021-04-15 11:12:21 +00:00
Crypto City
20256888e3
embed the block 1 tag in invitations and cc signatures
...
to ensure they're only valid in the chain they're created on
2021-04-12 18:06:59 +00:00
Crypto City
7eafb335b1
do not reuse flags, it only leads to mistakes in history
2021-04-12 13:48:34 +00:00
Crypto City
f2cf26638d
invitations can now be tied to a particular recipient address
2021-04-11 10:22:59 +00:00
Crypto City
8c4039aaf2
make it so redeemed invitations can't be hijacked by a miner
2021-04-10 18:29:39 +00:00
Crypto City
2392c7d372
functional_tests: add item ownership checks
2021-04-10 00:06:37 +00:00
Crypto City
42416063bf
fix historical temperature lookups ignoring special events
2021-04-10 00:06:37 +00:00
Crypto City
cf9246ab08
functional_tests: fix random failure in discoveries test
2021-04-10 00:06:37 +00:00
Crypto City
f1fd56f172
functional_tests: give a bit more leeway in wood stocks
2021-04-10 00:06:37 +00:00
anon
73d3b00b35
unit_tests: fix boost 1.58 compatibility
2021-04-08 11:45:27 +00:00
luigi1111
4834bd8aa0
Merge pull request #7646
...
176cea0
Tests: Fix test node_server.bind_same_p2p_port from randomly crashing (mj-xmr)
2021-04-06 12:25:00 -05:00
luigi1111
1475236810
Merge pull request #7639
...
53683d7
Warnings: fix ut/levin.cpp missing braces (mj-xmr)
2021-04-06 12:24:29 -05:00
luigi1111
3c69596bc9
Merge pull request #7321
...
f9b5b52
fix serialization being different on mac (moneromooo-monero)
2021-04-06 12:20:15 -05:00
Crypto City
71c42575fe
handle runestones properly on defaulted/derelict buildings
2021-04-06 10:46:37 +00:00
Crypto City
2eec2f6371
fix farming not being bothered by not having enough heating material
...
also fix demolishing a farm while a crop is being grown
2021-04-06 10:46:37 +00:00
mj-xmr
176cea0ec6
Tests: Fix test node_server.bind_same_p2p_port from randomly crashing
2021-04-05 17:36:13 +02:00
Crypto City
dccf609e29
functional_tests: a mortgaged flag can't be demolished, given, traded
2021-04-04 19:42:38 +00:00
Crypto City
b5277a67ef
functional_tests: more runestone tests: demolish, remove blocks
2021-04-02 22:54:56 +00:00
Crypto City
1a8055684e
rpc: remove obsolete width/height in cc_demolish
2021-04-02 22:54:56 +00:00
Crypto City
6d5b0222cf
add runestone carving tests
2021-04-02 22:54:56 +00:00
Crypto City
c663b3b6b6
armour plate various commands' verification code
2021-04-02 15:17:28 +00:00
mj-xmr
45f01f577c
[CI] Adaptive mining timeout, depending on available CPU power
...
Printing also available RAM. Add comprehensive description.
2021-03-30 05:48:55 +02:00
luigi1111
b12e195fba
Merge pull request #7620
...
fe63256
cryptonote_protocol_handler: fix race condition (anon)
ded2f3a
cryptonote_protocol_handler: add race condition demo (anon)
2021-03-29 21:55:11 -04:00
luigi1111
a2b046dafc
Merge pull request #7460
...
2935a0c
async_protocol_handler_config: fix deadlock (anon)
c877705
async_protocol_handler_config: add deadlock demo (anon)
2021-03-29 21:46:29 -04:00
Crypto City
f6d2d99537
unit_tests: fix build after get_harvest_amount change
2021-03-28 12:36:45 +00:00
mj-xmr
53683d7f90
Warnings: fix ut/levin.cpp missing braces
2021-03-27 09:26:44 +01:00
Crypto City
e3b256215f
functional_tests: add test for fractional amount of gold in item
2021-03-26 20:37:15 +00:00
Crypto City
6261344b9a
remove mime_type from custom items, and add gold content
2021-03-25 14:37:56 +00:00
Crypto City
5b2e27b2ad
functional_tests: fix accounting error
2021-03-25 13:54:24 +00:00
Crypto City
8354848ec8
custom item secondary descriptions can now be updated
2021-03-23 23:36:38 +00:00
Crypto City
20b806a964
rpc: add cc_is_custom_item_data RPC
2021-03-23 23:36:38 +00:00
anon
ded2f3aa85
cryptonote_protocol_handler: add race condition demo
2021-03-22 19:42:46 +00:00
mj-xmr
c836dc11c9
[CI] Use Python3 for funcional tests, instead of Python2
2021-03-20 10:30:57 +01:00
luigi1111
1707cab1a4
Merge pull request #7401
...
b5209a0
functional_tests: hide check_missing_rpc_methods behind requests check (moneromooo-monero)
2021-03-20 01:44:52 -04:00
luigi1111
7bf89dcbd3
Merge pull request #7005
...
249eae5
Allow byte_stream->byte_slice conversion to shrink unused buffer space (Lee Clagett)
2021-03-20 01:35:13 -04:00
luigi1111
8d7c1135b8
Merge pull request #6810
...
19b2283 New add_aux_pow RPC to support merge mining (moneromooo-monero)
2021-03-20 01:33:10 -04:00
Crypto City
59da6694be
rpc: add a cc_get_predefined_item_info RPC
2021-03-13 19:50:44 +00:00
Crypto City
78bd013b0c
fix issues with city level determination
2021-03-13 18:03:58 +00:00
Crypto City
6be4416f10
functional_tests: fix occasional failure from tx misordering
2021-03-13 10:45:46 +00:00
Crypto City
afc4f6f913
new cc_get_item_ownership RPC and daemon command
2021-03-13 10:45:46 +00:00
Crypto City
b8d4836f2a
add optional hash and MIME type to custom items, and add cc_item_info command
2021-03-13 10:45:46 +00:00
Crypto City
3ffe13df7d
extra land tax for lots left empty for more than 10 days
2021-03-13 10:45:46 +00:00
anon
c877705a53
async_protocol_handler_config: add deadlock demo
2021-03-12 11:59:06 +00:00
moneromooo-monero
f9b5b521e8
fix serialization being different on mac
...
On Mac, size_t is a distinct type from uint64_t, and some
types (in wallet cache as well as cold/hot wallet transfer
data) use pairs/containers with size_t as fields. Mac would
save those as full size, while other platforms would save
them as varints. Might apply to other platforms where the
types are distinct.
There's a nasty hack for backward compatibility, which can
go after a couple forks.
2021-03-05 23:42:33 +00:00
moneromooo-monero
b5209a09d2
functional_tests: hide check_missing_rpc_methods behind requests check
2021-02-23 20:10:03 +00:00
anon
1b51d398fb
async_protocol_handler_config: add segfault demo
2021-02-19 22:27:28 +00:00
luigi1111
1614be4a41
Merge pull request #7371
...
1aecdcf
Increase timeout for the mining test 4 times (to 240s) (mj-xmr)
2021-02-18 14:11:55 -05:00
luigi1111
6556c33f13
Merge pull request #7355
...
bd12984
Remove copies from foreach loops (thanks to Clang) (Lee Clagett)
1572df9
Removing unused namespace alias (Lee Clagett)
2021-02-18 14:06:47 -05:00
luigi1111
906a62c6b2
Merge pull request #7352
...
a60d3d8
unit_tests: fix wipeable_string parse_hexstr test with latest gtest (xiphon)
2021-02-18 14:05:58 -05:00
luigi1111
ce5800a225
Merge pull request #7346
...
85db173
Remove unused variables in monero codebase (Kevin Barbour)
2021-02-18 14:03:31 -05:00
luigi1111
9f6dcbd568
Merge pull request #7308
...
df2f00f
boosted_tcp_server: fix connection lifetime (anon)
3833624
boosted_tcp_server: add segfault demo (anon)
2021-02-15 21:53:43 -05:00
mj-xmr
1aecdcf536
Increase timeout for the mining test 4 times (to 240s)
2021-02-11 13:42:43 +01:00
moneromooo-monero
19b228393f
New add_aux_pow RPC to support merge mining
2021-02-09 11:58:21 +00:00
Kevin Barbour
85db1734e7
Remove unused variables in monero codebase
...
There are quite a few variables in the code that are no longer
(or perhaps never were) in use. These were discovered by enabling
compiler warnings for unused variables and cleaning them up.
In most cases where the unused variables were the result
of a function call the call was left but the variable
assignment removed, unless it was obvious that it was
a simple getter with no side effects.
2021-02-09 08:05:05 +01:00
mj-xmr
dc48de74e8
Reduce compilation time of epee/portable_storage.h
2021-02-06 08:18:42 +01:00
Crypto City
49faf95c40
fix flag destruction not keeping full state
2021-02-03 16:26:08 +00:00
Crypto City
56d5455d9b
functional_tests: fix some python2/python3 differences
2021-02-03 16:26:08 +00:00
Crypto City
d9e81d0c5b
cc: remove obsolete transportation discoveries
2021-02-03 16:26:08 +00:00
Lee Clagett
bd129849f0
Remove copies from foreach loops (thanks to Clang)
2021-01-28 23:42:40 -05:00
xiphon
a60d3d8ff7
unit_tests: fix wipeable_string parse_hexstr test with latest gtest
...
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973196
2021-01-27 13:04:08 +00:00
Lee Clagett
08e4497c6e
Improve cryptonote (block and tx) binary read performance
2021-01-23 06:23:39 +00:00
anon
3833624ab1
boosted_tcp_server: add segfault demo
2021-01-19 18:15:30 +01:00
Lee Clagett
679d05567d
Remove payload copy in all outgoing p2p messages
2021-01-19 02:22:32 +00:00
Crypto City
4956a6aa5e
Merge remote-tracking branch 'origin/master' into cc
2021-01-18 01:33:53 +00:00
Lee Clagett
23aae5571b
Remove payload copy in all outgoing p2p messages
2021-01-16 22:53:28 +00:00
Crypto City
a4f6efb6db
add unlock levels for chat colours
2021-01-16 20:44:45 +00:00
Crypto City
e760d4b2ed
cc: remove pig farming discoveries
2021-01-16 20:44:45 +00:00
Crypto City
7e87bcc711
fix functional tests
2021-01-16 20:44:45 +00:00
Crypto City
8c3d9ff405
functional_tests: fix trade tests after matchable fix
2021-01-16 20:44:45 +00:00
luigi1111
7908f848a3
Merge pull request #7245
...
41dfa96
Split fuzz tests during fuzz build (Nym Seddon)
2021-01-15 23:51:23 -05:00
luigi1111
cb21ec30a4
Merge pull request #7149
...
0660db3
fuzz_tests: add a test for utf8canonical (moneromooo-monero)
2021-01-15 23:47:49 -05:00
Alexander Blair
747699541e
Merge pull request #7285
...
927141bcc
Command max_bytes moved from dynamic map to static switch (Lee Clagett)
2021-01-07 17:54:02 -08:00
Nym Seddon
41dfa96e5a
Split fuzz tests during fuzz build
...
Only build fuzz tests in a fuzz build, and don't build other tests.
Keeps fuzz compilers from instrumenting other tests, which are not fuzzed.
Resolves #7232
2021-01-01 09:09:28 +00:00
moneromooo-monero
bcdc6c62b7
protocol: fix false positives dropping peers
...
it'd trigger on reorgs
2020-12-27 14:41:19 +00:00
luigi1111
025db3d2b4
Revert "Reject existing claimed blocks in sync mode"
2020-12-27 00:18:05 -05:00
Alexander Blair
609dbe6b92
Merge pull request #7154
...
cf7e1571d
protocol: reject claimed block hashes that already are in the chain (moneromooo-monero)
af0a25544
protocol: drop peers we can't download anything from in sync mode (moneromooo-monero)
2020-12-26 13:40:36 -08:00
Lee Clagett
927141bcc4
Command max_bytes moved from dynamic map to static switch
2020-12-22 20:54:16 +00:00
moneromooo-monero
b652d598d1
add a max levin packet size by command type
2021-01-03 14:07:45 +00:00
Alexander Blair
16c780d568
Merge pull request #7250
...
61b6e4cc6
Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
2021-01-01 22:35:59 -08:00
moneromooo-monero
0aa541b361
protocol: more sanity checks in new chain block hashes
2020-12-31 23:33:18 +00:00
Lee Clagett
187b4d7521
Restrict duplicate keys in epee binary format
2020-12-20 03:47:32 +00:00
moneromooo-monero
cf7e1571d3
protocol: reject claimed block hashes that already are in the chain
2020-12-17 02:54:02 +00:00
Lee Clagett
61b6e4cc67
Add aggressive restrictions to pre-handshake p2p buffer limit
2020-12-17 00:36:10 +00:00
Lee Clagett
4978f69d7a
Fix byte_stream::put_n
2020-12-14 14:45:24 -05:00
moneromooo-monero
0660db3e7a
fuzz_tests: add a test for utf8canonical
2020-12-14 19:40:24 +00:00
Alexander Blair
28e5e42986
Merge pull request #7110
...
d660f22ed
protocol: drop origin IP if a block fails to verify in sync mode (moneromooo-monero)
2020-12-10 17:41:59 -08:00
Alexander Blair
1e9483a2d5
Merge pull request #7009
...
7414e2bac
Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
2020-12-10 17:34:50 -08:00
Alexander Blair
6bddd54f9d
Merge pull request #7003
...
08eb0949f
Change to more efficient allocation strategy in byte_stream (Lee Clagett)
2020-12-10 17:33:50 -08:00
moneromooo-monero
d660f22ed1
protocol: drop origin IP if a block fails to verify in sync mode
...
It would otherwise be possible for a peer to send bad blocks,
then disconnect and reconnect again, escaping bans
2020-12-10 21:59:18 +00:00
Crypto City
f62f0b0c6c
cc: remove military bonus for production buildings
2020-12-07 11:53:00 +00:00
moneromooo-monero
5ed604fe5b
crypto: fix non zero scalar being 0 after reducing
2020-12-04 01:00:03 +00:00